Home | History | Annotate | Download | only in GLES
      1 #ifndef __glplatform_h_
      2 #define __glplatform_h_
      3 
      4 /* $Revision: 7172 $ on $Date:: 2009-01-09 11:17:41 -0800 #$ */
      5 
      6 /*
      7  * This document is licensed under the SGI Free Software B License Version
      8  * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
      9  */
     10 
     11 /* Platform-specific types and definitions for OpenGL ES 1.X  gl.h
     12  * Last modified on 2008/12/19
     13  *
     14  * Adopters may modify khrplatform.h and this file to suit their platform.
     15  * You are encouraged to submit all modifications to the Khronos group so that
     16  * they can be included in future versions of this file.  Please submit changes
     17  * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
     18  * by filing a bug against product "OpenGL-ES" component "Registry".
     19  */
     20 
     21 #include <KHR/khrplatform.h>
     22 
     23 #ifndef GL_API
     24 #define GL_API      KHRONOS_APICALL
     25 #endif
     26 
     27 #if defined(__ANDROID__)
     28 
     29 #define GL_APIENTRY KHRONOS_APIENTRY
     30 
     31 // XXX: this should probably not be here
     32 #define GL_DIRECT_TEXTURE_2D_QUALCOMM               0x7E80
     33 
     34 // XXX: not sure how this is intended to be used
     35 #define GL_GLEXT_PROTOTYPES
     36 
     37 #endif
     38 
     39 #endif /* __glplatform_h_ */
     40