Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __SP_OPENGLESMACROS_H__
00009 #define __SP_OPENGLESMACROS_H__
00010
00011
00012 #include "Base/spStandard.hpp"
00013
00014 #if defined(SP_COMPILE_WITH_OPENGLES1) || defined(SP_COMPILE_WITH_OPENGLES2)
00015
00016
00017
00018
00019 #ifndef GL_MAX_TEXTURE_UNITS_ARB
00020 # define GL_MAX_TEXTURE_UNITS_ARB GL_MAX_TEXTURE_UNITS
00021 #endif
00022
00023 #ifndef GL_ARRAY_BUFFER_ARB
00024 # define GL_ARRAY_BUFFER_ARB GL_ARRAY_BUFFER
00025 #endif
00026 #ifndef GL_ELEMENT_ARRAY_BUFFER_ARB
00027 # define GL_ELEMENT_ARRAY_BUFFER_ARB GL_ELEMENT_ARRAY_BUFFER
00028 #endif
00029 #ifndef GL_STATIC_DRAW_ARB
00030 # define GL_STATIC_DRAW_ARB GL_STATIC_DRAW
00031 #endif
00032 #ifndef GL_DYNAMIC_DRAW_ARB
00033 # define GL_DYNAMIC_DRAW_ARB GL_DYNAMIC_DRAW
00034 #endif
00035
00036 #ifndef GL_VERTEX_SHADER_ARB
00037 # define GL_VERTEX_SHADER_ARB GL_VERTEX_SHADER
00038 #endif
00039 #ifndef GL_FRAGMENT_SHADER_ARB
00040 # define GL_FRAGMENT_SHADER_ARB GL_FRAGMENT_SHADER
00041 #endif
00042
00043 #ifndef GL_RENDERBUFFER_EXT
00044 # define GL_RENDERBUFFER_EXT GL_RENDERBUFFER
00045 #endif
00046 #ifndef GL_DEPTH_ATTACHMENT_EXT
00047 # define GL_DEPTH_ATTACHMENT_EXT GL_DEPTH_ATTACHMENT
00048 #endif
00049 #ifndef GL_COLOR_ATTACHMENT0_EXT
00050 # define GL_COLOR_ATTACHMENT0_EXT GL_COLOR_ATTACHMENT0
00051 #endif
00052 #ifndef GL_FRAMEBUFFER_EXT
00053 # define GL_FRAMEBUFFER_EXT GL_FRAMEBUFFER
00054 #endif
00055 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT
00056 # define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
00057 #endif
00058 #ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT
00059 # define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
00060 #endif
00061 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
00062 # define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
00063 #endif
00064 #ifndef GL_FRAMEBUFFER_UNSUPPORTED_EXT
00065 # define GL_FRAMEBUFFER_UNSUPPORTED_EXT GL_FRAMEBUFFER_UNSUPPORTED
00066 #endif
00067 #ifndef GL_FRAMEBUFFER_COMPLETE_EXT
00068 # define GL_FRAMEBUFFER_COMPLETE_EXT GL_FRAMEBUFFER_COMPLETE
00069 #endif
00070
00071 #ifndef GL_FLOAT_VEC2_ARB
00072 # define GL_FLOAT_VEC2_ARB GL_FLOAT_VEC2
00073 #endif
00074 #ifndef GL_FLOAT_VEC3_ARB
00075 # define GL_FLOAT_VEC3_ARB GL_FLOAT_VEC3
00076 #endif
00077 #ifndef GL_FLOAT_VEC4_ARB
00078 # define GL_FLOAT_VEC4_ARB GL_FLOAT_VEC4
00079 #endif
00080 #ifndef GL_FLOAT_MAT2_ARB
00081 # define GL_FLOAT_MAT2_ARB GL_FLOAT_MAT2
00082 #endif
00083 #ifndef GL_FLOAT_MAT3_ARB
00084 # define GL_FLOAT_MAT3_ARB GL_FLOAT_MAT3
00085 #endif
00086 #ifndef GL_FLOAT_MAT4_ARB
00087 # define GL_FLOAT_MAT4_ARB GL_FLOAT_MAT4
00088 #endif
00089
00090 #ifndef GL_OBJECT_LINK_STATUS_ARB
00091 # define GL_OBJECT_LINK_STATUS_ARB GL_LINK_STATUS
00092 #endif
00093 #ifndef GL_OBJECT_COMPILE_STATUS_ARB
00094 # define GL_OBJECT_COMPILE_STATUS_ARB GL_COMPILE_STATUS
00095 #endif
00096 #ifndef GL_OBJECT_INFO_LOG_LENGTH_ARB
00097 # define GL_OBJECT_INFO_LOG_LENGTH_ARB GL_INFO_LOG_LENGTH
00098 #endif
00099 #ifndef GL_OBJECT_ACTIVE_UNIFORMS_ARB
00100 # define GL_OBJECT_ACTIVE_UNIFORMS_ARB GL_ACTIVE_UNIFORMS
00101 #endif
00102 #ifndef GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB
00103 # define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB GL_ACTIVE_UNIFORM_MAX_LENGTH
00104 #endif
00105
00106
00107
00108
00109 typedef GLuint GLhandleARB;
00110
00111
00112
00113
00114 #define glFogi glFogx
00115 #define glLighti glLightx
00116 #define glDepthRange glDepthRangef
00117
00118 #define glClientActiveTextureARB glClientActiveTexture
00119 #define glActiveTextureARB glActiveTexture
00120 #define glGenerateMipmapEXT glGenerateMipmap
00121
00122 #define glFramebufferRenderbufferEXT glFramebufferRenderbuffer
00123 #define glDeleteRenderbuffersEXT glDeleteRenderbuffers
00124 #define glDeleteFramebuffersEXT glDeleteFramebuffers
00125 #define glGenFramebuffersEXT glGenFramebuffers
00126 #define glGenRenderbuffersEXT glGenRenderbuffers
00127 #define glBindFramebufferEXT glBindFramebuffer
00128 #define glBindRenderbufferEXT glBindRenderbuffer
00129 #define glFramebufferTexture2DEXT glFramebufferTexture2D
00130 #define glRenderbufferStorageEXT glRenderbufferStorage
00131 #define glCheckFramebufferStatusEXT glCheckFramebufferStatus
00132
00133 #define glBindBufferARB glBindBuffer
00134 #define glGenBuffersARB glGenBuffers
00135 #define glDeleteBuffersARB glDeleteBuffers
00136 #define glBufferDataARB glBufferData
00137 #define glBufferSubDataARB glBufferSubData
00138 #define glClipPlane glClipPlanef
00139
00140 #define glCreateProgramObjectARB glCreateProgram
00141 #define glUseProgramObjectARB glUseProgram
00142 #define glLinkProgramARB glLinkProgram
00143 #define glAttachObjectARB glAttachShader
00144 #define glCreateShaderObjectARB glCreateShader
00145 #define glShaderSourceARB glShaderSource
00146 #define glCompileShaderARB glCompileShader
00147 #define glGetActiveUniformARB glGetActiveUniform
00148 #define glBindAttribLocationARB glBindAttribLocation
00149 #define glGetUniformLocationARB glGetUniformLocation
00150 #define glUniform1iARB glUniform1i
00151 #define glUniform1ivARB glUniform1iv
00152 #define glUniform1fARB glUniform1f
00153 #define glUniform2fARB glUniform2f
00154 #define glUniform3fARB glUniform3f
00155 #define glUniform4fARB glUniform4f
00156 #define glUniform1fvARB glUniform1fv
00157 #define glUniform2fvARB glUniform2fv
00158 #define glUniform3fvARB glUniform3fv
00159 #define glUniform4fvARB glUniform4fv
00160 #define glUniformMatrix2fvARB glUniformMatrix2fv
00161 #define glUniformMatrix3fvARB glUniformMatrix3fv
00162 #define glUniformMatrix4fvARB glUniformMatrix4fv
00163
00164 #define glEnableVertexAttribArrayARB glEnableVertexAttribArray
00165 #define glDisableVertexAttribArrayARB glDisableVertexAttribArray
00166 #define glVertexAttribPointerARB glVertexAttribPointer
00167
00168
00169 #endif
00170
00171 #endif
00172
00173
00174
00175