Changeset 86 for trunk/orca/gl

Show
Ignore:
Timestamp:
03/11/06 17:42:43 (3 years ago)
Author:
krobillard
Message:

Added OR_NATIVE macros. The Qt and GL code now uses this macro.

Location:
trunk/orca/gl
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/gl/dlist.c

    r69 r86  
    490490   Compile render program. 
    491491*/ 
    492 void renderProgramNative( OValue* a1 ) 
     492OR_NATIVE_PUB( renderProgramNative ) 
    493493{ 
    494494    OValue* error; 
  • trunk/orca/gl/gx.c

    r54 r86  
    664664 
    665665 
    666 void compileNative( OValue* a1 ) 
     666OR_NATIVE( compileNative ) 
    667667{ 
    668668    OBlock* blk; 
     
    700700 
    701701 
    702 void callNative( OValue* a1 ) 
     702OR_NATIVE( callNative ) 
    703703{ 
    704704    if( a1->type == OT_INTEGER ) 
     
    715715 
    716716 
    717 void displayNative( OValue* a1 ) 
     717OR_NATIVE( displayNative ) 
    718718{ 
    719719    GLViewMode mode; 
     
    762762 
    763763 
    764 void displayModesNative( OValue* a1 ) 
     764OR_NATIVE( displayModesNative ) 
    765765{ 
    766766    OBlock* blk; 
     
    10071007#define colorU8ToF(n)    (((GLfloat) n) / 255.0f) 
    10081008 
    1009 void clearColorNative( OValue* a1 ) 
     1009OR_NATIVE( clearColorNative ) 
    10101010{ 
    10111011    switch( a1->type ) 
     
    10351035#define RELEASE(h)  if( orHoldIsValid(h) ) orRelease(h) 
    10361036 
    1037 void execNative( OValue* a1 ) 
     1037OR_NATIVE( execNative ) 
    10381038{ 
    10391039#ifdef PERF_CLOCK 
     
    10901090 
    10911091 
    1092 void playNative( OValue* a1 ) 
     1092OR_NATIVE( playNative ) 
    10931093{ 
    10941094    if( a1->type == OT_FILE ) 
     
    11601160  center [none! matrix! vec3!] 
    11611161*/ 
    1162 void orthoViewNative( OValue* a1 ) 
     1162OR_NATIVE( orthoViewNative ) 
    11631163{ 
    11641164    OBlock* vblk; 
     
    12221222 
    12231223 
    1224 void viewportNative( OValue* a1 ) 
     1224OR_NATIVE( viewportNative ) 
    12251225{ 
    12261226    OBlock* vblk; 
     
    12641264 
    12651265 
    1266 void renderStateNative( OValue* a1 ) 
     1266OR_NATIVE( renderStateNative ) 
    12671267{ 
    12681268    if( a1->type == OT_WORD ) 
     
    12941294 
    12951295 
    1296 void renderTextNative( OValue* a1 ) 
     1296OR_NATIVE( renderTextNative ) 
    12971297{ 
    12981298    FontResource* fnt; 
     
    13211321 
    13221322 
    1323 void pushNative( OValue* a1 ) 
     1323OR_NATIVE( pushNative ) 
    13241324{ 
    13251325    (void) a1; 
     
    13281328 
    13291329 
    1330 void popNative( OValue* a1 ) 
     1330OR_NATIVE( popNative ) 
    13311331{ 
    13321332    (void) a1; 
     
    13351335 
    13361336 
    1337 void translateNative( OValue* a1 ) 
     1337OR_NATIVE( translateNative ) 
    13381338{ 
    13391339    GLdouble n[3]; 
     
    13451345 
    13461346#if 0 
    1347 void rotateNative( OValue* a1 ) 
     1347OR_NATIVE( rotateNative ) 
    13481348{ 
    13491349    GLdouble n[4]; 
     
    13541354 
    13551355 
    1356 void scaleNative( OValue* a1 ) 
     1356OR_NATIVE( scaleNative ) 
    13571357{ 
    13581358    GLdouble n[3]; 
     
    13621362 
    13631363 
    1364 void pushMatrixNative( OValue* a1 ) 
     1364OR_NATIVE( pushMatrixNative ) 
    13651365{ 
    13661366    OString* arr = orSTRING(a1); 
     
    13711371 
    13721372 
    1373 void moveNative( OValue* a1 ) 
     1373OR_NATIVE( moveNative ) 
    13741374{ 
    13751375    if( a1->type == OT_MATRIX ) 
     
    14001400 
    14011401 
    1402 void rotateNative( OValue* a1 ) 
     1402OR_NATIVE( rotateNative ) 
    14031403{ 
    14041404    double angle; 
     
    14271427 
    14281428 
    1429 void keyRepeatNative( OValue* a1 ) 
     1429OR_NATIVE( keyRepeatNative ) 
    14301430{ 
    14311431    glv_filterRepeatKeys( gView, orInt(a1) ); 
     
    14641464 
    14651465 
    1466 void screengrabNative( OValue* a1 ) 
     1466OR_NATIVE( screengrabNative ) 
    14671467{ 
    14681468    OBinary* bin; 
     
    14921492 
    14931493 
    1494 void mouseHandlerNative( OValue* a1 ) 
     1494OR_NATIVE( mouseHandlerNative ) 
    14951495{ 
    14961496    orBind( orBLOCK(a1), &gEnv.input_ctx ); 
     
    14981498 
    14991499 
    1500 void keyHandlerNative( OValue* a1 ) 
     1500OR_NATIVE( keyHandlerNative ) 
    15011501{ 
    15021502    if( validKeyHandlerBlock( a1->index, a1->series.it ) ) 
     
    15411541 
    15421542 
    1543 void hashNative( OValue* a1 ) 
     1543OR_NATIVE( hashNative ) 
    15441544{ 
    15451545    uint32_t key = gxHashString(a1); 
     
    15481548 
    15491549 
    1550 void resourceNative( OValue* a1 ) 
     1550OR_NATIVE( resourceNative ) 
    15511551{ 
    15521552    uint32_t key; 
     
    15741574#define REF_RG_FREE     a1+1 
    15751575 
    1576 void resourceGroupNative( OValue* a1 ) 
     1576OR_NATIVE( resourceGroupNative ) 
    15771577{ 
    15781578    uint16_t id; 
     
    15911591 
    15921592// This must go when 'save is added to the core library. 
    1593 void saveNative( OValue* a1 ) 
     1593OR_NATIVE( saveNative ) 
    15941594{ 
    15951595    FILE* fp; 
     
    16191619 
    16201620 
    1621 void toImageNative( OValue* a1 ) 
     1621OR_NATIVE( toImageNative ) 
    16221622{ 
    16231623    if( a1->RESTYPE == RES_TYPE_FONT ) 
  • trunk/orca/gl/ttf_load.c

    r54 r86  
    621621  ] 
    622622*/ 
    623 void makeTexfontNative( OValue* a1 ) 
     623OR_NATIVE_PUB( makeTexfontNative ) 
    624624{ 
    625625    OValue* arg;