Guest User

Untitled

a guest
Jun 22nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. /*
  2.     Includes different GL-headers based on different platforms.
  3. */
  4. #ifndef __crosslib_gl_h__
  5. #define __crosslib_gl_h__
  6.  
  7.  #ifdef __ANDROID__
  8.  
  9.   #include <GLES2/gl2.h>
  10.   #include <GLES2/gl2ext.h>
  11.  
  12.  #elif IPHONE
  13.  
  14.   #include <OpenGLES/ES2/gl.h>
  15.   #include <OpenGLES/ES2/glext.h>
  16.  
  17.  #elif __native_client__
  18.  
  19.   #include <GLES2/gl2.h>
  20.   #include <GLES2/gl2ext.h>
  21.  
  22.  #else
  23.  
  24.   #include <GL/gl.h>
  25.   #include <GL/glew.h>
  26.  
  27.  #endif
  28.  
  29. #endif
Add Comment
Please, Sign In to add comment