PowerVR Software Development Kit |
00001 /*!*************************************************************************** 00002 @File OGLES/PVRTContext.h 00003 00004 @Brief Context specific stuff - i.e. 3D API-related. 00005 00006 @Author PowerVR 00007 00008 @Date July 2004 00009 00010 @Copyright Copyright 2003-2004 by Imagination Technologies Limited. 00011 All rights reserved. No part of this software, either 00012 material or conceptual may be copied or distributed, 00013 transmitted, transcribed, stored in a retrieval system 00014 or translated into any human or computer language in any 00015 form by any means, electronic, mechanical, manual or 00016 other-wise, or disclosed to third parties without the 00017 express written permission of Imagination Technologies 00018 Limited, Unit 8, HomePark Industrial Estate, 00019 King's Langley, Hertfordshire, WD4 8LZ, U.K. 00020 00021 @Platform ANSI compatible 00022 00023 @Description Context specific stuff - i.e. 3D API-related. 00024 00025 $Revision: 1.18 $ 00026 *****************************************************************************/ 00027 #ifndef _PVRTCONTEXT_H_ 00028 #define _PVRTCONTEXT_H_ 00029 00030 #if defined(WIN32) && !defined(UNDER_CE) /* Windows desktop */ 00031 #define _CRTDBG_MAP_ALLOC 00032 #include <windows.h> 00033 #endif 00034 00035 #include <stdio.h> 00036 #include <GLES/egl.h> 00037 #include <GLES/gl.h> 00038 00039 #ifndef min 00040 #define min(x,y) ( ((x) < (y)) ? (x) : (y) ) 00041 #endif 00042 00043 #ifndef max 00044 #define max(x,y) ( ((x) > (y)) ? (x) : (y) ) 00045 #endif 00046 00047 /**************************************************************************** 00048 ** Macros 00049 ****************************************************************************/ 00050 #define FREE(X) if(X) { free(X); (X) = 0; } 00051 00052 /**************************************************************************** 00053 ** Defines 00054 ****************************************************************************/ 00055 00056 #ifdef UNDER_CE /* Pocket PC and WinCE 5.0 only */ 00057 #ifdef DEBUG 00058 #define _ASSERT(X) { (X) ? 0 : DebugBreak(); } 00059 #define _ASSERTE _ASSERT 00060 #else 00061 #define _ASSERT(X) /* */ 00062 #define _ASSERTE(X) /* */ 00063 #endif 00064 #define _RPT0(a,b) 00065 #define _RPT1(a,b,c) 00066 #define _RPT2(a,b,c,d) 00067 #define _RPT3(a,b,c,d,e) 00068 #define _RPT4(a,b,c,d,e,f) 00069 #else 00070 #ifdef WIN32 /* Windows */ 00071 #include <tchar.h> 00072 #include <crtdbg.h> 00073 #else /* Other OSes */ 00074 #ifdef DEBUG 00075 #include <assert.h> 00076 #define _CRT_WARN 0 00077 #define _RPT0(a,b) printf(b) 00078 #define _RPT1(a,b,c) printf(b, c) 00079 #define _RPT2(a,b,c,d) printf(b,c,d) 00080 #define _RPT3(a,b,c,d,e) printf(b,c,d,e) 00081 #define _RPT4(a,b,c,d,e,f) printf(b,c,d,f) 00082 #ifndef _ASSERT 00083 #define _ASSERT(X) assert(X) 00084 #endif 00085 #define _ASSERTE(X) _ASSERT(X) 00086 #else 00087 #define _CRT_WARN 0 00088 #define _RPT0(a,b) 00089 #define _RPT1(a,b,c) 00090 #define _RPT2(a,b,c,d) 00091 #define _RPT3(a,b,c,d,e) 00092 #define _RPT4(a,b,c,d,e,f) 00093 #ifdef _ASSERT 00094 #undef _ASSERT 00095 #endif 00096 #define _ASSERT(X) /* */ 00097 #define _ASSERTE(X) /* */ 00098 #endif 00099 #endif 00100 #endif 00101 00102 /**************************************************************************** 00103 ** Enumerations 00104 ****************************************************************************/ 00105 00106 /**************************************************************************** 00107 ** Structures 00108 ****************************************************************************/ 00109 struct SPVRTContext 00110 { 00111 int reserved; // No context info for OGL. 00112 }; 00113 00114 /**************************************************************************** 00115 ** Functions 00116 ****************************************************************************/ 00117 00118 00119 #endif /* _PVRTCONTEXT_H_ */ 00120 00121 /***************************************************************************** 00122 End of file (PVRTContext.h) 00123 *****************************************************************************/
Copyright © 1999-2006, PowerVR Technologies and partners. PowerVR Technologies is a division of Imagination Technologies Ltd.