sl@0
|
1 |
#ifndef __gl2ext_h_
|
sl@0
|
2 |
#define __gl2ext_h_
|
sl@0
|
3 |
|
sl@0
|
4 |
/*
|
sl@0
|
5 |
* Portions Copyright (c) 2008 - 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
6 |
* Differences from the actual sample implementation provided by Khronos:
|
sl@0
|
7 |
* 1. This comment text.
|
sl@0
|
8 |
* 2. Doxygen comment with tag 'publishedAll', and tag 'released'
|
sl@0
|
9 |
*/
|
sl@0
|
10 |
|
sl@0
|
11 |
/**
|
sl@0
|
12 |
@publishedAll
|
sl@0
|
13 |
@released
|
sl@0
|
14 |
*/
|
sl@0
|
15 |
|
sl@0
|
16 |
/* $Id: gl2ext.h 4571 2007-11-28 16:33:30Z benj $ */
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifdef __cplusplus
|
sl@0
|
19 |
extern "C" {
|
sl@0
|
20 |
#endif
|
sl@0
|
21 |
|
sl@0
|
22 |
/*
|
sl@0
|
23 |
** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
|
sl@0
|
24 |
** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved.
|
sl@0
|
25 |
**
|
sl@0
|
26 |
** Permission is hereby granted, free of charge, to any person obtaining
|
sl@0
|
27 |
** a copy of this software and associated documentation files
|
sl@0
|
28 |
** (the "Software"), to deal in the Software without restriction,
|
sl@0
|
29 |
** including without limitation the rights to use, copy, modify, merge,
|
sl@0
|
30 |
** publish, distribute, sublicense, and/or sell copies of the Software,
|
sl@0
|
31 |
** and to permit persons to whom the Software is furnished to do so,
|
sl@0
|
32 |
** subject to the following conditions:
|
sl@0
|
33 |
**
|
sl@0
|
34 |
** The above copyright notice including the dates of first
|
sl@0
|
35 |
** publication and either this permission notice or a reference to
|
sl@0
|
36 |
** http://oss.sgi.com/projects/FreeB/ shall be included in all copies
|
sl@0
|
37 |
** or substantial portions of the Software.
|
sl@0
|
38 |
**
|
sl@0
|
39 |
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
sl@0
|
40 |
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
sl@0
|
41 |
** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
sl@0
|
42 |
** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM,
|
sl@0
|
43 |
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
sl@0
|
44 |
** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
|
sl@0
|
45 |
** THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
sl@0
|
46 |
**
|
sl@0
|
47 |
** Except as contained in this notice, the name of Silicon Graphics, Inc.
|
sl@0
|
48 |
** shall not be used in advertising or otherwise to promote the sale, use
|
sl@0
|
49 |
** or other dealings in this Software without prior written authorization
|
sl@0
|
50 |
** from Silicon Graphics, Inc.
|
sl@0
|
51 |
*/
|
sl@0
|
52 |
|
sl@0
|
53 |
#ifndef GL_APIENTRYP
|
sl@0
|
54 |
# define GL_APIENTRYP GL_APIENTRY*
|
sl@0
|
55 |
#endif
|
sl@0
|
56 |
|
sl@0
|
57 |
/*------------------------------------------------------------------------*
|
sl@0
|
58 |
* OES extension tokens
|
sl@0
|
59 |
*------------------------------------------------------------------------*/
|
sl@0
|
60 |
|
sl@0
|
61 |
/* GL_OES_compressed_ETC1_RGB8_texture */
|
sl@0
|
62 |
#ifndef GL_OES_compressed_ETC1_RGB8_texture
|
sl@0
|
63 |
#define GL_ETC1_RGB8_OES 0x8D64
|
sl@0
|
64 |
#endif
|
sl@0
|
65 |
|
sl@0
|
66 |
/* GL_OES_compressed_paletted_texture */
|
sl@0
|
67 |
#ifndef GL_OES_compressed_paletted_texture
|
sl@0
|
68 |
#define GL_PALETTE4_RGB8_OES 0x8B90
|
sl@0
|
69 |
#define GL_PALETTE4_RGBA8_OES 0x8B91
|
sl@0
|
70 |
#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
|
sl@0
|
71 |
#define GL_PALETTE4_RGBA4_OES 0x8B93
|
sl@0
|
72 |
#define GL_PALETTE4_RGB5_A1_OES 0x8B94
|
sl@0
|
73 |
#define GL_PALETTE8_RGB8_OES 0x8B95
|
sl@0
|
74 |
#define GL_PALETTE8_RGBA8_OES 0x8B96
|
sl@0
|
75 |
#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
|
sl@0
|
76 |
#define GL_PALETTE8_RGBA4_OES 0x8B98
|
sl@0
|
77 |
#define GL_PALETTE8_RGB5_A1_OES 0x8B99
|
sl@0
|
78 |
#endif
|
sl@0
|
79 |
|
sl@0
|
80 |
/* GL_OES_EGL_image */
|
sl@0
|
81 |
#ifndef GL_OES_EGL_image
|
sl@0
|
82 |
typedef void* GLeglImageOES;
|
sl@0
|
83 |
#endif
|
sl@0
|
84 |
|
sl@0
|
85 |
/* GL_OES_depth24 */
|
sl@0
|
86 |
#ifndef GL_OES_depth24
|
sl@0
|
87 |
#define GL_DEPTH_COMPONENT24_OES 0x81A6
|
sl@0
|
88 |
#endif
|
sl@0
|
89 |
|
sl@0
|
90 |
/* GL_OES_depth32 */
|
sl@0
|
91 |
#ifndef GL_OES_depth32
|
sl@0
|
92 |
#define GL_DEPTH_COMPONENT32_OES 0x81A7
|
sl@0
|
93 |
#endif
|
sl@0
|
94 |
|
sl@0
|
95 |
/* GL_OES_mapbuffer */
|
sl@0
|
96 |
#ifndef GL_OES_mapbuffer
|
sl@0
|
97 |
/* GL_READ_ONLY and GL_READ_WRITE not supported */
|
sl@0
|
98 |
#define GL_WRITE_ONLY_OES 0x88B9
|
sl@0
|
99 |
#define GL_BUFFER_ACCESS_OES 0x88BB
|
sl@0
|
100 |
#define GL_BUFFER_MAPPED_OES 0x88BC
|
sl@0
|
101 |
#define GL_BUFFER_MAP_POINTER_OES 0x88BD
|
sl@0
|
102 |
#endif
|
sl@0
|
103 |
|
sl@0
|
104 |
/* GL_OES_rgb8_rgba8 */
|
sl@0
|
105 |
#ifndef GL_OES_rgb8_rgba8
|
sl@0
|
106 |
#define GL_RGB8_OES 0x8051
|
sl@0
|
107 |
#define GL_RGBA8_OES 0x8058
|
sl@0
|
108 |
#endif
|
sl@0
|
109 |
|
sl@0
|
110 |
/* GL_OES_stencil1 */
|
sl@0
|
111 |
#ifndef GL_OES_stencil1
|
sl@0
|
112 |
#define GL_STENCIL_INDEX1_OES 0x8D46
|
sl@0
|
113 |
#endif
|
sl@0
|
114 |
|
sl@0
|
115 |
/* GL_OES_stencil4 */
|
sl@0
|
116 |
#ifndef GL_OES_stencil4
|
sl@0
|
117 |
#define GL_STENCIL_INDEX4_OES 0x8D47
|
sl@0
|
118 |
#endif
|
sl@0
|
119 |
|
sl@0
|
120 |
/* GL_OES_texture3D */
|
sl@0
|
121 |
#ifndef GL_OES_texture3D
|
sl@0
|
122 |
#define GL_TEXTURE_WRAP_R_OES 0x8072
|
sl@0
|
123 |
#define GL_TEXTURE_3D_OES 0x806F
|
sl@0
|
124 |
#define GL_TEXTURE_BINDING_3D_OES 0x806A
|
sl@0
|
125 |
#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
|
sl@0
|
126 |
#define GL_SAMPLER_3D_OES 0x8B5F
|
sl@0
|
127 |
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
|
sl@0
|
128 |
#endif
|
sl@0
|
129 |
|
sl@0
|
130 |
/* GL_OES_texture_half_float */
|
sl@0
|
131 |
#ifndef GL_OES_texture_half_float
|
sl@0
|
132 |
#define GL_HALF_FLOAT_OES 0x8D61
|
sl@0
|
133 |
#endif
|
sl@0
|
134 |
|
sl@0
|
135 |
/* GL_OES_vertex_half_float */
|
sl@0
|
136 |
/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
|
sl@0
|
137 |
|
sl@0
|
138 |
/* GL_AMD_compressed_3DC_texture */
|
sl@0
|
139 |
#ifndef GL_AMD_compressed_3DC_texture
|
sl@0
|
140 |
#define GL_3DC_X_AMD 0x87F9
|
sl@0
|
141 |
#define GL_3DC_XY_AMD 0x87FA
|
sl@0
|
142 |
#endif
|
sl@0
|
143 |
|
sl@0
|
144 |
/* GL_AMD_compressed_ATC_texture */
|
sl@0
|
145 |
#ifndef GL_AMD_compressed_ATC_texture
|
sl@0
|
146 |
#define GL_ATC_RGB_AMD 0x8C92
|
sl@0
|
147 |
#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
|
sl@0
|
148 |
#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
|
sl@0
|
149 |
#endif
|
sl@0
|
150 |
|
sl@0
|
151 |
/* GL_EXT_texture_filter_anisotropic */
|
sl@0
|
152 |
#ifndef GL_EXT_texture_filter_anisotropic
|
sl@0
|
153 |
#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
|
sl@0
|
154 |
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
|
sl@0
|
155 |
#endif
|
sl@0
|
156 |
|
sl@0
|
157 |
/*------------------------------------------------------------------------*
|
sl@0
|
158 |
* OES extension functions
|
sl@0
|
159 |
*------------------------------------------------------------------------*/
|
sl@0
|
160 |
|
sl@0
|
161 |
/* GL_OES_compressed_ETC1_RGB8_texture */
|
sl@0
|
162 |
#ifndef GL_OES_compressed_ETC1_RGB8_texture
|
sl@0
|
163 |
#define GL_OES_compressed_ETC1_RGB8_texture 1
|
sl@0
|
164 |
#endif
|
sl@0
|
165 |
|
sl@0
|
166 |
/* GL_OES_compressed_paletted_texture */
|
sl@0
|
167 |
#ifndef GL_OES_compressed_paletted_texture
|
sl@0
|
168 |
#define GL_OES_compressed_paletted_texture 1
|
sl@0
|
169 |
#endif
|
sl@0
|
170 |
|
sl@0
|
171 |
/* GL_OES_EGL_image */
|
sl@0
|
172 |
#ifndef GL_OES_EGL_image
|
sl@0
|
173 |
#define GL_OES_EGL_image 1
|
sl@0
|
174 |
#ifdef GL_GLEXT_PROTOTYPES
|
sl@0
|
175 |
GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
|
sl@0
|
176 |
GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
|
sl@0
|
177 |
#endif
|
sl@0
|
178 |
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
|
sl@0
|
179 |
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
|
sl@0
|
180 |
#endif
|
sl@0
|
181 |
|
sl@0
|
182 |
/* GL_OES_depth24 */
|
sl@0
|
183 |
#ifndef GL_OES_depth24
|
sl@0
|
184 |
#define GL_OES_depth24 1
|
sl@0
|
185 |
#endif
|
sl@0
|
186 |
|
sl@0
|
187 |
/* GL_OES_depth32 */
|
sl@0
|
188 |
#ifndef GL_OES_depth32
|
sl@0
|
189 |
#define GL_OES_depth32 1
|
sl@0
|
190 |
#endif
|
sl@0
|
191 |
|
sl@0
|
192 |
/* GL_OES_element_index_uint */
|
sl@0
|
193 |
#ifndef GL_OES_element_index_uint
|
sl@0
|
194 |
#define GL_OES_element_index_uint 1
|
sl@0
|
195 |
#endif
|
sl@0
|
196 |
|
sl@0
|
197 |
/* GL_OES_fbo_render_mipmap */
|
sl@0
|
198 |
#ifndef GL_OES_fbo_render_mipmap
|
sl@0
|
199 |
#define GL_OES_fbo_render_mipmap 1
|
sl@0
|
200 |
#endif
|
sl@0
|
201 |
|
sl@0
|
202 |
/* GL_OES_fragment_precision_high */
|
sl@0
|
203 |
#ifndef GL_OES_fragment_precision_high
|
sl@0
|
204 |
#define GL_OES_fragment_precision_high 1
|
sl@0
|
205 |
#endif
|
sl@0
|
206 |
|
sl@0
|
207 |
/* GL_OES_mapbuffer */
|
sl@0
|
208 |
#ifndef GL_OES_mapbuffer
|
sl@0
|
209 |
#define GL_OES_mapbuffer 1
|
sl@0
|
210 |
#ifdef GL_GLEXT_PROTOTYPES
|
sl@0
|
211 |
GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
|
sl@0
|
212 |
GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
|
sl@0
|
213 |
GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
|
sl@0
|
214 |
#endif
|
sl@0
|
215 |
typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
|
sl@0
|
216 |
typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
|
sl@0
|
217 |
typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
|
sl@0
|
218 |
#endif
|
sl@0
|
219 |
|
sl@0
|
220 |
/* GL_OES_rgb8_rgba8 */
|
sl@0
|
221 |
#ifndef GL_OES_rgb8_rgba8
|
sl@0
|
222 |
#define GL_OES_rgb8_rgba8 1
|
sl@0
|
223 |
#endif
|
sl@0
|
224 |
|
sl@0
|
225 |
/* GL_OES_stencil1 */
|
sl@0
|
226 |
#ifndef GL_OES_stencil1
|
sl@0
|
227 |
#define GL_OES_stencil1 1
|
sl@0
|
228 |
#endif
|
sl@0
|
229 |
|
sl@0
|
230 |
/* GL_OES_stencil4 */
|
sl@0
|
231 |
#ifndef GL_OES_stencil4
|
sl@0
|
232 |
#define GL_OES_stencil4 1
|
sl@0
|
233 |
#endif
|
sl@0
|
234 |
|
sl@0
|
235 |
/* GL_OES_texture_3D */
|
sl@0
|
236 |
#ifndef GL_OES_texture_3D
|
sl@0
|
237 |
#define GL_OES_texture_3D 1
|
sl@0
|
238 |
#ifdef GL_GLEXT_PROTOTYPES
|
sl@0
|
239 |
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);
|
sl@0
|
240 |
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);
|
sl@0
|
241 |
GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
sl@0
|
242 |
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);
|
sl@0
|
243 |
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);
|
sl@0
|
244 |
GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
sl@0
|
245 |
#endif
|
sl@0
|
246 |
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);
|
sl@0
|
247 |
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);
|
sl@0
|
248 |
typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
sl@0
|
249 |
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
|
sl@0
|
250 |
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);
|
sl@0
|
251 |
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
sl@0
|
252 |
#endif
|
sl@0
|
253 |
|
sl@0
|
254 |
/* GL_OES_texture_float_linear */
|
sl@0
|
255 |
#ifndef GL_OES_texture_float_linear
|
sl@0
|
256 |
#define GL_OES_texture_float_linear 1
|
sl@0
|
257 |
#endif
|
sl@0
|
258 |
|
sl@0
|
259 |
/* GL_OES_texture_half_float_linear */
|
sl@0
|
260 |
#ifndef GL_OES_texture_half_float_linear
|
sl@0
|
261 |
#define GL_OES_texture_half_float_linear 1
|
sl@0
|
262 |
#endif
|
sl@0
|
263 |
|
sl@0
|
264 |
/* GL_OES_texture_float */
|
sl@0
|
265 |
#ifndef GL_OES_texture_float
|
sl@0
|
266 |
#define GL_OES_texture_float 1
|
sl@0
|
267 |
#endif
|
sl@0
|
268 |
|
sl@0
|
269 |
/* GL_OES_texture_half_float */
|
sl@0
|
270 |
#ifndef GL_OES_texture_half_float
|
sl@0
|
271 |
#define GL_OES_texture_half_float 1
|
sl@0
|
272 |
#endif
|
sl@0
|
273 |
|
sl@0
|
274 |
/* GL_OES_texture_npot */
|
sl@0
|
275 |
#ifndef GL_OES_texture_npot
|
sl@0
|
276 |
#define GL_OES_texture_npot 1
|
sl@0
|
277 |
#endif
|
sl@0
|
278 |
|
sl@0
|
279 |
/* GL_OES_vertex_half_float */
|
sl@0
|
280 |
#ifndef GL_OES_vertex_half_float
|
sl@0
|
281 |
#define GL_OES_vertex_half_float 1
|
sl@0
|
282 |
#endif
|
sl@0
|
283 |
|
sl@0
|
284 |
/* GL_AMD_compressed_3DC_texture */
|
sl@0
|
285 |
#ifndef GL_AMD_compressed_3DC_texture
|
sl@0
|
286 |
#define GL_AMD_compressed_3DC_texture 1
|
sl@0
|
287 |
#endif
|
sl@0
|
288 |
|
sl@0
|
289 |
/* GL_AMD_compressed_ATC_texture */
|
sl@0
|
290 |
#ifndef GL_AMD_compressed_ATC_texture
|
sl@0
|
291 |
#define GL_AMD_compressed_ATC_texture 1
|
sl@0
|
292 |
#endif
|
sl@0
|
293 |
|
sl@0
|
294 |
/* GL_EXT_texture_filter_anisotropic */
|
sl@0
|
295 |
#ifndef GL_EXT_texture_filter_anisotropic
|
sl@0
|
296 |
#define GL_EXT_texture_filter_anisotropic 1
|
sl@0
|
297 |
#endif
|
sl@0
|
298 |
|
sl@0
|
299 |
#ifdef __cplusplus
|
sl@0
|
300 |
}
|
sl@0
|
301 |
#endif
|
sl@0
|
302 |
|
sl@0
|
303 |
#endif /* __gl2ext_h_ */
|