22 #ifndef __CONDITIONALMACROS__
35 #ifndef __QDOFFSCREEN__
43 #ifndef RAVE_NO_DIRECTDRAW
62 #if PRAGMA_STRUCT_ALIGN
63 #pragma options align = power
64 #elif PRAGMA_STRUCT_PACKPUSH
66 #elif PRAGMA_STRUCT_PACK
70 #if PRAGMA_ENUM_ALWAYSINT
71 #if defined(__fourbyteints__) && !__fourbyteints__
72 #define __RAVE__RESTORE_TWOBYTEINTS
73 #pragma fourbyteints on
75 #pragma enumsalwaysint on
76 #elif PRAGMA_ENUM_OPTIONS
77 #pragma option enum =int
78 #elif PRAGMA_ENUM_PACK
79 #if __option(pack_enums)
80 #define __RAVE__RESTORE_PACKED_ENUMS
81 #pragma options(!pack_enums)
85 #define RAVE_OBSOLETE 0
95 #if !defined(kQAMacOS)
99 #if !defined(kQAGeneric)
103 #if !defined(kQAWin32)
107 #if defined(_WIN32) || defined(_WINDOWS)
108 #define kQAPlatform kQAWin32
109 #elif !defined(kQAPlatform)
110 #define kQAPlatform kQAMacOS
118 #if defined(_MSC_VER)
120 #if defined(WIN32_RAVEEXPORTING)
122 #define RAVE_EXPORT __declspec(dllexport)
124 #define RAVE_CALLBACK
126 #define RAVE_EXPORT __declspec(dllimport)
127 #define RAVE_CALL __cdecl
128 #define RAVE_CALLBACK __cdecl
134 #define RAVE_CALLBACK
144 enum TQAImagePixelType
157 kQAPixel_RGB8_332 = 9,
158 kQAPixel_ARGB16_4444 = 10,
168 kQAPixel_YVYU422 = 16,
170 kQAPixel_UYVY422 = 17
173 typedef enum TQAImagePixelType TQAImagePixelType;
175 enum TQAColorTableType
177 kQAColorTable_CL8_RGB32 =
179 kQAColorTable_CL4_RGB32 =
182 typedef enum TQAColorTableType TQAColorTableType;
188 kQADeviceGDevice = 1,
189 kQADeviceWin32DC = 2,
190 kQADeviceDDSurface = 3
192 typedef enum TQADeviceType TQADeviceType;
198 TQAImagePixelType pixelType;
207 TQAImagePixelType pixelType;
216 typedef enum TQAClipType TQAClipType;
238 typedef CALLBACK_API(
void, TQADrawNotificationProcPtr)(
short left,
short top,
243 typedef long TQADrawNotificationProcRefNum;
245 #elif TARGET_OS_WIN32
247 #if !defined(RAVE_NO_DIRECTDRAW)
249 enum TQADirectDrawObjectSelector
251 kQADirectDrawObject = 1,
252 kQADirectDrawObject2 = 2
254 typedef enum TQADirectDrawObjectSelector TQADirectDrawObjectSelector;
256 enum TQADirectDrawSurfaceSelector
258 kQADirectDrawSurface = 1,
259 kQADirectDrawSurface2 = 2
261 typedef enum TQADirectDrawSurfaceSelector TQADirectDrawSurfaceSelector;
269 #if !defined(RAVE_NO_DIRECTDRAW)
272 TQADirectDrawObjectSelector objectSelector;
275 LPDIRECTDRAW lpDirectDraw;
276 LPDIRECTDRAW2 lpDirectDraw2;
279 TQADirectDrawSurfaceSelector surfaceSelector;
282 LPDIRECTDRAWSURFACE lpDirectDrawSurface;
283 LPDIRECTDRAWSURFACE2 lpDirectDrawSurface2;
315 TQADeviceType deviceType;
321 TQAClipType clipType;
332 typedef struct TQAEngine TQAEngine;
334 typedef struct TQATexture TQATexture;
336 typedef struct TQABitmap TQABitmap;
338 typedef struct TQADrawPrivate TQADrawPrivate;
340 typedef struct TQAColorTable TQAColorTable;
344 unsigned long triangleFlags;
345 unsigned long vertices[3];
381 kQAGestaltUnknown = 6,
382 kQADisplayModeUnsupported =
385 kQAOutOfVideoMemory =
388 typedef enum TQAError TQAError;
392 typedef unsigned char TQABoolean;
639 kQATag_ZFunction = 0,
640 kQATag_Antialias = 8,
642 kQATag_PerspectiveZ = 10,
643 kQATag_TextureFilter = 11,
644 kQATag_TextureOp = 12,
646 kQATag_CSGEquation = 15,
647 kQATag_BufferComposite = 16,
649 kQATag_ChannelMask = 27,
650 kQATag_ZBufferMask = 28,
651 kQATag_ZSortedHint = 29,
652 kQATag_ChromakeyEnable = 30,
653 kQATag_AlphaTestFunc = 31,
654 kQATag_DontSwap = 32,
655 kQATag_MultiTextureEnable = 33,
656 kQATag_MultiTextureCurrent = 34,
657 kQATag_MultiTextureOp = 35,
658 kQATag_MultiTextureFilter = 36,
659 kQATag_MultiTextureWrapU = 37,
660 kQATag_MultiTextureWrapV = 38,
661 kQATag_MultiTextureMagFilter = 39,
662 kQATag_MultiTextureMinFilter = 40,
663 kQATag_BitmapFilter =
665 kQATag_DrawContextFilter =
667 kQATagGL_DrawBuffer = 100,
668 kQATagGL_TextureWrapU = 101,
669 kQATagGL_TextureWrapV = 102,
670 kQATagGL_TextureMagFilter = 103,
671 kQATagGL_TextureMinFilter = 104,
672 kQATagGL_ScissorXMin = 105,
673 kQATagGL_ScissorYMin = 106,
674 kQATagGL_ScissorXMax = 107,
675 kQATagGL_ScissorYMax = 108,
676 kQATagGL_BlendSrc = 109,
677 kQATagGL_BlendDst = 110,
678 kQATagGL_LinePattern = 111,
679 kQATagGL_AreaPattern0 = 117,
680 kQATagGL_AreaPattern31 = 148,
681 kQATagGL_LinePatternFactor = 149,
682 kQATag_EngineSpecific_Minimum = 1000
689 kQATag_MultiTexture = 26
691 typedef enum TQATagPtr TQATagPtr;
695 kQATag_ColorBG_a = 1,
696 kQATag_ColorBG_r = 2,
697 kQATag_ColorBG_g = 3,
698 kQATag_ColorBG_b = 4,
700 kQATag_ZMinOffset = 6,
701 kQATag_ZMinScale = 7,
702 kQATag_FogColor_a = 18,
703 kQATag_FogColor_r = 19,
704 kQATag_FogColor_g = 20,
705 kQATag_FogColor_b = 21,
706 kQATag_FogStart = 22,
708 kQATag_FogDensity = 24,
709 kQATag_FogMaxDepth = 25,
710 kQATag_MipmapBias = 41,
711 kQATag_MultiTextureMipmapBias = 42,
712 kQATag_Chromakey_r = 43,
713 kQATag_Chromakey_g = 44,
714 kQATag_Chromakey_b = 45,
715 kQATag_AlphaTestRef = 46,
716 kQATag_MultiTextureBorder_a = 47,
717 kQATag_MultiTextureBorder_r = 48,
718 kQATag_MultiTextureBorder_g = 49,
719 kQATag_MultiTextureBorder_b = 50,
720 kQATag_MultiTextureFactor = 51,
721 kQATag_BitmapScale_x =
723 kQATag_BitmapScale_y =
725 kQATag_MultiTextureEnvColor_a = 56,
726 kQATag_MultiTextureEnvColor_r = 57,
727 kQATag_MultiTextureEnvColor_g = 58,
728 kQATag_MultiTextureEnvColor_b = 59,
729 kQATagGL_DepthBG = 112,
730 kQATagGL_TextureBorder_a = 113,
731 kQATagGL_TextureBorder_r = 114,
732 kQATagGL_TextureBorder_g = 115,
733 kQATagGL_TextureBorder_b = 116,
734 kQATagGL_TextureEnvColor_a = 150,
735 kQATagGL_TextureEnvColor_r = 151,
736 kQATagGL_TextureEnvColor_g = 152,
737 kQATagGL_TextureEnvColor_b = 153
739 typedef enum TQATagFloat TQATagFloat;
752 kQAZFunction_True = 7,
753 kQAZFunction_False = 8
757 #define kQAMaxWidth 128.0
761 kQAAntiAlias_Off = 0,
762 kQAAntiAlias_Fast = 1,
763 kQAAntiAlias_Mid = 2,
764 kQAAntiAlias_Best = 3
770 kQABlend_PreMultiply = 0,
771 kQABlend_Interpolate = 1,
778 kQABufferComposite_None =
780 kQABufferComposite_PreMultiply = 1,
782 kQABufferComposite_Interpolate = 2
789 kQAPerspectiveZ_Off = 0,
790 kQAPerspectiveZ_On = 1
797 kQATextureFilter_Fast = 0,
798 kQATextureFilter_Mid = 1,
799 kQATextureFilter_Best = 2
814 kQATextureOp_None = 0,
815 kQATextureOp_Modulate = (1 << 0),
816 kQATextureOp_Highlight = (1 << 1),
817 kQATextureOp_Decal = (1 << 2),
818 kQATextureOp_Shrink =
820 kQATextureOp_Blend = (1 << 4)
826 kQAMultiTexture_Add = 0,
827 kQAMultiTexture_Modulate = 1,
828 kQAMultiTexture_BlendAlpha =
830 kQAMultiTexture_Fixed =
835 #define kQACSGTag_None 0xffffffffUL
855 kQAGL_SourceBlend_XXX = 0
861 kQAGL_DestBlend_XXX = 0
867 kQAGL_DrawBuffer_None = 0,
868 kQAGL_DrawBuffer_FrontLeft = (1 << 0),
869 kQAGL_DrawBuffer_FrontRight = (1 << 1),
870 kQAGL_DrawBuffer_BackLeft = (1 << 2),
871 kQAGL_DrawBuffer_BackRight = (1 << 3),
872 kQAGL_DrawBuffer_Front =
873 (kQAGL_DrawBuffer_FrontLeft | kQAGL_DrawBuffer_FrontRight),
874 kQAGL_DrawBuffer_Back =
875 (kQAGL_DrawBuffer_BackLeft | kQAGL_DrawBuffer_BackRight)
882 kQAFogMode_Alpha = 1,
883 kQAFogMode_Linear = 2,
884 kQAFogMode_Exponential = 3,
885 kQAFogMode_ExponentialSquared = 4
891 kQAChannelMask_r = (1 << 0),
892 kQAChannelMask_g = (1 << 1),
893 kQAChannelMask_b = (1 << 2),
894 kQAChannelMask_a = (1 << 3)
900 kQAZBufferMask_Disable = 0,
901 kQAZBufferMask_Enable = 1
907 kQAAlphaTest_None = 0,
914 kQAAlphaTest_True = 7
920 kQANoCopyNeeded = (1 << 0)
934 kQAVertexMode_Point = 0,
935 kQAVertexMode_Line = 1,
936 kQAVertexMode_Polyline = 2,
937 kQAVertexMode_Tri = 3,
938 kQAVertexMode_Strip = 4,
939 kQAVertexMode_Fan = 5,
940 kQAVertexMode_NumModes = 6
950 kQAGestalt_OptionalFeatures = 0,
951 kQAGestalt_FastFeatures = 1,
952 kQAGestalt_VendorID = 2,
953 kQAGestalt_EngineID = 3,
954 kQAGestalt_Revision = 4,
955 kQAGestalt_ASCIINameLength = 5,
956 kQAGestalt_ASCIIName = 6,
957 kQAGestalt_TextureMemory = 7,
958 kQAGestalt_FastTextureMemory =
960 kQAGestalt_DrawContextPixelTypesAllowed =
963 kQAGestalt_DrawContextPixelTypesPreferred =
966 kQAGestalt_TexturePixelTypesAllowed =
969 kQAGestalt_TexturePixelTypesPreferred =
972 kQAGestalt_BitmapPixelTypesAllowed =
975 kQAGestalt_BitmapPixelTypesPreferred =
978 kQAGestalt_OptionalFeatures2 = 15,
979 kQAGestalt_MultiTextureMax =
981 kQAGestalt_NumSelectors = 17,
982 kQAGestalt_EngineSpecific_Minimum =
994 kQAMethod_RenderCompletion =
996 kQAMethod_DisplayModeChanged = 1,
997 kQAMethod_ReloadTextures =
999 kQAMethod_BufferInitialize =
1001 kQAMethod_BufferComposite =
1003 kQAMethod_NumSelectors = 5
1010 kQAMethod_RenderCompletion =
1012 kQAMethod_DisplayModeChanged = 1,
1013 kQAMethod_ReloadTextures =
1015 kQAMethod_ImageBufferInitialize =
1017 kQAMethod_ImageBuffer2DComposite =
1019 kQAMethod_NumSelectors = 5
1031 kQATriFlags_None = 0,
1032 kQATriFlags_Backfacing = (1 << 0)
1041 kQATexture_None = 0,
1042 kQATexture_Lock = (1 << 0),
1043 kQATexture_Mipmap = (1 << 1),
1044 kQATexture_NoCompression = (1 << 2),
1045 kQATexture_HighCompression =
1047 kQATexture_NonRelocatable =
1049 kQATexture_NoCopy = (1 << 5),
1050 kQATexture_FlipOrigin =
1053 kQATexture_PriorityBits =
1054 (1 << 31) | (1 << 30) | (1 << 29) |
1065 kQABitmap_Lock = (1 << 1),
1066 kQABitmap_NoCompression = (1 << 2),
1067 kQABitmap_HighCompression =
1069 kQABitmap_NonRelocatable =
1071 kQABitmap_NoCopy = (1 << 5),
1072 kQABitmap_FlipOrigin = (1 << 6),
1074 kQABitmap_PriorityBits =
1075 (1 << 31) | (1 << 30) | (1 << 29) |
1085 kQAContext_None = 0,
1086 kQAContext_NoZBuffer = (1 << 0),
1087 kQAContext_DeepZ = (1 << 1),
1088 kQAContext_DoubleBuffer = (1 << 2),
1089 kQAContext_Cache = (1 << 3),
1090 kQAContext_NoDither = (1 << 4),
1094 kQAContext_NonRelocatable =
1096 kQAContext_EngineSpecific1 = (1 << 28),
1097 kQAContext_EngineSpecific2 = (1 << 29),
1098 kQAContext_EngineSpecific3 = (1 << 30),
1099 kQAContext_EngineSpecific4 = (1 << 31)
1108 kQAOptional_None = 0,
1109 kQAOptional_DeepZ = (1 << 0),
1110 kQAOptional_Texture = (1 << 1),
1111 kQAOptional_TextureHQ =
1113 kQAOptional_TextureColor =
1115 kQAOptional_Blend = (1 << 4),
1116 kQAOptional_BlendAlpha =
1118 kQAOptional_Antialias = (1 << 6),
1119 kQAOptional_ZSorted =
1121 kQAOptional_PerspectiveZ =
1123 kQAOptional_OpenGL =
1125 kQAOptional_NoClear =
1127 kQAOptional_CSG = (1 << 11),
1128 kQAOptional_BoundToDevice =
1130 kQAOptional_CL4 = (1 << 13),
1131 kQAOptional_CL8 = (1 << 14),
1132 kQAOptional_BufferComposite =
1134 kQAOptional_NoDither = (1 << 16),
1135 kQAOptional_FogAlpha = (1 << 17),
1136 kQAOptional_FogDepth = (1 << 18),
1137 kQAOptional_MultiTextures =
1139 kQAOptional_MipmapBias = (1 << 20),
1141 kQAOptional_ChannelMask = (1 << 21),
1142 kQAOptional_ZBufferMask = (1 << 22),
1143 kQAOptional_AlphaTest = (1 << 23),
1144 kQAOptional_AccessTexture =
1146 kQAOptional_AccessBitmap =
1148 kQAOptional_AccessDrawBuffer =
1150 kQAOptional_AccessZBuffer =
1152 kQAOptional_ClearDrawBuffer =
1154 kQAOptional_ClearZBuffer =
1156 kQAOptional_OffscreenDrawContexts =
1166 kQAOptional2_None = 0,
1167 kQAOptional2_TextureDrawContexts =
1169 kQAOptional2_BitmapDrawContexts =
1171 kQAOptional2_Busy = (1 << 3),
1172 kQAOptional2_SwapBuffers = (1 << 4),
1173 kQAOptional2_Chromakey =
1175 kQAOptional2_NonRelocatable =
1178 kQAOptional2_NoCopy = (1 << 7),
1180 kQAOptional2_PriorityBits =
1182 kQAOptional2_FlipOrigin = (1 << 9),
1184 kQAOptional2_BitmapScale =
1186 kQAOptional2_DrawContextScale =
1188 kQAOptional2_DrawContextNonRelocatable =
1200 kQAFast_Line = (1 << 0),
1201 kQAFast_Gouraud = (1 << 1),
1202 kQAFast_Texture = (1 << 2),
1205 kQAFast_Blend = (1 << 4),
1206 kQAFast_Antialiasing = (1 << 5),
1207 kQAFast_ZSorted = (1 << 6),
1208 kQAFast_CL4 = (1 << 7),
1209 kQAFast_CL8 = (1 << 8),
1210 kQAFast_FogAlpha = (1 << 9),
1211 kQAFast_FogDepth = (1 << 10),
1212 kQAFast_MultiTextures =
1214 kQAFast_BitmapScale =
1216 kQAFast_DrawContextScale =
1261 #define QACalculatePriorityBits(_priority) (((unsigned long)(_priority)) << 28)
1287 #define QASetFloat(drawContext, tag, newValue) \
1288 (drawContext)->setFloat(drawContext, tag, newValue)
1290 #define QASetInt(drawContext, tag, newValue) \
1291 (drawContext)->setInt(drawContext, tag, newValue)
1293 #define QASetPtr(drawContext, tag, newValue) \
1294 (drawContext)->setPtr(drawContext, tag, newValue)
1296 #define QAGetFloat(drawContext, tag) (drawContext)->getFloat(drawContext, tag)
1298 #define QAGetInt(drawContext, tag) (drawContext)->getInt(drawContext, tag)
1300 #define QAGetPtr(drawContext, tag) (drawContext)->getPtr(drawContext, tag)
1302 #define QADrawPoint(drawContext, v) (drawContext)->drawPoint(drawContext, v)
1304 #define QADrawLine(drawContext, v0, v1) \
1305 (drawContext)->drawLine(drawContext, v0, v1)
1307 #define QADrawTriGouraud(drawContext, v0, v1, v2, flags) \
1308 (drawContext)->drawTriGouraud(drawContext, v0, v1, v2, flags)
1310 #define QADrawTriTexture(drawContext, v0, v1, v2, flags) \
1311 (drawContext)->drawTriTexture(drawContext, v0, v1, v2, flags)
1313 #define QASubmitVerticesGouraud(drawContext, nVertices, vertices) \
1314 (drawContext)->submitVerticesGouraud(drawContext, nVertices, vertices)
1316 #define QASubmitVerticesTexture(drawContext, nVertices, vertices) \
1317 (drawContext)->submitVerticesTexture(drawContext, nVertices, vertices)
1319 #define QASubmitMultiTextureParams(drawContext, nParams, params) \
1320 (drawContext)->submitMultiTextureParams(drawContext, nParams, params)
1322 #define QADrawTriMeshGouraud(drawContext, nTriangle, triangles) \
1323 (drawContext)->drawTriMeshGouraud(drawContext, nTriangle, triangles)
1325 #define QADrawTriMeshTexture(drawContext, nTriangle, triangles) \
1326 (drawContext)->drawTriMeshTexture(drawContext, nTriangle, triangles)
1328 #define QADrawVGouraud(drawContext, nVertices, vertexMode, vertices, flags) \
1330 ->drawVGouraud(drawContext, nVertices, vertexMode, vertices, flags)
1332 #define QADrawVTexture(drawContext, nVertices, vertexMode, vertices, flags) \
1334 ->drawVTexture(drawContext, nVertices, vertexMode, vertices, flags)
1336 #define QADrawBitmap(drawContext, v, bitmap) \
1337 (drawContext)->drawBitmap(drawContext, v, bitmap)
1339 #define QARenderStart(drawContext, dirtyRect, initialContext) \
1340 (drawContext)->renderStart(drawContext, dirtyRect, initialContext)
1342 #define QARenderEnd(drawContext, modifiedRect) \
1343 (drawContext)->renderEnd(drawContext, modifiedRect)
1345 #define QARenderAbort(drawContext) (drawContext)->renderAbort(drawContext)
1347 #define QAFlush(drawContext) (drawContext)->flush(drawContext)
1349 #define QASync(drawContext) (drawContext)->sync(drawContext)
1351 #define QASetNoticeMethod(drawContext, method, completionCallBack, refCon) \
1353 ->setNoticeMethod(drawContext, method, completionCallBack, refCon)
1355 #define QAGetNoticeMethod(drawContext, method, completionCallBack, refCon) \
1357 ->getNoticeMethod(drawContext, method, completionCallBack, refCon)
1359 #define QAAccessDrawBuffer(drawContext, pixelBuffer) \
1360 (drawContext)->accessDrawBuffer(drawContext, pixelBuffer)
1362 #define QAAccessDrawBufferEnd(drawContext, dirtyRect) \
1363 (drawContext)->accessDrawBufferEnd(drawContext, dirtyRect)
1365 #define QAAccessZBuffer(drawContext, zBuffer) \
1366 (drawContext)->accessZBuffer(drawContext, zBuffer)
1368 #define QAAccessZBufferEnd(drawContext, dirtyRect) \
1369 (drawContext)->accessZBufferEnd(drawContext, dirtyRect)
1371 #define QAClearDrawBuffer(drawContext, rect, initialContext) \
1372 (drawContext)->clearDrawBuffer(drawContext, rect, initialContext)
1374 #define QAClearZBuffer(drawContext, rect, initialContext) \
1375 (drawContext)->clearZBuffer(drawContext, rect, initialContext)
1377 #define QATextureNewFromDrawContext(drawContext, flags, newTexture) \
1378 (drawContext)->textureFromContext(drawContext, flags, newTexture)
1380 #define QABitmapNewFromDrawContext(drawContext, flags, newBitmap) \
1381 (drawContext)->bitmapFromContext(drawContext, flags, newBitmap)
1383 #define QABusy(drawContext) (drawContext)->busy(drawContext)
1385 #define QASwapBuffers(drawContext, dirtyRect) \
1386 (drawContext)->swapBuffers(drawContext, dirtyRect)
1394 kQAVersion_Prerelease = 0,
1396 kQAVersion_1_0_5 = 2,
1401 typedef enum TQAVersion TQAVersion;
1418 typedef CALLBACK_API_C(
void, TQAStandardNoticeMethod)(
1420 typedef CALLBACK_API_C(
void,
1427 TQAStandardNoticeMethod
1428 standardNoticeMethod;
1429 TQABufferNoticeMethod
1433 typedef CALLBACK_API_C(
void, TQASetFloat)(
TQADrawContext *drawContext,
1434 TQATagFloat tag,
float newValue);
1435 typedef CALLBACK_API_C(
void, TQASetInt)(
TQADrawContext *drawContext,
1437 typedef CALLBACK_API_C(
void, TQASetPtr)(
TQADrawContext *drawContext,
1438 TQATagPtr tag,
const void *newValue);
1439 typedef CALLBACK_API_C(
float, TQAGetFloat)(
const TQADrawContext *drawContext,
1441 typedef CALLBACK_API_C(
unsigned long,
1444 typedef CALLBACK_API_C(
void *, TQAGetPtr)(
const TQADrawContext *drawContext,
1446 typedef CALLBACK_API_C(
void, TQADrawPoint)(
const TQADrawContext *drawContext,
1448 typedef CALLBACK_API_C(
void, TQADrawLine)(
const TQADrawContext *drawContext,
1451 typedef CALLBACK_API_C(
void, TQADrawTriGouraud)(
1454 typedef CALLBACK_API_C(
void, TQADrawTriTexture)(
1457 typedef CALLBACK_API_C(
void, TQASubmitVerticesGouraud)(
1460 typedef CALLBACK_API_C(
void, TQASubmitVerticesTexture)(
1463 typedef CALLBACK_API_C(
void, TQADrawTriMeshGouraud)(
1466 typedef CALLBACK_API_C(
void, TQADrawTriMeshTexture)(
1469 typedef CALLBACK_API_C(
void, TQADrawVGouraud)(
const TQADrawContext *drawContext,
1470 unsigned long nVertices,
1473 const unsigned long flags[]);
1474 typedef CALLBACK_API_C(
void, TQADrawVTexture)(
const TQADrawContext *drawContext,
1475 unsigned long nVertices,
1478 const unsigned long flags[]);
1479 typedef CALLBACK_API_C(
void, TQADrawBitmap)(
const TQADrawContext *drawContext,
1482 typedef CALLBACK_API_C(
void,
1486 typedef CALLBACK_API_C(TQAError,
1489 typedef CALLBACK_API_C(TQAError,
1491 typedef CALLBACK_API_C(TQAError, TQAFlush)(
const TQADrawContext *drawContext);
1492 typedef CALLBACK_API_C(TQAError, TQASync)(
const TQADrawContext *drawContext);
1493 typedef CALLBACK_API_C(TQAError,
1498 typedef CALLBACK_API_C(TQAError,
1503 typedef CALLBACK_API_C(
void, TQASubmitMultiTextureParams)(
1506 typedef CALLBACK_API_C(TQAError,
1509 typedef CALLBACK_API_C(TQAError, TQAAccessDrawBufferEnd)(
1511 typedef CALLBACK_API_C(TQAError,
1514 typedef CALLBACK_API_C(TQAError,
1517 typedef CALLBACK_API_C(TQAError, TQAClearDrawBuffer)(
1520 typedef CALLBACK_API_C(TQAError,
1524 typedef CALLBACK_API_C(TQAError, TQATextureNewFromDrawContext)(
1526 TQATexture **newTexture);
1527 typedef CALLBACK_API_C(TQAError, TQABitmapNewFromDrawContext)(
1529 TQABitmap **newBitmap);
1530 typedef CALLBACK_API_C(TQABoolean, TQABusy)(
const TQADrawContext *drawContext);
1531 typedef CALLBACK_API_C(TQAError,
1542 TQADrawPrivate *drawPrivate;
1544 TQASetFloat setFloat;
1547 TQAGetFloat getFloat;
1550 TQADrawPoint drawPoint;
1551 TQADrawLine drawLine;
1552 TQADrawTriGouraud drawTriGouraud;
1553 TQADrawTriTexture drawTriTexture;
1554 TQADrawVGouraud drawVGouraud;
1555 TQADrawVTexture drawVTexture;
1556 TQADrawBitmap drawBitmap;
1557 TQARenderStart renderStart;
1558 TQARenderEnd renderEnd;
1564 TQASubmitVerticesGouraud
1565 submitVerticesGouraud;
1566 TQASubmitVerticesTexture
1567 submitVerticesTexture;
1568 TQADrawTriMeshGouraud
1570 TQADrawTriMeshTexture
1572 TQASetNoticeMethod setNoticeMethod;
1573 TQAGetNoticeMethod getNoticeMethod;
1574 TQASubmitMultiTextureParams
1575 submitMultiTextureParams;
1576 TQAAccessDrawBuffer accessDrawBuffer;
1577 TQAAccessDrawBufferEnd accessDrawBufferEnd;
1578 TQAAccessZBuffer accessZBuffer;
1579 TQAAccessZBufferEnd accessZBufferEnd;
1580 TQAClearDrawBuffer clearDrawBuffer;
1581 TQAClearZBuffer clearZBuffer;
1582 TQATextureNewFromDrawContext textureFromContext;
1583 TQABitmapNewFromDrawContext bitmapFromContext;
1585 TQASwapBuffers swapBuffers;
1593 #if CALL_NOT_IN_CARBON
1604 const TQAClip *clip,
const TQAEngine *engine,
1628 void *pixelData,
long transparentIndexFlag,
1629 TQAColorTable **newTable);
1652 TQAImagePixelType pixelType,
const TQAImage images[],
1653 TQATexture **newTexture);
1687 TQAColorTable *colorTable);
1699 TQAImagePixelType pixelType,
const TQAImage *image,
1700 TQABitmap **newBitmap);
1734 TQAColorTable *colorTable);
1854 #if CALL_NOT_IN_CARBON
1864 QARegisterDrawNotificationProc(
Rect *globalRect,
1865 TQADrawNotificationProcPtr proc,
long refCon,
1866 TQADrawNotificationProcRefNum *refNum);
1877 QAUnregisterDrawNotificationProc(TQADrawNotificationProcRefNum refNum);
1883 #if PRAGMA_ENUM_ALWAYSINT
1884 #pragma enumsalwaysint reset
1885 #ifdef __RAVE__RESTORE_TWOBYTEINTS
1886 #pragma fourbyteints off
1888 #elif PRAGMA_ENUM_OPTIONS
1889 #pragma option enum =reset
1890 #elif defined(__RAVE__RESTORE_PACKED_ENUMS)
1891 #pragma options(pack_enums)
1894 #if PRAGMA_STRUCT_ALIGN
1895 #pragma options align = reset
1896 #elif PRAGMA_STRUCT_PACKPUSH
1898 #elif PRAGMA_STRUCT_PACK
1902 #ifdef PRAGMA_IMPORT_OFF
1905 #pragma import reset
Set up for compiler independent conditionals.
Basic Macintosh data types.
Quickdraw Offscreen GWorld Interfaces.
Interface to Quickdraw Graphics.
void QABitmapDelete(const TQAEngine *engine, TQABitmap *bitmap)
TQAEngine * QADeviceGetNextEngine(const TQADevice *device, const TQAEngine *currentEngine)
TQAError QATextureNew(const TQAEngine *engine, unsigned long flags, TQAImagePixelType pixelType, const TQAImage images[], TQATexture **newTexture)
void QADrawContextDelete(TQADrawContext *drawContext)
TQAError QATextureBindColorTable(const TQAEngine *engine, TQATexture *texture, TQAColorTable *colorTable)
TQAError QAEngineGestalt(const TQAEngine *engine, TQAGestaltSelector selector, void *response)
void QATextureDelete(const TQAEngine *engine, TQATexture *texture)
TQAError QAAccessBitmapEnd(const TQAEngine *engine, TQABitmap *bitmap, const TQARect *dirtyRect)
TQAError QABitmapDetach(const TQAEngine *engine, TQABitmap *bitmap)
TQAEngine * QADeviceGetFirstEngine(const TQADevice *device)
TQAError QAAccessBitmap(const TQAEngine *engine, TQABitmap *bitmap, long flags, TQAPixelBuffer *buffer)
TQAError QADrawContextNew(const TQADevice *device, const TQARect *rect, const TQAClip *clip, const TQAEngine *engine, unsigned long flags, TQADrawContext **newDrawContext)
TQAError QAEngineDisable(long vendorID, long engineID)
TQAError QAColorTableNew(const TQAEngine *engine, TQAColorTableType tableType, void *pixelData, long transparentIndexFlag, TQAColorTable **newTable)
TQAError QAEngineCheckDevice(const TQAEngine *engine, const TQADevice *device)
void QAColorTableDelete(const TQAEngine *engine, TQAColorTable *colorTable)
TQAVertexMode
Definition: RAVE.h:933
TQAMethodSelector
Definition: RAVE.h:1009
TQAError QABitmapBindColorTable(const TQAEngine *engine, TQABitmap *bitmap, TQAColorTable *colorTable)
TQAError QAAccessTexture(const TQAEngine *engine, TQATexture *texture, long mipmapLevel, long flags, TQAPixelBuffer *buffer)
TQAError QAEngineEnable(long vendorID, long engineID)
TQAGestaltSelector
Definition: RAVE.h:949
TQATagInt
Definition: RAVE.h:638
TQAError QAAccessTextureEnd(const TQAEngine *engine, TQATexture *texture, const TQARect *dirtyRect)
TQAError QATextureDetach(const TQAEngine *engine, TQATexture *texture)
TQAError QABitmapNew(const TQAEngine *engine, unsigned long flags, TQAImagePixelType pixelType, const TQAImage *image, TQABitmap **newBitmap)
Definition: Quickdraw.h:2178
Definition: Quickdraw.h:306
Definition: MacTypes.h:527