Changeset 54 for trunk/orca/gl/gx.c

Show
Ignore:
Timestamp:
02/17/06 15:30:01 (3 years ago)
Author:
krobillard
Message:

Now using orDecimal() & orInt() where appropriate.

Files:
1 modified

Legend:

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

    r42 r54  
    325325    { 
    326326        if( val->type == OT_DECIMAL ) 
    327             *vec++ = val->num.decimal; 
     327            *vec++ = orDecimal(val); 
    328328        else if( val->type == OT_INTEGER ) 
    329             *vec++ = (GLdouble) val->integer; 
     329            *vec++ = (GLdouble) orInt(val); 
    330330        else 
    331331            *vec++ = 0.0; 
     
    704704    if( a1->type == OT_INTEGER ) 
    705705    { 
    706         glCallList( a1->integer ); 
     706        glCallList( orInt(a1) ); 
    707707    } 
    708708    else 
    709709    { 
    710         DrawListResource* res = gxDList( a1->integer ); 
     710        DrawListResource* res = gxDList( orInt(a1) ); 
    711711        if( res && res->prog ) 
    712712            gxRunRenderProgram( res->prog ); 
     
    736736        else 
    737737        { 
    738             mode.id     = a1->integer; 
     738            mode.id     = orInt(a1); 
    739739            mode.width  = 0; 
    740740            mode.height = 0; 
     
    832832        if( it->type == OT_WORD ) 
    833833        { 
    834             cp = orAtomCString( it->word.atom ); 
     834            cp = orAtomCString( orAtom(it) ); 
    835835            strLen = 0; 
    836836            while( cp[ strLen ] ) 
     
    840840        else if( it->type == OT_CHAR ) 
    841841        { 
    842             ch = it->integer; 
     842            ch = orInt(it); 
    843843            if( ! ch ) 
    844844                ch = -1; 
     
    11151115    { 
    11161116        if( val->type == OT_INTEGER ) 
    1117             *dim = (double) val->integer; 
     1117            *dim = (double) orInt(val); 
    11181118        else if( val->type == OT_DECIMAL ) 
    1119             *dim = val->num.decimal; 
     1119            *dim = orDecimal(val); 
    11201120        else 
    11211121        { 
     
    11341134#define toDecimal(idx,dim) \ 
    11351135    if( val->type == OT_DECIMAL ) \ 
    1136         num[idx] = val->num.decimal * dim; \ 
     1136        num[idx] = orDecimal(val) * dim; \ 
    11371137    else if( val->type == OT_INTEGER ) \ 
    1138         num[idx] = (double) val->integer; \ 
     1138        num[idx] = (double) orInt(val); \ 
    11391139    else return 0; 
    11401140 
     
    12681268    if( a1->type == OT_WORD ) 
    12691269    { 
    1270         if( a1->word.atom == gEnv.atom_model ) 
     1270        if( orAtom(a1) == gEnv.atom_model ) 
    12711271        { 
    12721272            gxStateModel(); 
    12731273        } 
    1274         else if( a1->word.atom == gEnv.atom_solid ) 
     1274        else if( orAtom(a1) == gEnv.atom_solid ) 
    12751275        { 
    12761276            gxStateSolid(); 
     
    13891389        { 
    13901390            if( it->type == OT_DECIMAL ) 
    1391                 *pf += (float) it->num.decimal; 
     1391                *pf += (float) orDecimal(it); 
    13921392            else if( it->type == OT_INTEGER ) 
    1393                 *pf += (float) it->integer; 
     1393                *pf += (float) orInt(it); 
    13941394 
    13951395            ++pf; 
     
    14121412 
    14131413        if( a3->type == OT_DECIMAL ) 
    1414             angle = a3->num.decimal; 
     1414            angle = orDecimal(a3); 
    14151415        else if( a3->type == OT_INTEGER ) 
    1416             angle = (double) a3->integer; 
     1416            angle = (double) orInt(a3); 
    14171417        else 
    14181418            angle = 0.0; 
     
    14291429void keyRepeatNative( OValue* a1 ) 
    14301430{ 
    1431     glv_filterRepeatKeys( gView, a1->integer ); 
     1431    glv_filterRepeatKeys( gView, orInt(a1) ); 
    14321432} 
    14331433 
     
    15541554 
    15551555    if( a1->type == OT_INTEGER ) 
    1556         key = a1->integer; 
     1556        key = orInt(a1); 
    15571557    else 
    15581558        key = gxHashString(a1); 
     
    15791579 
    15801580    if( a1->type == OT_INTEGER ) 
    1581         id = a1->integer; 
     1581        id = orInt(a1); 
    15821582    else if( a1->type == OT_WORD ) 
    1583         id = a1->word.atom; 
     1583        id = orAtom(a1); 
    15841584 
    15851585    if( orRefineSet(REF_RG_FREE) )