Changeset 54 for trunk/orca/gl/gx.c
- Timestamp:
- 02/17/06 15:30:01 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/gl/gx.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gl/gx.c
r42 r54 325 325 { 326 326 if( val->type == OT_DECIMAL ) 327 *vec++ = val->num.decimal;327 *vec++ = orDecimal(val); 328 328 else if( val->type == OT_INTEGER ) 329 *vec++ = (GLdouble) val->integer;329 *vec++ = (GLdouble) orInt(val); 330 330 else 331 331 *vec++ = 0.0; … … 704 704 if( a1->type == OT_INTEGER ) 705 705 { 706 glCallList( a1->integer);706 glCallList( orInt(a1) ); 707 707 } 708 708 else 709 709 { 710 DrawListResource* res = gxDList( a1->integer);710 DrawListResource* res = gxDList( orInt(a1) ); 711 711 if( res && res->prog ) 712 712 gxRunRenderProgram( res->prog ); … … 736 736 else 737 737 { 738 mode.id = a1->integer;738 mode.id = orInt(a1); 739 739 mode.width = 0; 740 740 mode.height = 0; … … 832 832 if( it->type == OT_WORD ) 833 833 { 834 cp = orAtomCString( it->word.atom);834 cp = orAtomCString( orAtom(it) ); 835 835 strLen = 0; 836 836 while( cp[ strLen ] ) … … 840 840 else if( it->type == OT_CHAR ) 841 841 { 842 ch = it->integer;842 ch = orInt(it); 843 843 if( ! ch ) 844 844 ch = -1; … … 1115 1115 { 1116 1116 if( val->type == OT_INTEGER ) 1117 *dim = (double) val->integer;1117 *dim = (double) orInt(val); 1118 1118 else if( val->type == OT_DECIMAL ) 1119 *dim = val->num.decimal;1119 *dim = orDecimal(val); 1120 1120 else 1121 1121 { … … 1134 1134 #define toDecimal(idx,dim) \ 1135 1135 if( val->type == OT_DECIMAL ) \ 1136 num[idx] = val->num.decimal* dim; \1136 num[idx] = orDecimal(val) * dim; \ 1137 1137 else if( val->type == OT_INTEGER ) \ 1138 num[idx] = (double) val->integer; \1138 num[idx] = (double) orInt(val); \ 1139 1139 else return 0; 1140 1140 … … 1268 1268 if( a1->type == OT_WORD ) 1269 1269 { 1270 if( a1->word.atom== gEnv.atom_model )1270 if( orAtom(a1) == gEnv.atom_model ) 1271 1271 { 1272 1272 gxStateModel(); 1273 1273 } 1274 else if( a1->word.atom== gEnv.atom_solid )1274 else if( orAtom(a1) == gEnv.atom_solid ) 1275 1275 { 1276 1276 gxStateSolid(); … … 1389 1389 { 1390 1390 if( it->type == OT_DECIMAL ) 1391 *pf += (float) it->num.decimal;1391 *pf += (float) orDecimal(it); 1392 1392 else if( it->type == OT_INTEGER ) 1393 *pf += (float) it->integer;1393 *pf += (float) orInt(it); 1394 1394 1395 1395 ++pf; … … 1412 1412 1413 1413 if( a3->type == OT_DECIMAL ) 1414 angle = a3->num.decimal;1414 angle = orDecimal(a3); 1415 1415 else if( a3->type == OT_INTEGER ) 1416 angle = (double) a3->integer;1416 angle = (double) orInt(a3); 1417 1417 else 1418 1418 angle = 0.0; … … 1429 1429 void keyRepeatNative( OValue* a1 ) 1430 1430 { 1431 glv_filterRepeatKeys( gView, a1->integer);1431 glv_filterRepeatKeys( gView, orInt(a1) ); 1432 1432 } 1433 1433 … … 1554 1554 1555 1555 if( a1->type == OT_INTEGER ) 1556 key = a1->integer;1556 key = orInt(a1); 1557 1557 else 1558 1558 key = gxHashString(a1); … … 1579 1579 1580 1580 if( a1->type == OT_INTEGER ) 1581 id = a1->integer;1581 id = orInt(a1); 1582 1582 else if( a1->type == OT_WORD ) 1583 id = a1->word.atom;1583 id = orAtom(a1); 1584 1584 1585 1585 if( orRefineSet(REF_RG_FREE) )
