Path: blob/next/external/packages/extras-buildpkgs/libglshim/debian/patches/add-gles2-includes.patch
8625 views
diff --git a/include_mali/GLES2/gl2.h b/include_mali/GLES2/gl2.h1new file mode 1006442index 0000000..90d96bb3--- /dev/null4+++ b/include_mali/GLES2/gl2.h5@@ -0,0 +1,621 @@6+#ifndef __gl2_h_7+#define __gl2_h_8+9+/* $Revision: 8784 $ on $Date:: 2009-09-02 09:49:17 -0700 #$ */10+11+#include <GLES2/gl2platform.h>12+13+#ifdef __cplusplus14+extern "C" {15+#endif16+17+/*18+ * This document is licensed under the SGI Free Software B License Version19+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .20+ */21+22+/*-------------------------------------------------------------------------23+ * Data type definitions24+ *-----------------------------------------------------------------------*/25+26+typedef void GLvoid;27+typedef unsigned int GLenum;28+typedef unsigned char GLboolean;29+typedef unsigned int GLbitfield;30+typedef khronos_int8_t GLbyte;31+typedef short GLshort;32+typedef int GLint;33+typedef int GLsizei;34+typedef khronos_uint8_t GLubyte;35+typedef unsigned short GLushort;36+typedef unsigned int GLuint;37+typedef khronos_float_t GLfloat;38+typedef khronos_float_t GLclampf;39+typedef khronos_int32_t GLfixed;40+typedef char GLchar;41+42+/* GL types for handling large vertex buffer objects */43+typedef khronos_intptr_t GLintptr;44+typedef khronos_ssize_t GLsizeiptr;45+46+/* OpenGL ES core versions */47+#define GL_ES_VERSION_2_0 148+49+/* ClearBufferMask */50+#define GL_DEPTH_BUFFER_BIT 0x0000010051+#define GL_STENCIL_BUFFER_BIT 0x0000040052+#define GL_COLOR_BUFFER_BIT 0x0000400053+54+/* Boolean */55+#define GL_FALSE 056+#define GL_TRUE 157+58+/* BeginMode */59+#define GL_POINTS 0x000060+#define GL_LINES 0x000161+#define GL_LINE_LOOP 0x000262+#define GL_LINE_STRIP 0x000363+#define GL_TRIANGLES 0x000464+#define GL_TRIANGLE_STRIP 0x000565+#define GL_TRIANGLE_FAN 0x000666+67+/* AlphaFunction (not supported in ES20) */68+/* GL_NEVER */69+/* GL_LESS */70+/* GL_EQUAL */71+/* GL_LEQUAL */72+/* GL_GREATER */73+/* GL_NOTEQUAL */74+/* GL_GEQUAL */75+/* GL_ALWAYS */76+77+/* BlendingFactorDest */78+#define GL_ZERO 079+#define GL_ONE 180+#define GL_SRC_COLOR 0x030081+#define GL_ONE_MINUS_SRC_COLOR 0x030182+#define GL_SRC_ALPHA 0x030283+#define GL_ONE_MINUS_SRC_ALPHA 0x030384+#define GL_DST_ALPHA 0x030485+#define GL_ONE_MINUS_DST_ALPHA 0x030586+87+/* BlendingFactorSrc */88+/* GL_ZERO */89+/* GL_ONE */90+#define GL_DST_COLOR 0x030691+#define GL_ONE_MINUS_DST_COLOR 0x030792+#define GL_SRC_ALPHA_SATURATE 0x030893+/* GL_SRC_ALPHA */94+/* GL_ONE_MINUS_SRC_ALPHA */95+/* GL_DST_ALPHA */96+/* GL_ONE_MINUS_DST_ALPHA */97+98+/* BlendEquationSeparate */99+#define GL_FUNC_ADD 0x8006100+#define GL_BLEND_EQUATION 0x8009101+#define GL_BLEND_EQUATION_RGB 0x8009 /* same as BLEND_EQUATION */102+#define GL_BLEND_EQUATION_ALPHA 0x883D103+104+/* BlendSubtract */105+#define GL_FUNC_SUBTRACT 0x800A106+#define GL_FUNC_REVERSE_SUBTRACT 0x800B107+108+/* Separate Blend Functions */109+#define GL_BLEND_DST_RGB 0x80C8110+#define GL_BLEND_SRC_RGB 0x80C9111+#define GL_BLEND_DST_ALPHA 0x80CA112+#define GL_BLEND_SRC_ALPHA 0x80CB113+#define GL_CONSTANT_COLOR 0x8001114+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002115+#define GL_CONSTANT_ALPHA 0x8003116+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004117+#define GL_BLEND_COLOR 0x8005118+119+/* Buffer Objects */120+#define GL_ARRAY_BUFFER 0x8892121+#define GL_ELEMENT_ARRAY_BUFFER 0x8893122+#define GL_ARRAY_BUFFER_BINDING 0x8894123+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895124+125+#define GL_STREAM_DRAW 0x88E0126+#define GL_STATIC_DRAW 0x88E4127+#define GL_DYNAMIC_DRAW 0x88E8128+129+#define GL_BUFFER_SIZE 0x8764130+#define GL_BUFFER_USAGE 0x8765131+132+#define GL_CURRENT_VERTEX_ATTRIB 0x8626133+134+/* CullFaceMode */135+#define GL_FRONT 0x0404136+#define GL_BACK 0x0405137+#define GL_FRONT_AND_BACK 0x0408138+139+/* DepthFunction */140+/* GL_NEVER */141+/* GL_LESS */142+/* GL_EQUAL */143+/* GL_LEQUAL */144+/* GL_GREATER */145+/* GL_NOTEQUAL */146+/* GL_GEQUAL */147+/* GL_ALWAYS */148+149+/* EnableCap */150+#define GL_TEXTURE_2D 0x0DE1151+#define GL_CULL_FACE 0x0B44152+#define GL_BLEND 0x0BE2153+#define GL_DITHER 0x0BD0154+#define GL_STENCIL_TEST 0x0B90155+#define GL_DEPTH_TEST 0x0B71156+#define GL_SCISSOR_TEST 0x0C11157+#define GL_POLYGON_OFFSET_FILL 0x8037158+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E159+#define GL_SAMPLE_COVERAGE 0x80A0160+161+/* ErrorCode */162+#define GL_NO_ERROR 0163+#define GL_INVALID_ENUM 0x0500164+#define GL_INVALID_VALUE 0x0501165+#define GL_INVALID_OPERATION 0x0502166+#define GL_OUT_OF_MEMORY 0x0505167+168+/* FrontFaceDirection */169+#define GL_CW 0x0900170+#define GL_CCW 0x0901171+172+/* GetPName */173+#define GL_LINE_WIDTH 0x0B21174+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D175+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E176+#define GL_CULL_FACE_MODE 0x0B45177+#define GL_FRONT_FACE 0x0B46178+#define GL_DEPTH_RANGE 0x0B70179+#define GL_DEPTH_WRITEMASK 0x0B72180+#define GL_DEPTH_CLEAR_VALUE 0x0B73181+#define GL_DEPTH_FUNC 0x0B74182+#define GL_STENCIL_CLEAR_VALUE 0x0B91183+#define GL_STENCIL_FUNC 0x0B92184+#define GL_STENCIL_FAIL 0x0B94185+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95186+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96187+#define GL_STENCIL_REF 0x0B97188+#define GL_STENCIL_VALUE_MASK 0x0B93189+#define GL_STENCIL_WRITEMASK 0x0B98190+#define GL_STENCIL_BACK_FUNC 0x8800191+#define GL_STENCIL_BACK_FAIL 0x8801192+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802193+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803194+#define GL_STENCIL_BACK_REF 0x8CA3195+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4196+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5197+#define GL_VIEWPORT 0x0BA2198+#define GL_SCISSOR_BOX 0x0C10199+/* GL_SCISSOR_TEST */200+#define GL_COLOR_CLEAR_VALUE 0x0C22201+#define GL_COLOR_WRITEMASK 0x0C23202+#define GL_UNPACK_ALIGNMENT 0x0CF5203+#define GL_PACK_ALIGNMENT 0x0D05204+#define GL_MAX_TEXTURE_SIZE 0x0D33205+#define GL_MAX_VIEWPORT_DIMS 0x0D3A206+#define GL_SUBPIXEL_BITS 0x0D50207+#define GL_RED_BITS 0x0D52208+#define GL_GREEN_BITS 0x0D53209+#define GL_BLUE_BITS 0x0D54210+#define GL_ALPHA_BITS 0x0D55211+#define GL_DEPTH_BITS 0x0D56212+#define GL_STENCIL_BITS 0x0D57213+#define GL_POLYGON_OFFSET_UNITS 0x2A00214+/* GL_POLYGON_OFFSET_FILL */215+#define GL_POLYGON_OFFSET_FACTOR 0x8038216+#define GL_TEXTURE_BINDING_2D 0x8069217+#define GL_SAMPLE_BUFFERS 0x80A8218+#define GL_SAMPLES 0x80A9219+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA220+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB221+222+/* GetTextureParameter */223+/* GL_TEXTURE_MAG_FILTER */224+/* GL_TEXTURE_MIN_FILTER */225+/* GL_TEXTURE_WRAP_S */226+/* GL_TEXTURE_WRAP_T */227+228+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2229+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3230+231+/* HintMode */232+#define GL_DONT_CARE 0x1100233+#define GL_FASTEST 0x1101234+#define GL_NICEST 0x1102235+236+/* HintTarget */237+#define GL_GENERATE_MIPMAP_HINT 0x8192238+239+/* DataType */240+#define GL_BYTE 0x1400241+#define GL_UNSIGNED_BYTE 0x1401242+#define GL_SHORT 0x1402243+#define GL_UNSIGNED_SHORT 0x1403244+#define GL_INT 0x1404245+#define GL_UNSIGNED_INT 0x1405246+#define GL_FLOAT 0x1406247+#define GL_FIXED 0x140C248+249+/* PixelFormat */250+#define GL_DEPTH_COMPONENT 0x1902251+#define GL_ALPHA 0x1906252+#define GL_RGB 0x1907253+#define GL_RGBA 0x1908254+#define GL_LUMINANCE 0x1909255+#define GL_LUMINANCE_ALPHA 0x190A256+257+/* PixelType */258+/* GL_UNSIGNED_BYTE */259+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033260+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034261+#define GL_UNSIGNED_SHORT_5_6_5 0x8363262+263+/* Shaders */264+#define GL_FRAGMENT_SHADER 0x8B30265+#define GL_VERTEX_SHADER 0x8B31266+#define GL_MAX_VERTEX_ATTRIBS 0x8869267+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB268+#define GL_MAX_VARYING_VECTORS 0x8DFC269+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D270+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C271+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872272+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD273+#define GL_SHADER_TYPE 0x8B4F274+#define GL_DELETE_STATUS 0x8B80275+#define GL_LINK_STATUS 0x8B82276+#define GL_VALIDATE_STATUS 0x8B83277+#define GL_ATTACHED_SHADERS 0x8B85278+#define GL_ACTIVE_UNIFORMS 0x8B86279+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87280+#define GL_ACTIVE_ATTRIBUTES 0x8B89281+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A282+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C283+#define GL_CURRENT_PROGRAM 0x8B8D284+285+/* StencilFunction */286+#define GL_NEVER 0x0200287+#define GL_LESS 0x0201288+#define GL_EQUAL 0x0202289+#define GL_LEQUAL 0x0203290+#define GL_GREATER 0x0204291+#define GL_NOTEQUAL 0x0205292+#define GL_GEQUAL 0x0206293+#define GL_ALWAYS 0x0207294+295+/* StencilOp */296+/* GL_ZERO */297+#define GL_KEEP 0x1E00298+#define GL_REPLACE 0x1E01299+#define GL_INCR 0x1E02300+#define GL_DECR 0x1E03301+#define GL_INVERT 0x150A302+#define GL_INCR_WRAP 0x8507303+#define GL_DECR_WRAP 0x8508304+305+/* StringName */306+#define GL_VENDOR 0x1F00307+#define GL_RENDERER 0x1F01308+#define GL_VERSION 0x1F02309+#define GL_EXTENSIONS 0x1F03310+311+/* TextureMagFilter */312+#define GL_NEAREST 0x2600313+#define GL_LINEAR 0x2601314+315+/* TextureMinFilter */316+/* GL_NEAREST */317+/* GL_LINEAR */318+#define GL_NEAREST_MIPMAP_NEAREST 0x2700319+#define GL_LINEAR_MIPMAP_NEAREST 0x2701320+#define GL_NEAREST_MIPMAP_LINEAR 0x2702321+#define GL_LINEAR_MIPMAP_LINEAR 0x2703322+323+/* TextureParameterName */324+#define GL_TEXTURE_MAG_FILTER 0x2800325+#define GL_TEXTURE_MIN_FILTER 0x2801326+#define GL_TEXTURE_WRAP_S 0x2802327+#define GL_TEXTURE_WRAP_T 0x2803328+329+/* TextureTarget */330+/* GL_TEXTURE_2D */331+#define GL_TEXTURE 0x1702332+333+#define GL_TEXTURE_CUBE_MAP 0x8513334+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514335+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515336+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516337+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517338+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518339+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519340+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A341+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C342+343+/* TextureUnit */344+#define GL_TEXTURE0 0x84C0345+#define GL_TEXTURE1 0x84C1346+#define GL_TEXTURE2 0x84C2347+#define GL_TEXTURE3 0x84C3348+#define GL_TEXTURE4 0x84C4349+#define GL_TEXTURE5 0x84C5350+#define GL_TEXTURE6 0x84C6351+#define GL_TEXTURE7 0x84C7352+#define GL_TEXTURE8 0x84C8353+#define GL_TEXTURE9 0x84C9354+#define GL_TEXTURE10 0x84CA355+#define GL_TEXTURE11 0x84CB356+#define GL_TEXTURE12 0x84CC357+#define GL_TEXTURE13 0x84CD358+#define GL_TEXTURE14 0x84CE359+#define GL_TEXTURE15 0x84CF360+#define GL_TEXTURE16 0x84D0361+#define GL_TEXTURE17 0x84D1362+#define GL_TEXTURE18 0x84D2363+#define GL_TEXTURE19 0x84D3364+#define GL_TEXTURE20 0x84D4365+#define GL_TEXTURE21 0x84D5366+#define GL_TEXTURE22 0x84D6367+#define GL_TEXTURE23 0x84D7368+#define GL_TEXTURE24 0x84D8369+#define GL_TEXTURE25 0x84D9370+#define GL_TEXTURE26 0x84DA371+#define GL_TEXTURE27 0x84DB372+#define GL_TEXTURE28 0x84DC373+#define GL_TEXTURE29 0x84DD374+#define GL_TEXTURE30 0x84DE375+#define GL_TEXTURE31 0x84DF376+#define GL_ACTIVE_TEXTURE 0x84E0377+378+/* TextureWrapMode */379+#define GL_REPEAT 0x2901380+#define GL_CLAMP_TO_EDGE 0x812F381+#define GL_MIRRORED_REPEAT 0x8370382+383+/* Uniform Types */384+#define GL_FLOAT_VEC2 0x8B50385+#define GL_FLOAT_VEC3 0x8B51386+#define GL_FLOAT_VEC4 0x8B52387+#define GL_INT_VEC2 0x8B53388+#define GL_INT_VEC3 0x8B54389+#define GL_INT_VEC4 0x8B55390+#define GL_BOOL 0x8B56391+#define GL_BOOL_VEC2 0x8B57392+#define GL_BOOL_VEC3 0x8B58393+#define GL_BOOL_VEC4 0x8B59394+#define GL_FLOAT_MAT2 0x8B5A395+#define GL_FLOAT_MAT3 0x8B5B396+#define GL_FLOAT_MAT4 0x8B5C397+#define GL_SAMPLER_2D 0x8B5E398+#define GL_SAMPLER_CUBE 0x8B60399+400+/* Vertex Arrays */401+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622402+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623403+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624404+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625405+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A406+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645407+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F408+409+/* Read Format */410+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A411+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B412+413+/* Shader Source */414+#define GL_COMPILE_STATUS 0x8B81415+#define GL_INFO_LOG_LENGTH 0x8B84416+#define GL_SHADER_SOURCE_LENGTH 0x8B88417+#define GL_SHADER_COMPILER 0x8DFA418+419+/* Shader Binary */420+#define GL_SHADER_BINARY_FORMATS 0x8DF8421+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9422+423+/* Shader Precision-Specified Types */424+#define GL_LOW_FLOAT 0x8DF0425+#define GL_MEDIUM_FLOAT 0x8DF1426+#define GL_HIGH_FLOAT 0x8DF2427+#define GL_LOW_INT 0x8DF3428+#define GL_MEDIUM_INT 0x8DF4429+#define GL_HIGH_INT 0x8DF5430+431+/* Framebuffer Object. */432+#define GL_FRAMEBUFFER 0x8D40433+#define GL_RENDERBUFFER 0x8D41434+435+#define GL_RGBA4 0x8056436+#define GL_RGB5_A1 0x8057437+#define GL_RGB565 0x8D62438+#define GL_DEPTH_COMPONENT16 0x81A5439+#define GL_STENCIL_INDEX 0x1901440+#define GL_STENCIL_INDEX8 0x8D48441+442+#define GL_RENDERBUFFER_WIDTH 0x8D42443+#define GL_RENDERBUFFER_HEIGHT 0x8D43444+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44445+#define GL_RENDERBUFFER_RED_SIZE 0x8D50446+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51447+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52448+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53449+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54450+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55451+452+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0453+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1454+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2455+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3456+457+#define GL_COLOR_ATTACHMENT0 0x8CE0458+#define GL_DEPTH_ATTACHMENT 0x8D00459+#define GL_STENCIL_ATTACHMENT 0x8D20460+461+#define GL_NONE 0462+463+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5464+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6465+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7466+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9467+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD468+469+#define GL_FRAMEBUFFER_BINDING 0x8CA6470+#define GL_RENDERBUFFER_BINDING 0x8CA7471+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8472+473+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506474+475+/*-------------------------------------------------------------------------476+ * GL core functions.477+ *-----------------------------------------------------------------------*/478+479+GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);480+GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);481+GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const char* name);482+GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);483+GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);484+GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);485+GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);486+GL_APICALL void GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);487+GL_APICALL void GL_APIENTRY glBlendEquation ( GLenum mode );488+GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);489+GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);490+GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);491+GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void* data, GLenum usage);492+GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void* data);493+GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);494+GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);495+GL_APICALL void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);496+GL_APICALL void GL_APIENTRY glClearDepthf (GLclampf depth);497+GL_APICALL void GL_APIENTRY glClearStencil (GLint s);498+GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);499+GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);500+GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data);501+GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data);502+GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);503+GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);504+GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);505+GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);506+GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);507+GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);508+GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);509+GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);510+GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);511+GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);512+GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);513+GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);514+GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);515+GL_APICALL void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);516+GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);517+GL_APICALL void GL_APIENTRY glDisable (GLenum cap);518+GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);519+GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);520+GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void* indices);521+GL_APICALL void GL_APIENTRY glEnable (GLenum cap);522+GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);523+GL_APICALL void GL_APIENTRY glFinish (void);524+GL_APICALL void GL_APIENTRY glFlush (void);525+GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);526+GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);527+GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);528+GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);529+GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);530+GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);531+GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);532+GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);533+GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name);534+GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name);535+GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);536+GL_APICALL int GL_APIENTRY glGetAttribLocation (GLuint program, const char* name);537+GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);538+GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);539+GL_APICALL GLenum GL_APIENTRY glGetError (void);540+GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);541+GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);542+GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);543+GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);544+GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, char* infolog);545+GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);546+GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);547+GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog);548+GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);549+GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, char* source);550+GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);551+GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);552+GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);553+GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);554+GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);555+GL_APICALL int GL_APIENTRY glGetUniformLocation (GLuint program, const char* name);556+GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);557+GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);558+GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void** pointer);559+GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);560+GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);561+GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);562+GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);563+GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);564+GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);565+GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);566+GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);567+GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);568+GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);569+GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);570+GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);571+GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels);572+GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);573+GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);574+GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);575+GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);576+GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length);577+GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const char** string, const GLint* length);578+GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);579+GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);580+GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);581+GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);582+GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);583+GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);584+GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels);585+GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);586+GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);587+GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);588+GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);589+GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels);590+GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat x);591+GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);592+GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint x);593+GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);594+GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);595+GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);596+GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);597+GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);598+GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);599+GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);600+GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);601+GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);602+GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);603+GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);604+GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);605+GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);606+GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);607+GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);608+GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);609+GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);610+GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);611+GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);612+GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);613+GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);614+GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);615+GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);616+GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);617+GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);618+GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);619+GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr);620+GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);621+622+#ifdef __cplusplus623+}624+#endif625+626+#endif /* __gl2_h_ */627diff --git a/include_mali/GLES2/gl2ext.h b/include_mali/GLES2/gl2ext.h628new file mode 100644629index 0000000..127711f630--- /dev/null631+++ b/include_mali/GLES2/gl2ext.h632@@ -0,0 +1,359 @@633+#ifndef __gl2ext_h_634+#define __gl2ext_h_635+636+/* $Revision: 7173 $ on $Date:: 2009-01-09 11:18:21 -0800 #$ */637+638+#ifdef __cplusplus639+extern "C" {640+#endif641+642+/*643+ * This document is licensed under the SGI Free Software B License Version644+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .645+ */646+647+#ifndef GL_APIENTRYP648+# define GL_APIENTRYP GL_APIENTRY*649+#endif650+651+/*------------------------------------------------------------------------*652+ * OES extension tokens653+ *------------------------------------------------------------------------*/654+655+/* GL_OES_compressed_ETC1_RGB8_texture */656+#ifndef GL_OES_compressed_ETC1_RGB8_texture657+#define GL_ETC1_RGB8_OES 0x8D64658+#endif659+660+/* GL_OES_compressed_paletted_texture */661+#ifndef GL_OES_compressed_paletted_texture662+#define GL_PALETTE4_RGB8_OES 0x8B90663+#define GL_PALETTE4_RGBA8_OES 0x8B91664+#define GL_PALETTE4_R5_G6_B5_OES 0x8B92665+#define GL_PALETTE4_RGBA4_OES 0x8B93666+#define GL_PALETTE4_RGB5_A1_OES 0x8B94667+#define GL_PALETTE8_RGB8_OES 0x8B95668+#define GL_PALETTE8_RGBA8_OES 0x8B96669+#define GL_PALETTE8_R5_G6_B5_OES 0x8B97670+#define GL_PALETTE8_RGBA4_OES 0x8B98671+#define GL_PALETTE8_RGB5_A1_OES 0x8B99672+#endif673+674+/* GL_OES_depth24 */675+#ifndef GL_OES_depth24676+#define GL_DEPTH_COMPONENT24_OES 0x81A6677+#endif678+679+/* GL_OES_depth32 */680+#ifndef GL_OES_depth32681+#define GL_DEPTH_COMPONENT32_OES 0x81A7682+#endif683+684+/* GL_OES_depth_texture */685+/* No new tokens introduced by this extension. */686+687+/* GL_OES_EGL_image */688+#ifndef GL_OES_EGL_image689+typedef void* GLeglImageOES;690+#endif691+692+/* GL_OES_get_program_binary */693+#ifndef GL_OES_get_program_binary694+#define GL_PROGRAM_BINARY_LENGTH_OES 0x8741695+#define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE696+#define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF697+#endif698+699+/* GL_OES_mapbuffer */700+#ifndef GL_OES_mapbuffer701+#define GL_WRITE_ONLY_OES 0x88B9702+#define GL_BUFFER_ACCESS_OES 0x88BB703+#define GL_BUFFER_MAPPED_OES 0x88BC704+#define GL_BUFFER_MAP_POINTER_OES 0x88BD705+#endif706+707+/* GL_OES_packed_depth_stencil */708+#ifndef GL_OES_packed_depth_stencil709+#define GL_DEPTH_STENCIL_OES 0x84F9710+#define GL_UNSIGNED_INT_24_8_OES 0x84FA711+#define GL_DEPTH24_STENCIL8_OES 0x88F0712+#endif713+714+/* GL_OES_rgb8_rgba8 */715+#ifndef GL_OES_rgb8_rgba8716+#define GL_RGB8_OES 0x8051717+#define GL_RGBA8_OES 0x8058718+#endif719+720+/* GL_OES_standard_derivatives */721+#ifndef GL_OES_standard_derivatives722+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B723+#endif724+725+/* GL_OES_stencil1 */726+#ifndef GL_OES_stencil1727+#define GL_STENCIL_INDEX1_OES 0x8D46728+#endif729+730+/* GL_OES_stencil4 */731+#ifndef GL_OES_stencil4732+#define GL_STENCIL_INDEX4_OES 0x8D47733+#endif734+735+/* GL_OES_texture3D */736+#ifndef GL_OES_texture3D737+#define GL_TEXTURE_WRAP_R_OES 0x8072738+#define GL_TEXTURE_3D_OES 0x806F739+#define GL_TEXTURE_BINDING_3D_OES 0x806A740+#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073741+#define GL_SAMPLER_3D_OES 0x8B5F742+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4743+#endif744+745+/* GL_OES_texture_half_float */746+#ifndef GL_OES_texture_half_float747+#define GL_HALF_FLOAT_OES 0x8D61748+#endif749+750+/* GL_OES_vertex_half_float */751+/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */752+753+/* GL_OES_vertex_type_10_10_10_2 */754+#ifndef GL_OES_vertex_type_10_10_10_2755+#define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6756+#define GL_INT_10_10_10_2_OES 0x8DF7757+#endif758+759+/*------------------------------------------------------------------------*760+ * AMD extension tokens761+ *------------------------------------------------------------------------*/762+763+/* GL_AMD_compressed_3DC_texture */764+#ifndef GL_AMD_compressed_3DC_texture765+#define GL_3DC_X_AMD 0x87F9766+#define GL_3DC_XY_AMD 0x87FA767+#endif768+769+/* GL_AMD_compressed_ATC_texture */770+#ifndef GL_AMD_compressed_ATC_texture771+#define GL_ATC_RGB_AMD 0x8C92772+#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93773+#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE774+#endif775+776+/* GL_AMD_program_binary_Z400 */777+#ifndef GL_AMD_program_binary_Z400778+#define GL_Z400_BINARY_AMD 0x8740779+#endif780+781+/*------------------------------------------------------------------------*782+ * EXT extension tokens783+ *------------------------------------------------------------------------*/784+785+/* GL_EXT_texture_filter_anisotropic */786+#ifndef GL_EXT_texture_filter_anisotropic787+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE788+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF789+#endif790+791+/* GL_EXT_texture_type_2_10_10_10_REV */792+#ifndef GL_EXT_texture_type_2_10_10_10_REV793+#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368794+#endif795+796+/*------------------------------------------------------------------------*797+ * OES extension functions798+ *------------------------------------------------------------------------*/799+800+/* GL_OES_compressed_ETC1_RGB8_texture */801+#ifndef GL_OES_compressed_ETC1_RGB8_texture802+#define GL_OES_compressed_ETC1_RGB8_texture 1803+#endif804+805+/* GL_OES_compressed_paletted_texture */806+#ifndef GL_OES_compressed_paletted_texture807+#define GL_OES_compressed_paletted_texture 1808+#endif809+810+/* GL_OES_EGL_image */811+#ifndef GL_OES_EGL_image812+#define GL_OES_EGL_image 1813+#ifdef GL_GLEXT_PROTOTYPES814+GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);815+GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);816+#endif817+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);818+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);819+#endif820+821+/* GL_OES_depth24 */822+#ifndef GL_OES_depth24823+#define GL_OES_depth24 1824+#endif825+826+/* GL_OES_depth32 */827+#ifndef GL_OES_depth32828+#define GL_OES_depth32 1829+#endif830+831+/* GL_OES_depth_texture */832+#ifndef GL_OES_depth_texture833+#define GL_OES_depth_texture 1834+#endif835+836+/* GL_OES_element_index_uint */837+#ifndef GL_OES_element_index_uint838+#define GL_OES_element_index_uint 1839+#endif840+841+/* GL_OES_fbo_render_mipmap */842+#ifndef GL_OES_fbo_render_mipmap843+#define GL_OES_fbo_render_mipmap 1844+#endif845+846+/* GL_OES_fragment_precision_high */847+#ifndef GL_OES_fragment_precision_high848+#define GL_OES_fragment_precision_high 1849+#endif850+851+/* GL_OES_get_program_binary */852+#ifndef GL_OES_get_program_binary853+#define GL_OES_get_program_binary 1854+#ifdef GL_GLEXT_PROTOTYPES855+GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);856+GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const void *binary, GLint length);857+#endif858+typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);859+typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLint length);860+#endif861+862+/* GL_OES_mapbuffer */863+#ifndef GL_OES_mapbuffer864+#define GL_OES_mapbuffer 1865+#ifdef GL_GLEXT_PROTOTYPES866+GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);867+GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);868+GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);869+#endif870+typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);871+typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);872+typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);873+#endif874+875+/* GL_OES_packed_depth_stencil */876+#ifndef GL_OES_packed_depth_stencil877+#define GL_OES_packed_depth_stencil 1878+#endif879+880+/* GL_OES_rgb8_rgba8 */881+#ifndef GL_OES_rgb8_rgba8882+#define GL_OES_rgb8_rgba8 1883+#endif884+885+/* GL_OES_standard_derivatives */886+#ifndef GL_OES_standard_derivatives887+#define GL_OES_standard_derivatives 1888+#endif889+890+/* GL_OES_stencil1 */891+#ifndef GL_OES_stencil1892+#define GL_OES_stencil1 1893+#endif894+895+/* GL_OES_stencil4 */896+#ifndef GL_OES_stencil4897+#define GL_OES_stencil4 1898+#endif899+900+/* GL_OES_texture_3D */901+#ifndef GL_OES_texture_3D902+#define GL_OES_texture_3D 1903+#ifdef GL_GLEXT_PROTOTYPES904+GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);905+GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);906+GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);907+GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);908+GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);909+GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);910+#endif911+typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);912+typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);913+typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);914+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);915+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);916+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);917+#endif918+919+/* GL_OES_texture_float_linear */920+#ifndef GL_OES_texture_float_linear921+#define GL_OES_texture_float_linear 1922+#endif923+924+/* GL_OES_texture_half_float_linear */925+#ifndef GL_OES_texture_half_float_linear926+#define GL_OES_texture_half_float_linear 1927+#endif928+929+/* GL_OES_texture_float */930+#ifndef GL_OES_texture_float931+#define GL_OES_texture_float 1932+#endif933+934+/* GL_OES_texture_half_float */935+#ifndef GL_OES_texture_half_float936+#define GL_OES_texture_half_float 1937+#endif938+939+/* GL_OES_texture_npot */940+#ifndef GL_OES_texture_npot941+#define GL_OES_texture_npot 1942+#endif943+944+/* GL_OES_vertex_half_float */945+#ifndef GL_OES_vertex_half_float946+#define GL_OES_vertex_half_float 1947+#endif948+949+/* GL_OES_vertex_type_10_10_10_2 */950+#ifndef GL_OES_vertex_type_10_10_10_2951+#define GL_OES_vertex_type_10_10_10_2 1952+#endif953+954+/*------------------------------------------------------------------------*955+ * AMD extension functions956+ *------------------------------------------------------------------------*/957+958+/* GL_AMD_compressed_3DC_texture */959+#ifndef GL_AMD_compressed_3DC_texture960+#define GL_AMD_compressed_3DC_texture 1961+#endif962+963+/* GL_AMD_compressed_ATC_texture */964+#ifndef GL_AMD_compressed_ATC_texture965+#define GL_AMD_compressed_ATC_texture 1966+#endif967+968+/* GL_AMD_program_binary_Z400 */969+#ifndef GL_AMD_program_binary_Z400970+#define GL_AMD_program_binary_Z400 1971+#endif972+973+/*------------------------------------------------------------------------*974+ * EXT extension functions975+ *------------------------------------------------------------------------*/976+977+/* GL_EXT_texture_filter_anisotropic */978+#ifndef GL_EXT_texture_filter_anisotropic979+#define GL_EXT_texture_filter_anisotropic 1980+#endif981+982+/* GL_EXT_texture_type_2_10_10_10_REV */983+#ifndef GL_EXT_texture_type_2_10_10_10_REV984+#define GL_EXT_texture_type_2_10_10_10_REV 1985+#endif986+987+#ifdef __cplusplus988+}989+#endif990+991+#endif /* __gl2ext_h_ */992diff --git a/include_mali/GLES2/gl2platform.h b/include_mali/GLES2/gl2platform.h993new file mode 100644994index 0000000..3e9036c995--- /dev/null996+++ b/include_mali/GLES2/gl2platform.h997@@ -0,0 +1,29 @@998+#ifndef __gl2platform_h_999+#define __gl2platform_h_1000+1001+/* $Revision: 7173 $ on $Date:: 2009-01-09 11:18:21 -0800 #$ */1002+1003+/*1004+ * This document is licensed under the SGI Free Software B License Version1005+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .1006+ */1007+1008+/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h1009+ * Last modified on 2008/12/191010+ *1011+ * Adopters may modify khrplatform.h and this file to suit their platform.1012+ * You are encouraged to submit all modifications to the Khronos group so that1013+ * they can be included in future versions of this file. Please submit changes1014+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)1015+ * by filing a bug against product "OpenGL-ES" component "Registry".1016+ */1017+1018+#include <KHR/khrplatform.h>1019+1020+#ifndef GL_APICALL1021+#define GL_APICALL KHRONOS_APICALL1022+#endif1023+1024+#define GL_APIENTRY KHRONOS_APIENTRY1025+1026+#endif /* __gl2platform_h_ */102710281029