1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/opengles/openglesinterface/include/GLES2/gl2ext.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,303 @@
1.4 +#ifndef __gl2ext_h_
1.5 +#define __gl2ext_h_
1.6 +
1.7 +/*
1.8 + * Portions Copyright (c) 2008 - 2009 Nokia Corporation and/or its subsidiary(-ies).
1.9 + * Differences from the actual sample implementation provided by Khronos:
1.10 + * 1. This comment text.
1.11 + * 2. Doxygen comment with tag 'publishedAll', and tag 'released'
1.12 + */
1.13 +
1.14 +/**
1.15 +@publishedAll
1.16 +@released
1.17 +*/
1.18 +
1.19 +/* $Id: gl2ext.h 4571 2007-11-28 16:33:30Z benj $ */
1.20 +
1.21 +#ifdef __cplusplus
1.22 +extern "C" {
1.23 +#endif
1.24 +
1.25 +/*
1.26 +** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
1.27 +** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved.
1.28 +**
1.29 +** Permission is hereby granted, free of charge, to any person obtaining
1.30 +** a copy of this software and associated documentation files
1.31 +** (the "Software"), to deal in the Software without restriction,
1.32 +** including without limitation the rights to use, copy, modify, merge,
1.33 +** publish, distribute, sublicense, and/or sell copies of the Software,
1.34 +** and to permit persons to whom the Software is furnished to do so,
1.35 +** subject to the following conditions:
1.36 +**
1.37 +** The above copyright notice including the dates of first
1.38 +** publication and either this permission notice or a reference to
1.39 +** http://oss.sgi.com/projects/FreeB/ shall be included in all copies
1.40 +** or substantial portions of the Software.
1.41 +**
1.42 +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1.43 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1.44 +** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1.45 +** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM,
1.46 +** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1.47 +** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
1.48 +** THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1.49 +**
1.50 +** Except as contained in this notice, the name of Silicon Graphics, Inc.
1.51 +** shall not be used in advertising or otherwise to promote the sale, use
1.52 +** or other dealings in this Software without prior written authorization
1.53 +** from Silicon Graphics, Inc.
1.54 +*/
1.55 +
1.56 +#ifndef GL_APIENTRYP
1.57 +# define GL_APIENTRYP GL_APIENTRY*
1.58 +#endif
1.59 +
1.60 +/*------------------------------------------------------------------------*
1.61 + * OES extension tokens
1.62 + *------------------------------------------------------------------------*/
1.63 +
1.64 +/* GL_OES_compressed_ETC1_RGB8_texture */
1.65 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
1.66 +#define GL_ETC1_RGB8_OES 0x8D64
1.67 +#endif
1.68 +
1.69 +/* GL_OES_compressed_paletted_texture */
1.70 +#ifndef GL_OES_compressed_paletted_texture
1.71 +#define GL_PALETTE4_RGB8_OES 0x8B90
1.72 +#define GL_PALETTE4_RGBA8_OES 0x8B91
1.73 +#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
1.74 +#define GL_PALETTE4_RGBA4_OES 0x8B93
1.75 +#define GL_PALETTE4_RGB5_A1_OES 0x8B94
1.76 +#define GL_PALETTE8_RGB8_OES 0x8B95
1.77 +#define GL_PALETTE8_RGBA8_OES 0x8B96
1.78 +#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
1.79 +#define GL_PALETTE8_RGBA4_OES 0x8B98
1.80 +#define GL_PALETTE8_RGB5_A1_OES 0x8B99
1.81 +#endif
1.82 +
1.83 +/* GL_OES_EGL_image */
1.84 +#ifndef GL_OES_EGL_image
1.85 +typedef void* GLeglImageOES;
1.86 +#endif
1.87 +
1.88 +/* GL_OES_depth24 */
1.89 +#ifndef GL_OES_depth24
1.90 +#define GL_DEPTH_COMPONENT24_OES 0x81A6
1.91 +#endif
1.92 +
1.93 +/* GL_OES_depth32 */
1.94 +#ifndef GL_OES_depth32
1.95 +#define GL_DEPTH_COMPONENT32_OES 0x81A7
1.96 +#endif
1.97 +
1.98 +/* GL_OES_mapbuffer */
1.99 +#ifndef GL_OES_mapbuffer
1.100 +/* GL_READ_ONLY and GL_READ_WRITE not supported */
1.101 +#define GL_WRITE_ONLY_OES 0x88B9
1.102 +#define GL_BUFFER_ACCESS_OES 0x88BB
1.103 +#define GL_BUFFER_MAPPED_OES 0x88BC
1.104 +#define GL_BUFFER_MAP_POINTER_OES 0x88BD
1.105 +#endif
1.106 +
1.107 +/* GL_OES_rgb8_rgba8 */
1.108 +#ifndef GL_OES_rgb8_rgba8
1.109 +#define GL_RGB8_OES 0x8051
1.110 +#define GL_RGBA8_OES 0x8058
1.111 +#endif
1.112 +
1.113 +/* GL_OES_stencil1 */
1.114 +#ifndef GL_OES_stencil1
1.115 +#define GL_STENCIL_INDEX1_OES 0x8D46
1.116 +#endif
1.117 +
1.118 +/* GL_OES_stencil4 */
1.119 +#ifndef GL_OES_stencil4
1.120 +#define GL_STENCIL_INDEX4_OES 0x8D47
1.121 +#endif
1.122 +
1.123 +/* GL_OES_texture3D */
1.124 +#ifndef GL_OES_texture3D
1.125 +#define GL_TEXTURE_WRAP_R_OES 0x8072
1.126 +#define GL_TEXTURE_3D_OES 0x806F
1.127 +#define GL_TEXTURE_BINDING_3D_OES 0x806A
1.128 +#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
1.129 +#define GL_SAMPLER_3D_OES 0x8B5F
1.130 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
1.131 +#endif
1.132 +
1.133 +/* GL_OES_texture_half_float */
1.134 +#ifndef GL_OES_texture_half_float
1.135 +#define GL_HALF_FLOAT_OES 0x8D61
1.136 +#endif
1.137 +
1.138 +/* GL_OES_vertex_half_float */
1.139 +/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
1.140 +
1.141 +/* GL_AMD_compressed_3DC_texture */
1.142 +#ifndef GL_AMD_compressed_3DC_texture
1.143 +#define GL_3DC_X_AMD 0x87F9
1.144 +#define GL_3DC_XY_AMD 0x87FA
1.145 +#endif
1.146 +
1.147 +/* GL_AMD_compressed_ATC_texture */
1.148 +#ifndef GL_AMD_compressed_ATC_texture
1.149 +#define GL_ATC_RGB_AMD 0x8C92
1.150 +#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
1.151 +#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
1.152 +#endif
1.153 +
1.154 +/* GL_EXT_texture_filter_anisotropic */
1.155 +#ifndef GL_EXT_texture_filter_anisotropic
1.156 +#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
1.157 +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
1.158 +#endif
1.159 +
1.160 +/*------------------------------------------------------------------------*
1.161 + * OES extension functions
1.162 + *------------------------------------------------------------------------*/
1.163 +
1.164 +/* GL_OES_compressed_ETC1_RGB8_texture */
1.165 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
1.166 +#define GL_OES_compressed_ETC1_RGB8_texture 1
1.167 +#endif
1.168 +
1.169 +/* GL_OES_compressed_paletted_texture */
1.170 +#ifndef GL_OES_compressed_paletted_texture
1.171 +#define GL_OES_compressed_paletted_texture 1
1.172 +#endif
1.173 +
1.174 +/* GL_OES_EGL_image */
1.175 +#ifndef GL_OES_EGL_image
1.176 +#define GL_OES_EGL_image 1
1.177 +#ifdef GL_GLEXT_PROTOTYPES
1.178 +GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
1.179 +GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
1.180 +#endif
1.181 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
1.182 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
1.183 +#endif
1.184 +
1.185 +/* GL_OES_depth24 */
1.186 +#ifndef GL_OES_depth24
1.187 +#define GL_OES_depth24 1
1.188 +#endif
1.189 +
1.190 +/* GL_OES_depth32 */
1.191 +#ifndef GL_OES_depth32
1.192 +#define GL_OES_depth32 1
1.193 +#endif
1.194 +
1.195 +/* GL_OES_element_index_uint */
1.196 +#ifndef GL_OES_element_index_uint
1.197 +#define GL_OES_element_index_uint 1
1.198 +#endif
1.199 +
1.200 +/* GL_OES_fbo_render_mipmap */
1.201 +#ifndef GL_OES_fbo_render_mipmap
1.202 +#define GL_OES_fbo_render_mipmap 1
1.203 +#endif
1.204 +
1.205 +/* GL_OES_fragment_precision_high */
1.206 +#ifndef GL_OES_fragment_precision_high
1.207 +#define GL_OES_fragment_precision_high 1
1.208 +#endif
1.209 +
1.210 +/* GL_OES_mapbuffer */
1.211 +#ifndef GL_OES_mapbuffer
1.212 +#define GL_OES_mapbuffer 1
1.213 +#ifdef GL_GLEXT_PROTOTYPES
1.214 +GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
1.215 +GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
1.216 +GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
1.217 +#endif
1.218 +typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
1.219 +typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
1.220 +typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
1.221 +#endif
1.222 +
1.223 +/* GL_OES_rgb8_rgba8 */
1.224 +#ifndef GL_OES_rgb8_rgba8
1.225 +#define GL_OES_rgb8_rgba8 1
1.226 +#endif
1.227 +
1.228 +/* GL_OES_stencil1 */
1.229 +#ifndef GL_OES_stencil1
1.230 +#define GL_OES_stencil1 1
1.231 +#endif
1.232 +
1.233 +/* GL_OES_stencil4 */
1.234 +#ifndef GL_OES_stencil4
1.235 +#define GL_OES_stencil4 1
1.236 +#endif
1.237 +
1.238 +/* GL_OES_texture_3D */
1.239 +#ifndef GL_OES_texture_3D
1.240 +#define GL_OES_texture_3D 1
1.241 +#ifdef GL_GLEXT_PROTOTYPES
1.242 +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);
1.243 +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);
1.244 +GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
1.245 +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);
1.246 +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);
1.247 +GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1.248 +#endif
1.249 +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);
1.250 +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);
1.251 +typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
1.252 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
1.253 +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);
1.254 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1.255 +#endif
1.256 +
1.257 +/* GL_OES_texture_float_linear */
1.258 +#ifndef GL_OES_texture_float_linear
1.259 +#define GL_OES_texture_float_linear 1
1.260 +#endif
1.261 +
1.262 +/* GL_OES_texture_half_float_linear */
1.263 +#ifndef GL_OES_texture_half_float_linear
1.264 +#define GL_OES_texture_half_float_linear 1
1.265 +#endif
1.266 +
1.267 +/* GL_OES_texture_float */
1.268 +#ifndef GL_OES_texture_float
1.269 +#define GL_OES_texture_float 1
1.270 +#endif
1.271 +
1.272 +/* GL_OES_texture_half_float */
1.273 +#ifndef GL_OES_texture_half_float
1.274 +#define GL_OES_texture_half_float 1
1.275 +#endif
1.276 +
1.277 +/* GL_OES_texture_npot */
1.278 +#ifndef GL_OES_texture_npot
1.279 +#define GL_OES_texture_npot 1
1.280 +#endif
1.281 +
1.282 +/* GL_OES_vertex_half_float */
1.283 +#ifndef GL_OES_vertex_half_float
1.284 +#define GL_OES_vertex_half_float 1
1.285 +#endif
1.286 +
1.287 +/* GL_AMD_compressed_3DC_texture */
1.288 +#ifndef GL_AMD_compressed_3DC_texture
1.289 +#define GL_AMD_compressed_3DC_texture 1
1.290 +#endif
1.291 +
1.292 +/* GL_AMD_compressed_ATC_texture */
1.293 +#ifndef GL_AMD_compressed_ATC_texture
1.294 +#define GL_AMD_compressed_ATC_texture 1
1.295 +#endif
1.296 +
1.297 +/* GL_EXT_texture_filter_anisotropic */
1.298 +#ifndef GL_EXT_texture_filter_anisotropic
1.299 +#define GL_EXT_texture_filter_anisotropic 1
1.300 +#endif
1.301 +
1.302 +#ifdef __cplusplus
1.303 +}
1.304 +#endif
1.305 +
1.306 +#endif /* __gl2ext_h_ */