Home | History | Annotate | Download | only in OGLES2
      1 /*!****************************************************************************
      2 
      3  @file         OGLES2/PVRTContext.h
      4  @ingroup      API_OGLES2
      5  @copyright    Copyright (c) Imagination Technologies Limited.
      6  @brief        Context specific stuff - i.e. 3D API-related.
      7 
      8 ******************************************************************************/
      9 
     10 #ifndef _PVRTCONTEXT_H_
     11 #define _PVRTCONTEXT_H_
     12 
     13 /*!
     14  @addtogroup   API_OGLES2
     15  @{
     16 */
     17 
     18 #include <stdio.h>
     19 #if defined(BUILD_OGLES2)
     20 #if defined(__APPLE__)
     21 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE==1
     22 #import <OpenGLES/ES2/gl.h>
     23 #import <OpenGLES/ES2/glext.h>
     24 #else	//OSX
     25 #include <GLES2/gl2.h>
     26 #include <GLES2/gl2ext.h>
     27 #include <GLES2/gl2extimg.h>
     28 #endif
     29 #else
     30 #if defined(__PALMPDK__)
     31 #include <GLES2/gl2.h>
     32 #include <GLES2/gl2ext.h>
     33 #else
     34 #if !defined(EGL_NOT_PRESENT)
     35 #include <EGL/egl.h>
     36 #endif
     37 #include <GLES2/gl2.h>
     38 #include <GLES2/gl2ext.h>
     39 #endif
     40 #include <GLES2/gl2extimg.h>
     41 #endif
     42 #elif defined(BUILD_OGLES3)
     43 #include <EGL/egl.h>
     44 #include <GLES3/gl3.h>
     45 #include <GLES3/gl3ext.h>
     46 #include <GLES2/gl2ext.h>
     47 #include <GLES2/gl2extimg.h>
     48 #endif
     49 
     50 /****************************************************************************
     51 ** Macros
     52 ****************************************************************************/
     53 #define PVRTRGBA(r, g, b, a)   ((GLuint) (((a) << 24) | ((b) << 16) | ((g) << 8) | (r)))
     54 
     55 /****************************************************************************
     56 ** Defines
     57 ****************************************************************************/
     58 
     59 /****************************************************************************
     60 ** Enumerations
     61 ****************************************************************************/
     62 
     63 /****************************************************************************
     64 ** Structures
     65 ****************************************************************************/
     66 
     67 /*!**************************************************************************
     68  @struct    SPVRTContext
     69  @brief     A structure for storing API specific variables
     70 ****************************************************************************/
     71 struct SPVRTContext
     72 {
     73 	int reserved;	// No context info for OGLES2.
     74 };
     75 
     76 /****************************************************************************
     77 ** Functions
     78 ****************************************************************************/
     79 
     80 /*! @} */
     81 
     82 #endif /* _PVRTCONTEXT_H_ */
     83 
     84 /*****************************************************************************
     85  End of file (PVRTContext.h)
     86 *****************************************************************************/
     87 
     88