Show
Ignore:
Timestamp:
05/17/07 18:27:45 (18 months ago)
Author:
krobillard
Message:

Thune - OpenGL version works in thread_safe branch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/gl/gx_dt.c

    r360 r390  
    3838 
    3939 
    40 static void toStr_dlist( const UCell* cell, UString* out, int depth ) 
    41 { 
     40static void toStr_dlist( UThread* ut, const UCell* cell, UString* out, 
     41                         int depth ) 
     42{ 
     43    (void) ut; 
    4244    (void) cell; 
    4345    (void) depth; 
     
    7375  \return Binary index and initialied res.  If binp is non-zero, it is set. 
    7476*/ 
    75 UIndex ur_makeRaster( UCell* res, int format, int w, int h, UBinary** binp ) 
     77UIndex ur_makeRaster( UThread* ut, UCell* res, 
     78                      int format, int w, int h, UBinary** binp ) 
    7679{ 
    7780    UIndex binN; 
     
    122125            } 
    123126 
    124             ur_makeRaster( res, format, 
     127            ur_makeRaster( ut, res, format, 
    125128                           tos->coord.elem[0], tos->coord.elem[1], 0 ); 
    126129 
     
    148151 
    149152 
    150 static void toStr_raster( const UCell* cell, UString* out, int depth ) 
     153static void toStr_raster( UThread* ut, const UCell* cell, UString* out, 
     154                          int depth ) 
    151155{ 
    152156    int uformat; 
     
    178182 
    179183 
    180 static int select_raster( UThread* ur_thread, UCell* val, const UCell* sel, 
     184static int select_raster( UThread* ut, UCell* val, const UCell* sel, 
    181185                          UCell* res ) 
    182186{ 
     
    350354                { 
    351355                    case UT_WORD: 
    352                         val = ur_wordCell( ur_thread, it ); 
     356                        val = ur_wordCell( ut, it ); 
    353357                        if( ! val ) 
    354358                            return; 
     
    461465 
    462466 
    463 static void toStr_texture( const UCell* cell, UString* out, int depth ) 
    464 { 
     467static void toStr_texture( UThread* ut, const UCell* cell, UString* out, 
     468                           int depth ) 
     469{ 
     470    (void) ut; 
    465471    (void) cell; 
    466472    (void) depth; 
     
    469475 
    470476 
    471 static int select_texture( UThread* ur_thread, UCell* val, const UCell* sel, 
     477static int select_texture( UThread* ut, UCell* val, const UCell* sel, 
    472478                           UCell* res ) 
    473479{ 
     
    488494    } 
    489495    if( ri ) 
    490         return select_raster( ur_thread, val, sel, res ); 
     496        return select_raster( ut, val, sel, res ); 
    491497    return 0; 
    492498} 
     
    549555                    case UT_SLICE: 
    550556                        if( cfg.fontFile ) 
    551                             cfg.glyphs = ur_cstring( it ); 
     557                            cfg.glyphs = ur_cstring( ut, it ); 
    552558                        else 
    553                             cfg.fontFile = ur_cstring( it ); 
     559                            cfg.fontFile = ur_cstring( ut, it ); 
    554560                        break; 
    555561 
     
    572578            } 
    573579 
    574             if( ! ur_makeRFont( ur_thread, res, &cfg ) ) 
     580            if( ! ur_makeRFont( ut, res, &cfg ) ) 
    575581                return; 
    576582 
     
    583589 
    584590 
    585 static void toStr_rfont( const UCell* cell, UString* out, int depth ) 
    586 { 
     591static void toStr_rfont( UThread* ut, const UCell* cell, UString* out, 
     592                         int depth ) 
     593{ 
     594    (void) ut; 
    587595    (void) cell; 
    588596    (void) depth; 
     
    591599 
    592600 
    593 static int select_rfont( UThread* ur_thread, UCell* val, const UCell* sel, 
     601static int select_rfont( UThread* ut, UCell* val, const UCell* sel, 
    594602                         UCell* res ) 
    595603{ 
     
    667675                    case UT_SLICE: 
    668676                        if( cmd == UR_ATOM_VERTEX ) 
    669                             vprog = ur_cstring( it ); 
     677                            vprog = ur_cstring( ut, it ); 
    670678                        else if( cmd == UR_ATOM_FRAGMENT ) 
    671                             fprog = ur_cstring( it ); 
     679                            fprog = ur_cstring( ut, it ); 
    672680                        break; 
    673681 
     
    682690            if( vprog && fprog ) 
    683691            { 
    684                 if( ! makeShader( ur_thread, res, vprog, fprog ) ) 
     692                if( ! makeShader( ut, res, vprog, fprog ) ) 
    685693                    return; 
    686694 
     
    711719 
    712720 
    713 static void toStr_shader( const UCell* cell, UString* out, int depth ) 
    714 { 
     721static void toStr_shader( UThread* ut, const UCell* cell, UString* out, 
     722                          int depth ) 
     723{ 
     724    (void) ut; 
    715725    (void) cell; 
    716726    (void) depth; 
     
    856866 
    857867 
    858 static void toStr_fbo( const UCell* cell, UString* out, int depth ) 
    859 { 
     868static void toStr_fbo( UThread* ut, const UCell* cell, UString* out, int depth ) 
     869{ 
     870    (void) ut; 
    860871    (void) cell; 
    861872    (void) depth; 
     
    864875 
    865876 
    866 static int select_fbo( UThread* ur_thread, UCell* val, const UCell* sel, 
     877static int select_fbo( UThread* ut, UCell* val, const UCell* sel, 
    867878                       UCell* res ) 
    868879{ 
     
    910921 
    911922 
    912 static int select_nop( UThread* ur_thread, UCell* val, const UCell* sel, 
     923static int select_nop( UThread* ut, UCell* val, const UCell* sel, 
    913924                       UCell* res ) 
    914925{