19 #ifndef __RAVESYSTEM__
20 #define __RAVESYSTEM__
22 #ifndef __CONDITIONALMACROS__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = power
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
51 #if PRAGMA_ENUM_ALWAYSINT
52 #if defined(__fourbyteints__) && !__fourbyteints__
53 #define __RAVESYSTEM__RESTORE_TWOBYTEINTS
54 #pragma fourbyteints on
56 #pragma enumsalwaysint on
57 #elif PRAGMA_ENUM_OPTIONS
58 #pragma option enum =int
59 #elif PRAGMA_ENUM_PACK
60 #if __option(pack_enums)
61 #define __RAVESYSTEM__RESTORE_PACKED_ENUMS
62 #pragma options(!pack_enums)
79 typedef CALLBACK_API_C(TQAError, TQAColorTableNew)(TQAColorTableType pixelType,
81 long transparentIndex,
82 TQAColorTable **newTable);
86 typedef CALLBACK_API_C(
void, TQAColorTableDelete)(TQAColorTable *colorTable);
94 TQAImagePixelType pixelType,
96 TQATexture **newTexture);
111 TQATextureBindColorTable)(TQATexture *texture,
112 TQAColorTable *colorTable);
120 TQAImagePixelType pixelType,
122 TQABitmap **newBitmap);
137 TQABitmapBindColorTable)(TQABitmap *bitmap,
138 TQAColorTable *colorTable);
186 long mipmapLevel,
long flags,
188 typedef CALLBACK_API_C(TQAError, TQAAccessTextureEnd)(TQATexture *texture,
190 typedef CALLBACK_API_C(TQAError, TQAAccessBitmap)(TQABitmap *bitmap,
long flags,
192 typedef CALLBACK_API_C(TQAError, TQAAccessBitmapEnd)(TQABitmap *bitmap,
203 TQADrawPrivateNew drawPrivateNew;
220 TQATextureBindColorTable
222 TQABitmapBindColorTable
225 TQAAccessTextureEnd accessTextureEnd;
226 TQAAccessBitmap accessBitmap;
227 TQAAccessBitmapEnd accessBitmapEnd;
230 enum TQAEngineMethodTag
232 kQADrawPrivateNew = 0,
233 kQADrawPrivateDelete = 1,
234 kQAEngineCheckDevice = 2,
235 kQAEngineGestalt = 3,
237 kQATextureDetach = 5,
238 kQATextureDelete = 6,
242 kQAColorTableNew = 10,
243 kQAColorTableDelete = 11,
244 kQATextureBindColorTable = 12,
245 kQABitmapBindColorTable = 13,
246 kQAAccessTexture = 14,
247 kQAAccessTextureEnd = 15,
248 kQAAccessBitmap = 16,
249 kQAAccessBitmapEnd = 17
251 typedef enum TQAEngineMethodTag TQAEngineMethodTag;
265 TQAEngineGetMethod)(TQAEngineMethodTag methodTag,
269 #if CALL_NOT_IN_CARBON
318 TQASetFloat setFloat;
340 TQASubmitVerticesGouraud
342 TQASubmitVerticesTexture
344 TQADrawTriMeshGouraud
346 TQADrawTriMeshTexture
352 TQASubmitMultiTextureParams
355 TQAAccessDrawBufferEnd accessDrawBufferEnd;
356 TQAAccessZBuffer accessZBuffer;
357 TQAAccessZBufferEnd accessZBufferEnd;
358 TQAClearDrawBuffer clearDrawBuffer;
359 TQAClearZBuffer clearZBuffer;
360 TQATextureNewFromDrawContext textureFromContext;
361 TQABitmapNewFromDrawContext bitmapFromContext;
363 TQASwapBuffers swapBuffers;
366 enum TQADrawMethodTag
376 kQADrawTriGouraud = 8,
377 kQADrawTriTexture = 9,
378 kQADrawVGouraud = 10,
379 kQADrawVTexture = 11,
386 kQASubmitVerticesGouraud = 18,
387 kQASubmitVerticesTexture = 19,
388 kQADrawTriMeshGouraud = 20,
389 kQADrawTriMeshTexture = 21,
390 kQASetNoticeMethod = 22,
391 kQAGetNoticeMethod = 23,
392 kQSubmitMultiTextureParams = 24,
393 kQAccessDrawBuffer = 25,
394 kQAccessDrawBufferEnd = 26,
395 kQAccessZBuffer = 27,
396 kQAccessZBufferEnd = 28,
397 kQClearDrawBuffer = 29,
399 kQTextureNewFromDrawContext = 31,
400 kQBitmapNewFromDrawContext = 32,
404 typedef enum TQADrawMethodTag TQADrawMethodTag;
419 #if CALL_NOT_IN_CARBON
434 #if PRAGMA_ENUM_ALWAYSINT
435 #pragma enumsalwaysint reset
436 #ifdef __RAVESYSTEM__RESTORE_TWOBYTEINTS
437 #pragma fourbyteints off
439 #elif PRAGMA_ENUM_OPTIONS
440 #pragma option enum =reset
441 #elif defined(__RAVESYSTEM__RESTORE_PACKED_ENUMS)
442 #pragma options(pack_enums)
445 #if PRAGMA_STRUCT_ALIGN
446 #pragma options align = reset
447 #elif PRAGMA_STRUCT_PACKPUSH
449 #elif PRAGMA_STRUCT_PACK
453 #ifdef PRAGMA_IMPORT_OFF
Set up for compiler independent conditionals.
TQAError QARegisterDrawMethod(TQADrawContext *drawContext, TQADrawMethodTag methodTag, TQADrawMethod method)
typedef CALLBACK_API_C(TQAError, TQAColorTableNew)(TQAColorTableType pixelType
long QAGetCurrentEngineRefCon(void)
TQAError QARegisterEngineWithRefCon(TQAEngineGetMethod engineGetMethod, long refCon)
TQAError QARegisterEngine(TQAEngineGetMethod engineGetMethod)
Interface for RAVE (Renderer Acceleration Virtual Engine)
TQAMethodSelector
Definition: RAVE.h:1009
TQAGestaltSelector
Definition: RAVE.h:949
Definition: RAVESystem.h:317
TQARenderEnd renderEnd
Definition: RAVESystem.h:334
TQADrawLine drawLine
Definition: RAVESystem.h:325
TQAGetNoticeMethod getNoticeMethod
Definition: RAVESystem.h:349
TQADrawTriMeshTexture drawTriMeshTexture
Definition: RAVESystem.h:347
TQADrawPoint drawPoint
Definition: RAVESystem.h:324
TQAAccessDrawBuffer accessDrawBuffer
Definition: RAVESystem.h:354
TQAGetFloat getFloat
Definition: RAVESystem.h:321
TQADrawVGouraud drawVGouraud
Definition: RAVESystem.h:330
TQARenderStart renderStart
Definition: RAVESystem.h:333
TQADrawBitmap drawBitmap
Definition: RAVESystem.h:332
TQASetInt setInt
Definition: RAVESystem.h:319
TQASetPtr setPtr
Definition: RAVESystem.h:320
TQAGetInt getInt
Definition: RAVESystem.h:322
TQASubmitVerticesGouraud submitVerticesGouraud
Definition: RAVESystem.h:341
TQAFlush flush
Definition: RAVESystem.h:338
TQADrawTriTexture drawTriTexture
Definition: RAVESystem.h:329
TQASubmitMultiTextureParams submitMultiTextureParams
Definition: RAVESystem.h:353
TQASubmitVerticesTexture submitVerticesTexture
Definition: RAVESystem.h:343
TQADrawTriMeshGouraud drawTriMeshGouraud
Definition: RAVESystem.h:345
TQASetNoticeMethod setNoticeMethod
Definition: RAVESystem.h:348
TQADrawVTexture drawVTexture
Definition: RAVESystem.h:331
TQASync sync
Definition: RAVESystem.h:339
TQAGetPtr getPtr
Definition: RAVESystem.h:323
TQADrawTriGouraud drawTriGouraud
Definition: RAVESystem.h:327
TQARenderAbort renderAbort
Definition: RAVESystem.h:336
Definition: RAVESystem.h:202
TQABitmapDelete bitmapDelete
Definition: RAVESystem.h:217
TQAColorTableDelete colorTableDelete
Definition: RAVESystem.h:219
TQABitmapBindColorTable bitmapBindColorTable
Definition: RAVESystem.h:223
TQAEngineCheckDevice engineCheckDevice
Definition: RAVESystem.h:207
TQAEngineGestalt engineGestalt
Definition: RAVESystem.h:208
TQAAccessTexture accessTexture
Definition: RAVESystem.h:224
TQABitmapNew bitmapNew
Definition: RAVESystem.h:214
TQATextureBindColorTable textureBindColorTable
Definition: RAVESystem.h:221
TQAColorTableNew colorTableNew
Definition: RAVESystem.h:218
TQATextureNew textureNew
Definition: RAVESystem.h:210
TQATextureDetach textureDetach
Definition: RAVESystem.h:212
TQADrawPrivateDelete drawPrivateDelete
Definition: RAVESystem.h:205
TQABitmapDetach bitmapDetach
Definition: RAVESystem.h:216
TQATextureDelete textureDelete
Definition: RAVESystem.h:213