Changeset 144 for trunk/orca/gl
- Timestamp:
- 05/11/06 14:23:03 (3 years ago)
- Location:
- trunk/orca/gl
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gl/audio.c
r43 r144 157 157 alGenBuffers( 1, &buffer ); 158 158 alBufferData( buffer, format, data, size, freq ); 159 { 160 OValue* a1 = orTOS; 159 161 orResult( OT_SOUND, buffer ); 162 } 160 163 } 161 164 else -
trunk/orca/gl/gx.c
r86 r144 480 480 resd_add( &gEnv.resd, &tex->res, key ); 481 481 482 result = or RESULT;482 result = orTOS; 483 483 orCopyV( result, *val ); 484 484 orLoadNative( result ); -
trunk/orca/gl/gx.h
r42 r144 147 147 148 148 #define gxResultRES(rp) \ 149 {OValue* _or_result = orRESULT; \ 150 orSetTF(_or_result, OT_RESOURCE); \ 151 _or_result->argc = rp->res.resType; \ 152 _or_result->index = rp->res.resKey;} 149 {orSetTF(a1, OT_RESOURCE); \ 150 a1->argc = rp->res.resType; \ 151 a1->index = rp->res.resKey;} 153 152 154 153 #define gxResType(val) val->argc -
trunk/orca/gl/joystick.c
r54 r144 132 132 Set 'input block values. 133 133 */ 134 static void jsRead( OContext* ctx )134 static void jsRead( OContext* ctx, OValue* a1 ) 135 135 { 136 136 int events = 0; -
trunk/orca/gl/main.c
r61 r144 56 56 { 57 57 OIndex strN; 58 OValue* tos; 58 59 60 tos = orTOS; 59 61 strN = orMakeCString( argv[1], -1 ); 60 orResultFILE( strN ); 62 orSetTF(tos, OT_FILE ); 63 orSetSeries(tos, strN, 0 ); 61 64 62 orDoNative( orRESULT);65 orDoNative( tos ); 63 66 if( orErrorThrown ) 64 67 { … … 123 126 { 124 127 OValue* val; 125 val = or RESULT;128 val = orTOS; 126 129 if( (val->type != OT_UNSET) && 127 130 (val->type != OT_OBJECT) && -
trunk/orca/gl/png_load.c
r1 r144 57 57 58 58 bin = orMakeImage( format, width, height ); 59 { 60 OValue* a1 = orTOS; 59 61 orResult( OT_IMAGE, orBinaryN(bin) ); 62 } 60 63 61 64 if( bin->byteArray )
