Panda3D
 All Classes Functions Variables Enumerations
panda_esgl2ext.h
00001 #ifndef __panda_esgl2ext_h_
00002 #define __panda_esgl2ext_h_
00003 
00004 /* $Id: panda_esgl2ext.h,v 1.1 2010/11/23 19:05:11 pro-rsoft Exp $ */
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010 /*
00011 ** License Applicability. Except to the extent portions of this file are
00012 ** made subject to an alternative license as permitted in the SGI Free
00013 ** Software License B, Version 1.0 (the "License"), the contents of this
00014 ** file are subject only to the provisions of the License. You may not use
00015 ** this file except in compliance with the License. You may obtain a copy
00016 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
00017 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
00018 **
00019 ** http://oss.sgi.com/projects/FreeB
00020 **
00021 ** Note that, as provided in the License, the Software is distributed on an
00022 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
00023 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
00024 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
00025 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
00026 **
00027 ** Original Code. The Original Code is: OpenGL Sample Implementation,
00028 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
00029 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
00030 ** Copyright in any portions created by third parties is as indicated
00031 ** elsewhere herein. All Rights Reserved.
00032 **
00033 ** Additional Notice Provisions: The application programming interfaces
00034 ** established by SGI in conjunction with the Original Code are The
00035 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
00036 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
00037 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
00038 ** Window System(R) (Version 1.3), released October 19, 1998. This software
00039 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
00040 ** published by SGI, but has not been independently verified as being
00041 ** compliant with the OpenGL(R) version 1.2.1 Specification.
00042 */
00043 
00044 #ifndef GL_APIENTRYP
00045 #   define GL_APIENTRYP GL_APIENTRY*
00046 #endif
00047 
00048 /*------------------------------------------------------------------------*
00049  * OES extension tokens
00050  *------------------------------------------------------------------------*/
00051 
00052 /* GL_OES_compressed_ETC1_RGB8_texture */
00053 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00054 #define GL_ETC1_RGB8_OES                                        0x8D64
00055 #endif
00056 
00057 /* GL_OES_compressed_paletted_texture */
00058 #ifndef GL_OES_compressed_paletted_texture
00059 #define GL_PALETTE4_RGB8_OES                                    0x8B90
00060 #define GL_PALETTE4_RGBA8_OES                                   0x8B91
00061 #define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
00062 #define GL_PALETTE4_RGBA4_OES                                   0x8B93
00063 #define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
00064 #define GL_PALETTE8_RGB8_OES                                    0x8B95
00065 #define GL_PALETTE8_RGBA8_OES                                   0x8B96
00066 #define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
00067 #define GL_PALETTE8_RGBA4_OES                                   0x8B98
00068 #define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
00069 #endif
00070 
00071 /* GL_OES_EGL_image */
00072 #ifndef GL_OES_EGL_image
00073 typedef void* GLeglImageOES;
00074 #endif
00075 
00076 /* GL_OES_depth24 */
00077 #ifndef GL_OES_depth24
00078 #define GL_DEPTH_COMPONENT24_OES                                0x81A6
00079 #endif
00080 
00081 /* GL_OES_depth32 */
00082 #ifndef GL_OES_depth32
00083 #define GL_DEPTH_COMPONENT32_OES                                0x81A7
00084 #endif
00085 
00086 /* GL_OES_mapbuffer */
00087 #ifndef GL_OES_mapbuffer
00088 /* GL_READ_ONLY and GL_READ_WRITE not supported */
00089 #define GL_WRITE_ONLY_OES                                       0x88B9
00090 #define GL_BUFFER_ACCESS_OES                                    0x88BB
00091 #define GL_BUFFER_MAPPED_OES                                    0x88BC
00092 #define GL_BUFFER_MAP_POINTER_OES                               0x88BD
00093 #endif
00094 
00095 /* GL_OES_rgb8_rgba8 */
00096 #ifndef GL_OES_rgb8_rgba8
00097 #define GL_RGB8_OES                                             0x8051
00098 #define GL_RGBA8_OES                                            0x8058
00099 #endif
00100 
00101 /* GL_OES_stencil1 */
00102 #ifndef GL_OES_stencil1
00103 #define GL_STENCIL_INDEX1_OES                                   0x8D46
00104 #endif
00105 
00106 /* GL_OES_stencil4 */
00107 #ifndef GL_OES_stencil4
00108 #define GL_STENCIL_INDEX4_OES                                   0x8D47
00109 #endif
00110 
00111 /* GL_OES_texture3D */
00112 #ifndef GL_OES_texture3D
00113 #define GL_TEXTURE_WRAP_R_OES                                   0x8072
00114 #define GL_TEXTURE_3D_OES                                       0x806F
00115 #define GL_TEXTURE_BINDING_3D_OES                               0x806A
00116 #define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
00117 #define GL_SAMPLER_3D_OES                                       0x8B5F
00118 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
00119 #endif
00120 
00121 /* GL_OES_texture_half_float */
00122 #ifndef GL_OES_texture_half_float
00123 #define GL_HALF_FLOAT_OES                                       0x8D61
00124 #endif
00125 
00126 /* GL_OES_vertex_half_float */
00127 /* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
00128 
00129 /* GL_AMD_compressed_3DC_texture */
00130 #ifndef GL_AMD_compressed_3DC_texture
00131 #define GL_3DC_X_AMD                                            0x87F9
00132 #define GL_3DC_XY_AMD                                           0x87FA
00133 #endif
00134 
00135 /* GL_AMD_compressed_ATC_texture */
00136 #ifndef GL_AMD_compressed_ATC_texture
00137 #define GL_ATC_RGB_AMD                                          0x8C92
00138 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
00139 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
00140 #endif
00141 
00142 /* GL_EXT_texture_filter_anisotropic */
00143 #ifndef GL_EXT_texture_filter_anisotropic
00144 #define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
00145 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
00146 #endif
00147 
00148 /*------------------------------------------------------------------------*
00149  * OES extension functions
00150  *------------------------------------------------------------------------*/
00151 
00152 /* GL_OES_compressed_ETC1_RGB8_texture */
00153 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00154 #define GL_OES_compressed_ETC1_RGB8_texture 1
00155 #endif
00156 
00157 /* GL_OES_compressed_paletted_texture */
00158 #ifndef GL_OES_compressed_paletted_texture
00159 #define GL_OES_compressed_paletted_texture 1
00160 #endif
00161 
00162 /* GL_OES_EGL_image */
00163 #ifndef GL_OES_EGL_image
00164 #define GL_OES_EGL_image 1
00165 #ifdef GL_GLEXT_PROTOTYPES
00166 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
00167 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
00168 #endif
00169 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
00170 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
00171 #endif
00172 
00173 /* GL_OES_depth24 */
00174 #ifndef GL_OES_depth24
00175 #define GL_OES_depth24 1
00176 #endif
00177 
00178 /* GL_OES_depth32 */
00179 #ifndef GL_OES_depth32
00180 #define GL_OES_depth32 1
00181 #endif
00182 
00183 /* GL_OES_element_index_uint */
00184 #ifndef GL_OES_element_index_uint
00185 #define GL_OES_element_index_uint 1
00186 #endif
00187 
00188 /* GL_OES_fbo_render_mipmap */
00189 #ifndef GL_OES_fbo_render_mipmap
00190 #define GL_OES_fbo_render_mipmap 1
00191 #endif
00192 
00193 /* GL_OES_fragment_precision_high */
00194 #ifndef GL_OES_fragment_precision_high
00195 #define GL_OES_fragment_precision_high 1
00196 #endif
00197 
00198 /* GL_OES_mapbuffer */
00199 #ifndef GL_OES_mapbuffer
00200 #define GL_OES_mapbuffer 1
00201 #ifdef GL_GLEXT_PROTOTYPES
00202 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
00203 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
00204 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
00205 #endif
00206 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
00207 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
00208 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
00209 #endif
00210 
00211 /* GL_OES_rgb8_rgba8 */
00212 #ifndef GL_OES_rgb8_rgba8
00213 #define GL_OES_rgb8_rgba8 1
00214 #endif
00215 
00216 /* GL_OES_stencil1 */
00217 #ifndef GL_OES_stencil1
00218 #define GL_OES_stencil1 1
00219 #endif
00220 
00221 /* GL_OES_stencil4 */
00222 #ifndef GL_OES_stencil4
00223 #define GL_OES_stencil4 1
00224 #endif
00225 
00226 /* GL_OES_texture_3D */
00227 #ifndef GL_OES_texture_3D
00228 #define GL_OES_texture_3D 1
00229 #ifdef GL_GLEXT_PROTOTYPES
00230 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);
00231 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);
00232 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00233 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);
00234 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);
00235 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00236 #endif
00237 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);
00238 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);
00239 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00240 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
00241 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);
00242 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00243 #endif
00244 
00245 /* GL_OES_texture_float_linear */
00246 #ifndef GL_OES_texture_float_linear
00247 #define GL_OES_texture_float_linear 1
00248 #endif
00249 
00250 /* GL_OES_texture_half_float_linear */
00251 #ifndef GL_OES_texture_half_float_linear
00252 #define GL_OES_texture_half_float_linear 1
00253 #endif
00254 
00255 /* GL_OES_texture_float */
00256 #ifndef GL_OES_texture_float
00257 #define GL_OES_texture_float 1
00258 #endif
00259 
00260 /* GL_OES_texture_half_float */
00261 #ifndef GL_OES_texture_half_float
00262 #define GL_OES_texture_half_float 1
00263 #endif
00264 
00265 /* GL_OES_texture_npot */
00266 #ifndef GL_OES_texture_npot
00267 #define GL_OES_texture_npot 1
00268 #endif
00269 
00270 /* GL_OES_vertex_half_float */
00271 #ifndef GL_OES_vertex_half_float
00272 #define GL_OES_vertex_half_float 1
00273 #endif
00274 
00275 /* GL_AMD_compressed_3DC_texture */
00276 #ifndef GL_AMD_compressed_3DC_texture
00277 #define GL_AMD_compressed_3DC_texture 1
00278 #endif
00279 
00280 /* GL_AMD_compressed_ATC_texture */
00281 #ifndef GL_AMD_compressed_ATC_texture
00282 #define GL_AMD_compressed_ATC_texture 1
00283 #endif
00284 
00285 /* GL_EXT_texture_filter_anisotropic */
00286 #ifndef GL_EXT_texture_filter_anisotropic
00287 #define GL_EXT_texture_filter_anisotropic 1
00288 #endif
00289 
00290 #ifdef __cplusplus
00291 }
00292 #endif
00293 
00294 #endif /* __gl2ext_h_ */
 All Classes Functions Variables Enumerations