Home | History | Annotate | Download | only in GLES2
      1 #ifndef __gl2platform_h_
      2 #define __gl2platform_h_
      3 
      4 /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -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 2.X  gl2.h
     12  *
     13  * Adopters may modify khrplatform.h and this file to suit their platform.
     14  * You are encouraged to submit all modifications to the Khronos group so that
     15  * they can be included in future versions of this file.  Please submit changes
     16  * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
     17  * by filing a bug against product "OpenGL-ES" component "Registry".
     18  */
     19 
     20 #include <KHR/khrplatform.h>
     21 
     22 #if defined(COMPONENT_BUILD)
     23 #if defined(WIN32)
     24 #if defined(GLES2_C_LIB_IMPLEMENTATION)
     25 #define GL_APICALL __declspec(dllexport)
     26 #else
     27 #define GL_APICALL __declspec(dllimport)
     28 #endif  /* defined(GLES2_C_LIB_IMPLEMENTATION) */
     29 #else /* defined(WIN32) */
     30 #define GL_APICALL __attribute__((visibility("default")))
     31 #endif
     32 #else
     33 #   define GL_APICALL
     34 #endif
     35 
     36 #ifndef GL_APIENTRY
     37 #define GL_APIENTRY KHRONOS_APIENTRY
     38 #endif
     39 
     40 #undef GL_APIENTRY
     41 #define GL_APIENTRY
     42 
     43 #endif /* __gl2platform_h_ */
     44