/*!**************************************************************************** @file OGLES2/PVRTContext.h @ingroup API_OGLES2 @copyright Copyright (c) Imagination Technologies Limited. @brief Context specific stuff - i.e. 3D API-related. ******************************************************************************/ #ifndef _PVRTCONTEXT_H_ #define _PVRTCONTEXT_H_ /*! @addtogroup API_OGLES2 @{ */ #include #if defined(BUILD_OGLES2) #if defined(__APPLE__) #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE==1 #import #import #else //OSX #include #include #include #endif #else #if defined(__PALMPDK__) #include #include #else #if !defined(EGL_NOT_PRESENT) #include #endif #include #include #endif #include #endif #elif defined(BUILD_OGLES3) #include #include #include #include #include #endif /**************************************************************************** ** Macros ****************************************************************************/ #define PVRTRGBA(r, g, b, a) ((GLuint) (((a) << 24) | ((b) << 16) | ((g) << 8) | (r))) /**************************************************************************** ** Defines ****************************************************************************/ /**************************************************************************** ** Enumerations ****************************************************************************/ /**************************************************************************** ** Structures ****************************************************************************/ /*!************************************************************************** @struct SPVRTContext @brief A structure for storing API specific variables ****************************************************************************/ struct SPVRTContext { int reserved; // No context info for OGLES2. }; /**************************************************************************** ** Functions ****************************************************************************/ /*! @} */ #endif /* _PVRTCONTEXT_H_ */ /***************************************************************************** End of file (PVRTContext.h) *****************************************************************************/