+
+ <!-- Put GL_RED here for the benefit of OpenGL ES. -->
+ <extension name="GL_ARB_texture_rg" supported="gl|glcore">
+ <require>
+ <enum name="GL_RED" />
+ </require>
+ </extension>
+
+ <extension name="GL_MSP_legacy_features" supported="gl">
+ <require>
+ <command name="glEnableClientState" />
+ <command name="glDisableClientState" />
+
+ <enum name="GL_QUADS" />
+ <enum name="GL_QUAD_STRIP" />
+ <enum name="GL_LUMINANCE8" />
+ <enum name="GL_LUMINANCE8_ALPHA8" />
+
+ <enum name="GL_AMBIENT" />
+ <enum name="GL_DIFFUSE" />
+ <enum name="GL_SPECULAR" />
+ <enum name="GL_EMISSION" />
+ <enum name="GL_SHININESS" />
+ <enum name="GL_LIGHTING" />
+ <enum name="GL_LIGHT_MODEL_AMBIENT" />
+ <enum name="GL_LIGHT0" />
+ <enum name="GL_MAX_LIGHTS" />
+ <enum name="GL_POSITION" />
+ <enum name="GL_SPOT_DIRECTION" />
+ <enum name="GL_SPOT_EXPONENT" />
+ <enum name="GL_SPOT_CUTOFF" />
+ <enum name="GL_CONSTANT_ATTENUATION" />
+ <enum name="GL_LINEAR_ATTENUATION" />
+ <enum name="GL_QUADRATIC_ATTENUATION" />
+ <command name="glLightModelfv" />
+ <command name="glLightf" />
+ <command name="glLightfv" />
+ <command name="glMaterialf" />
+ <command name="glMaterialfv" />
+
+ <enum name="GL_MODELVIEW" />
+ <enum name="GL_PROJECTION" />
+ <command name="glMatrixMode" />
+ <command name="glLoadMatrixf" />
+
+ <!-- Can't reuse EXT_vertex_array for these, as the functions
+ defined there have different signatures. -->
+ <enum name="GL_VERTEX_ARRAY" />
+ <enum name="GL_NORMAL_ARRAY" />
+ <enum name="GL_COLOR_ARRAY" />
+ <enum name="GL_TEXTURE_COORD_ARRAY" />
+ <command name="glVertexPointer" />
+ <command name="glNormalPointer" />
+ <command name="glColorPointer" />
+ <command name="glTexCoordPointer" />
+ </require>
+ </extension>
+
+ <!-- OpenGL ES does not have glDrawBuffer. -->
+ <extension name="GL_MSP_draw_buffer" supported="gl">
+ <require>
+ <command name="glDrawBuffer" />
+ <command name="glReadBuffer" />
+ </require>
+ </extension>
+
+ <!-- Stereo rendering is not supported on OpenGL ES, but I'm not
+ certain enough of its uselessness to remove the constants outright. -->
+ <extension name="GL_MSP_stereo_rendering" supported="gl">
+ <require>
+ <enum name="GL_FRONT_LEFT" />
+ <enum name="GL_FRONT_RIGHT" />
+ <enum name="GL_BACK_LEFT" />
+ <enum name="GL_BACK_RIGHT" />
+ <enum name="GL_LEFT" />
+ <enum name="GL_RIGHT" />
+ </require>
+ </extension>
+
+ <!-- Sized internal formats were introduced in OpenGL ES 3.0, but are
+ not available as an extension. -->
+ <extension name="GL_MSP_sized_internal_formats" supported="gl|gles2">
+ <require>
+ <enum name="GL_RGB8" />
+ <enum name="GL_RGBA8" />
+ </require>
+ </extension>
+
+ <!-- 1D textures are not available in OpenGL ES, but could conceivably
+ be added at a later date. -->
+ <extension name="GL_MSP_texture1D" supported="gl">
+ <require>
+ <command name="glTexImage1D" />
+ <enum name="GL_TEXTURE_1D" />
+ </require>
+ </extension>