00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __SG_EXTENSIONS_HXX
00025 #define __SG_EXTENSIONS_HXX 1
00026
00027 #ifdef WIN32
00028 # include <windows.h>
00029 #endif
00030
00031 #include <simgear/compiler.h>
00032
00033 #include <osg/GL>
00034
00035 #if !defined(__APPLE__) && !defined(WIN32)
00036 # include <GL/glx.h>
00037 #endif
00038
00039 #if defined(__cplusplus)
00040 extern "C" {
00041 #endif
00042
00043 #ifndef APIENTRY
00044 #define APIENTRY
00045 #endif
00046
00047 bool SGSearchExtensionsString(const char *extString, const char *extName);
00048 bool SGIsOpenGLExtensionSupported(const char *extName);
00049
00050 #ifdef __APPLE__
00051
00052 void* macosxGetGLProcAddress(const char *func);
00053
00054 #elif !defined( WIN32 )
00055
00056 void *SGGetGLProcAddress(const char *func);
00057
00058 #endif
00059
00060 inline void (*SGLookupFunction(const char *func))()
00061 {
00062 #if defined( WIN32 )
00063 return (void (*)()) wglGetProcAddress(func);
00064
00065 #elif defined( __APPLE__ )
00066 return (void (*)()) macosxGetGLProcAddress(func);
00067
00068 #else // UNIX, default
00069 return (void (*)()) SGGetGLProcAddress(func);
00070 #endif
00071 }
00072
00073
00074
00075
00076
00077 #ifndef GL_VERSION_1_2
00078 #define GL_CLAMP_TO_EDGE 0x812F
00079 #define GL_TEXTURE_WRAP_R 0x8072
00080 #define GL_BLEND_EQUATION 0x8009
00081 #define GL_MIN 0x8007
00082 #define GL_MAX 0x8008
00083 #define GL_FUNC_ADD 0x8006
00084 #define GL_FUNC_SUBTRACT 0x800A
00085 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
00086 #define GL_BLEND_COLOR 0x8005
00087 #define GL_CONSTANT_COLOR 0x8001
00088 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
00089 #define GL_CONSTANT_ALPHA 0x8003
00090 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
00091 #endif
00092
00093 typedef void (APIENTRY * glBlendEquationProc) (GLenum mode );
00094 typedef void (APIENTRY * glBlendColorProc) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
00095
00096
00097
00098
00099
00100
00101
00102 #ifndef GL_EXT_point_parameters
00103 #define GL_EXT_point_parameters 1
00104 #define GL_POINT_SIZE_MIN_EXT 0x8126
00105 #define GL_DISTANCE_ATTENUATION_EXT 0x8129
00106 #endif
00107
00108 #ifndef GL_ARB_point_parameters
00109 #define GL_ARB_point_parameters 1
00110 #define GL_POINT_SIZE_MIN_ARB 0x8126
00111 #define GL_DISTANCE_ATTENUATION_ARB 0x8129
00112 #endif
00113
00114 typedef void (APIENTRY * glPointParameterfProc)(GLenum pname, GLfloat param);
00115 typedef void (APIENTRY * glPointParameterfvProc)(GLenum pname, const GLfloat *params);
00116
00117
00118
00119
00120
00121 #ifndef GL_ARB_multitexture
00122 #define GL_ARB_multitexture 1
00123 #define GL_TEXTURE0_ARB 0x84C0
00124 #define GL_TEXTURE1_ARB 0x84C1
00125 #define GL_TEXTURE2_ARB 0x84C2
00126 #define GL_TEXTURE3_ARB 0x84C3
00127 #define GL_TEXTURE4_ARB 0x84C4
00128 #define GL_TEXTURE5_ARB 0x84C5
00129 #define GL_TEXTURE6_ARB 0x84C6
00130 #define GL_TEXTURE7_ARB 0x84C7
00131 #define GL_TEXTURE8_ARB 0x84C8
00132 #define GL_TEXTURE9_ARB 0x84C9
00133 #define GL_TEXTURE10_ARB 0x84CA
00134 #define GL_TEXTURE11_ARB 0x84CB
00135 #define GL_TEXTURE12_ARB 0x84CC
00136 #define GL_TEXTURE13_ARB 0x84CD
00137 #define GL_TEXTURE14_ARB 0x84CE
00138 #define GL_TEXTURE15_ARB 0x84CF
00139 #define GL_TEXTURE16_ARB 0x84D0
00140 #define GL_TEXTURE17_ARB 0x84D1
00141 #define GL_TEXTURE18_ARB 0x84D2
00142 #define GL_TEXTURE19_ARB 0x84D3
00143 #define GL_TEXTURE20_ARB 0x84D4
00144 #define GL_TEXTURE21_ARB 0x84D5
00145 #define GL_TEXTURE22_ARB 0x84D6
00146 #define GL_TEXTURE23_ARB 0x84D7
00147 #define GL_TEXTURE24_ARB 0x84D8
00148 #define GL_TEXTURE25_ARB 0x84D9
00149 #define GL_TEXTURE26_ARB 0x84DA
00150 #define GL_TEXTURE27_ARB 0x84DB
00151 #define GL_TEXTURE28_ARB 0x84DC
00152 #define GL_TEXTURE29_ARB 0x84DD
00153 #define GL_TEXTURE30_ARB 0x84DE
00154 #define GL_TEXTURE31_ARB 0x84DF
00155 #define GL_ACTIVE_TEXTURE_ARB 0x84E0
00156 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
00157 #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
00158 #endif
00159
00160 typedef void (APIENTRY * glActiveTextureProc)(GLenum texture);
00161 typedef void (APIENTRY * glClientActiveTextureProc)(GLenum texture);
00162
00163
00164
00165
00166
00167 #ifndef GL_LIGHT_MODEL_COLOR_CONTROL
00168 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
00169 #define GL_SINGLE_COLOR 0x81F9
00170 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
00171 #endif
00172
00173
00174
00175
00176
00177 #ifndef GL_ARB_texture_cube_map
00178 #define GL_ARB_texture_cube_map 1
00179 #define GL_NORMAL_MAP_ARB 0x8511
00180 #define GL_REFLECTION_MAP_ARB 0x8512
00181 #define GL_TEXTURE_CUBE_MAP_ARB 0x8513
00182 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514
00183 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
00184 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
00185 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
00186 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
00187 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
00188 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
00189 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B
00190 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C
00191 #endif
00192
00193
00194
00195
00196
00197 #ifndef GL_ARB_texture_env_combine
00198 #define GL_ARB_texture_env_combine 1
00199 #define GL_COMBINE_ARB 0x8570
00200 #define GL_COMBINE_RGB_ARB 0x8571
00201 #define GL_COMBINE_ALPHA_ARB 0x8572
00202 #define GL_RGB_SCALE_ARB 0x8573
00203 #define GL_ADD_SIGNED_ARB 0x8574
00204 #define GL_INTERPOLATE_ARB 0x8575
00205 #define GL_SUBTRACT_ARB 0x84E7
00206 #define GL_CONSTANT_ARB 0x8576
00207 #define GL_PRIMARY_COLOR_ARB 0x8577
00208 #define GL_PREVIOUS_ARB 0x8578
00209 #define GL_SOURCE0_RGB_ARB 0x8580
00210 #define GL_SOURCE1_RGB_ARB 0x8581
00211 #define GL_SOURCE2_RGB_ARB 0x8582
00212 #define GL_SOURCE0_ALPHA_ARB 0x8588
00213 #define GL_SOURCE1_ALPHA_ARB 0x8589
00214 #define GL_SOURCE2_ALPHA_ARB 0x858A
00215 #define GL_OPERAND0_RGB_ARB 0x8590
00216 #define GL_OPERAND1_RGB_ARB 0x8591
00217 #define GL_OPERAND2_RGB_ARB 0x8592
00218 #define GL_OPERAND0_ALPHA_ARB 0x8598
00219 #define GL_OPERAND1_ALPHA_ARB 0x8599
00220 #define GL_OPERAND2_ALPHA_ARB 0x859A
00221 #endif
00222
00223
00224
00225
00226
00227 #ifndef GL_ARB_texture_env_dot3
00228 #define GL_ARB_texture_env_dot3 1
00229 #define GL_DOT3_RGB_ARB 0x86AE
00230 #define GL_DOT3_RGBA_ARB 0x86AF
00231 #endif
00232
00233
00234
00235
00236 #ifndef GL_ARB_depth_texture
00237 #define GL_ARB_depth_texture 1
00238 #define GL_DEPTH_COMPONENT16_ARB 0x81A5
00239 #define GL_DEPTH_COMPONENT24_ARB 0x81A6
00240 #define GL_DEPTH_COMPONENT32_ARB 0x81A7
00241 #define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
00242 #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
00243 #endif
00244
00245
00246
00247
00248 #ifndef GL_ARB_multisample
00249 #define GL_ARB_multisample 1
00250 #define GL_MULTISAMPLE_ARB 0x809D
00251 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E
00252 #define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F
00253 #define GL_SAMPLE_COVERAGE_ARB 0x80A0
00254 #define GL_SAMPLE_BUFFERS_ARB 0x80A8
00255 #define GL_SAMPLES_ARB 0x80A9
00256 #define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA
00257 #define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB
00258 #define GL_MULTISAMPLE_BIT_ARB 0x20000000
00259 #define GL_DOUBLEBUFFER 0x0C32
00260 #define GL_AUX_BUFFERS 0x0C00
00261 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
00262 #define WGL_SAMPLES_ARB 0x2042
00263 #endif
00264
00265 #ifndef GL_SGIS_generate_mipmap
00266 #define GL_SGIS_generate_mipmap 1
00267 #define GL_GENERATE_MIPMAP_SGIS 0x8191
00268 #define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192
00269 #endif
00270
00271
00272 #ifdef WIN32
00273
00274
00275
00276
00277 #ifndef WGL_ARB_extensions_string
00278 #define WGL_ARB_extensions_string 1
00279 typedef const char * (APIENTRY * wglGetExtensionsStringARBProc) (HDC hDC);
00280 #endif
00281
00282
00283
00284
00285 #ifndef WGL_ARB_pbuffer
00286 #define WGL_ARB_pbuffer 1
00287 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
00288 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
00289 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
00290 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
00291 #define WGL_PBUFFER_LARGEST_ARB 0x2033
00292 #define WGL_PBUFFER_WIDTH_ARB 0x2034
00293 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
00294 #define WGL_PBUFFER_LOST_ARB 0x2036
00295 DECLARE_HANDLE(HPBUFFERARB);
00296 typedef HPBUFFERARB (APIENTRY * wglCreatePbufferARBProc) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00297 typedef HDC (APIENTRY * wglGetPbufferDCARBProc) (HPBUFFERARB hPbuffer);
00298 typedef int (APIENTRY * wglReleasePbufferDCARBProc) (HPBUFFERARB hPbuffer, HDC hDC);
00299 typedef BOOL (APIENTRY * wglDestroyPbufferARBProc) (HPBUFFERARB hPbuffer);
00300 typedef BOOL (APIENTRY * wglQueryPbufferARBProc) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
00301 #endif
00302
00303
00304
00305
00306
00307 #ifndef WGL_ARB_pixel_format
00308 #define WGL_ARB_pixel_format 1
00309 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
00310 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
00311 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
00312 #define WGL_ACCELERATION_ARB 0x2003
00313 #define WGL_NEED_PALETTE_ARB 0x2004
00314 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
00315 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
00316 #define WGL_SWAP_METHOD_ARB 0x2007
00317 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
00318 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
00319 #define WGL_TRANSPARENT_ARB 0x200A
00320 #define WGL_SHARE_DEPTH_ARB 0x200C
00321 #define WGL_SHARE_STENCIL_ARB 0x200D
00322 #define WGL_SHARE_ACCUM_ARB 0x200E
00323 #define WGL_SUPPORT_GDI_ARB 0x200F
00324 #define WGL_SUPPORT_OPENGL_ARB 0x2010
00325 #define WGL_DOUBLE_BUFFER_ARB 0x2011
00326 #define WGL_STEREO_ARB 0x2012
00327 #define WGL_PIXEL_TYPE_ARB 0x2013
00328 #define WGL_COLOR_BITS_ARB 0x2014
00329 #define WGL_RED_BITS_ARB 0x2015
00330 #define WGL_RED_SHIFT_ARB 0x2016
00331 #define WGL_GREEN_BITS_ARB 0x2017
00332 #define WGL_GREEN_SHIFT_ARB 0x2018
00333 #define WGL_BLUE_BITS_ARB 0x2019
00334 #define WGL_BLUE_SHIFT_ARB 0x201A
00335 #define WGL_ALPHA_BITS_ARB 0x201B
00336 #define WGL_ALPHA_SHIFT_ARB 0x201C
00337 #define WGL_ACCUM_BITS_ARB 0x201D
00338 #define WGL_ACCUM_RED_BITS_ARB 0x201E
00339 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
00340 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
00341 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
00342 #define WGL_DEPTH_BITS_ARB 0x2022
00343 #define WGL_STENCIL_BITS_ARB 0x2023
00344 #define WGL_AUX_BUFFERS_ARB 0x2024
00345 #define WGL_NO_ACCELERATION_ARB 0x2025
00346 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
00347 #define WGL_FULL_ACCELERATION_ARB 0x2027
00348 #define WGL_SWAP_EXCHANGE_ARB 0x2028
00349 #define WGL_SWAP_COPY_ARB 0x2029
00350 #define WGL_SWAP_UNDEFINED_ARB 0x202A
00351 #define WGL_TYPE_RGBA_ARB 0x202B
00352 #define WGL_TYPE_COLORINDEX_ARB 0x202C
00353 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
00354 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
00355 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
00356 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
00357 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
00358 typedef BOOL (APIENTRY * wglGetPixelFormatAttribivARBProc) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
00359 typedef BOOL (APIENTRY * wglGetPixelFormatAttribfvARBProc) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
00360 typedef BOOL (APIENTRY * wglChoosePixelFormatARBProc) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00361 #endif
00362
00363
00364
00365
00366 #ifndef WGL_ARB_render_texture
00367 #define WGL_ARB_render_texture 1
00368
00369 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
00370 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
00371 #define WGL_TEXTURE_FORMAT_ARB 0x2072
00372 #define WGL_TEXTURE_TARGET_ARB 0x2073
00373 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
00374 #define WGL_TEXTURE_RGB_ARB 0x2075
00375 #define WGL_TEXTURE_RGBA_ARB 0x2076
00376 #define WGL_NO_TEXTURE_ARB 0x2077
00377 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
00378 #define WGL_TEXTURE_1D_ARB 0x2079
00379 #define WGL_TEXTURE_2D_ARB 0x207A
00380 #define WGL_NO_TEXTURE_ARB 0x2077
00381 #define WGL_MIPMAP_LEVEL_ARB 0x207B
00382 #define WGL_CUBE_MAP_FACE_ARB 0x207C
00383 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
00384 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
00385 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
00386 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
00387 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
00388 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
00389 #define WGL_FRONT_LEFT_ARB 0x2083
00390 #define WGL_FRONT_RIGHT_ARB 0x2084
00391 #define WGL_BACK_LEFT_ARB 0x2085
00392 #define WGL_BACK_RIGHT_ARB 0x2086
00393 #define WGL_AUX0_ARB 0x2087
00394 #define WGL_AUX1_ARB 0x2088
00395 #define WGL_AUX2_ARB 0x2089
00396 #define WGL_AUX3_ARB 0x208A
00397 #define WGL_AUX4_ARB 0x208B
00398 #define WGL_AUX5_ARB 0x208C
00399 #define WGL_AUX6_ARB 0x208D
00400 #define WGL_AUX7_ARB 0x208E
00401 #define WGL_AUX8_ARB 0x208F
00402 #define WGL_AUX9_ARB 0x2090
00403 typedef BOOL (APIENTRY * wglBindTexImageARBProc) (HPBUFFERARB hPbuffer, int iBuffer);
00404 typedef BOOL (APIENTRY * wglReleaseTexImageARBProc) (HPBUFFERARB hPbuffer, int iBuffer);
00405 typedef BOOL (APIENTRY * wglSetPbufferAttribARBProc) (HPBUFFERARB hPbuffer, const int *piAttribList);
00406 #endif
00407
00408 #elif !defined(__APPLE__)
00409
00410
00411 #include <GL/glx.h>
00412
00413 #ifndef GLX_ARB_multisample
00414 #define GLX_ARB_multisample1
00415 #define GLX_SAMPLE_BUFFERS_ARB 100001
00416 #define GLX_SAMPLES_ARB 100000
00417 #endif
00418
00419 #ifndef GLX_SGIX_pbuffer
00420 #define GLX_SGIX_pbuffer 1
00421 #define GLX_DOUBLEBUFFER 5
00422 #define GLX_AUX_BUFFERS 0x00000010
00423 #endif
00424
00425 #ifndef GLXPbuffer
00426 # ifdef GLXPbufferSGIX
00427 # define GLXPbuffer GLXPbufferSGIX
00428 # endif
00429 #endif
00430 #ifndef GLXFBConfig
00431 # ifdef GLXFBConfigSGIX
00432 # define GLXFBConfig GLXFBConfigSGIX
00433 # endif
00434 #endif
00435
00436 typedef GLXFBConfig *(*glXChooseFBConfigProc) (Display *dpy, int screen, int *attribList, int *nitems);
00437 typedef GLXPbuffer (*glXCreateGLXPbufferProc) (Display *dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list);
00438 typedef GLXPbuffer (*glXCreatePbufferProc) (Display *dpy, GLXFBConfig config, int *attrib_list);
00439 typedef XVisualInfo *(*glXGetVisualFromFBConfigProc) (Display *dpy, GLXFBConfig config);
00440 typedef GLXContext (*glXCreateContextWithConfigProc) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
00441 typedef GLXContext (*glXCreateContextProc) (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
00442 typedef void (*glXDestroyPbufferProc) (Display *dpy, GLXPbuffer pbuf);
00443 typedef int (*glXQueryGLXPbufferSGIXProc) (Display *, GLXPbuffer, int, unsigned int *);
00444 typedef void (*glXQueryDrawableProc) (Display *, GLXDrawable, int, unsigned int *);
00445 #endif
00446
00447
00448
00449
00450
00451
00452
00453
00454 #ifndef GL_NV_texture_rectangle
00455 #define GL_NV_texture_rectangle 1
00456 #define GL_TEXTURE_RECTANGLE_NV 0x84F5
00457 #define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6
00458 #define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7
00459 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8
00460 #endif
00461
00462
00463
00464
00465
00466 #ifndef GL_EXT_texture_rectangle
00467 #define GL_EXT_texture_rectangle 1
00468 #define GL_TEXTURE_RECTANGLE_EXT 0x84F5
00469 #define GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6
00470 #define GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7
00471 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT 0x84F8
00472 #endif
00473
00474
00475
00476
00477
00478 #ifndef WGL_NV_texture_rectangle
00479 #define WGL_NV_texture_rectangle 1
00480 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
00481 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
00482 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
00483 #endif
00484
00485
00486
00487
00488
00489 #ifndef WGL_NV_render_depth_texture
00490 #define WGL_NV_render_depth_texture 1
00491 #define WGL_NO_TEXTURE_ARB 0x2077
00492 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
00493 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
00494 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
00495 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
00496 #define WGL_DEPTH_COMPONENT_NV 0x20A7
00497 #endif
00498
00499
00500
00501
00502 #ifndef GL_NV_float_buffer
00503 #define GL_NV_float_buffer 1
00504 #define GL_FLOAT_R_NV 0x8880
00505 #define GL_FLOAT_RG_NV 0x8881
00506 #define GL_FLOAT_RGB_NV 0x8882
00507 #define GL_FLOAT_RGBA_NV 0x8883
00508 #define GL_FLOAT_R16_NV 0x8884
00509 #define GL_FLOAT_R32_NV 0x8885
00510 #define GL_FLOAT_RG16_NV 0x8886
00511 #define GL_FLOAT_RG32_NV 0x8887
00512 #define GL_FLOAT_RGB16_NV 0x8888
00513 #define GL_FLOAT_RGB32_NV 0x8889
00514 #define GL_FLOAT_RGBA16_NV 0x888A
00515 #define GL_FLOAT_RGBA32_NV 0x888B
00516 #define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C
00517 #define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
00518 #define GL_FLOAT_RGBA_MODE_NV 0x888E
00519 #endif
00520 #ifndef GLX_NV_float_buffer
00521 #define GLX_NV_float_buffer 1
00522 #define GLX_FLOAT_COMPONENTS_NV 0x20B0
00523 #define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00524 #define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00525 #define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00526 #define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00527 #define GLX_TEXTURE_FLOAT_R_NV 0x20B5
00528 #define GLX_TEXTURE_FLOAT_RG_NV 0x20B6
00529 #define GLX_TEXTURE_FLOAT_RGB_NV 0x20B7
00530 #define GLX_TEXTURE_FLOAT_RGBA_NV 0x20B8
00531 #endif
00532 #ifndef WGL_NV_float_buffer
00533 #define WGL_NV_float_buffer 1
00534 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
00535 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00536 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00537 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00538 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00539 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
00540 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
00541 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
00542 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
00543 #endif
00544
00545
00546
00547
00548
00549
00550
00551 #ifndef WGL_ATI_pixel_format_float
00552 #define WGL_ATI_pixel_format_float 1
00553 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
00554 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
00555 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00556 #endif
00557
00558
00559
00560
00561 #ifndef GL_ATI_texture_float
00562 #define GL_ATI_texture_float 1
00563 #define GL_RGBA_FLOAT32_ATI 0x8814
00564 #define GL_RGB_FLOAT32_ATI 0x8815
00565 #define GL_ALPHA_FLOAT32_ATI 0x8816
00566 #define GL_INTENSITY_FLOAT32_ATI 0x8817
00567 #define GL_LUMINANCE_FLOAT32_ATI 0x8818
00568 #define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819
00569 #define GL_RGBA_FLOAT16_ATI 0x881A
00570 #define GL_RGB_FLOAT16_ATI 0x881B
00571 #define GL_ALPHA_FLOAT16_ATI 0x881C
00572 #define GL_INTENSITY_FLOAT16_ATI 0x881D
00573 #define GL_LUMINANCE_FLOAT16_ATI 0x881E
00574 #define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F
00575 #endif
00576
00577
00578
00579
00580 #ifndef GL_ARB_point_sprite
00581 #define GL_ARB_point_sprite 1
00582 #define GL_POINT_SPRITE_ARB 0x8861
00583 #define GL_COORD_REPLACE_ARB 0x8862
00584 #endif
00585
00586 #ifndef GL_NV_point_sprite
00587 #define GL_NV_point_sprite 1
00588 #define GL_POINT_SPRITE_NV 0x8861
00589 #define GL_COORD_REPLACE_NV 0x8862
00590 #define GL_POINT_SPRITE_R_MODE_NV 0x8863
00591 #endif
00592
00593 #ifndef GL_VERSION_2_0
00594 #define GL_POINT_SPRITE 0x8861
00595 #define GL_COORD_REPLACE 0x8862
00596 #endif
00597
00598
00599
00600
00601 #ifndef GL_ARB_vertex_program
00602 #define GL_ARB_vertex_program 1
00603 #define GL_COLOR_SUM_ARB 0x8458
00604 #define GL_VERTEX_PROGRAM_ARB 0x8620
00605 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
00606 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
00607 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
00608 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
00609 #define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
00610 #define GL_PROGRAM_LENGTH_ARB 0x8627
00611 #define GL_PROGRAM_STRING_ARB 0x8628
00612 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
00613 #define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
00614 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
00615 #define GL_CURRENT_MATRIX_ARB 0x8641
00616 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
00617 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
00618 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
00619 #define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
00620 #define GL_PROGRAM_BINDING_ARB 0x8677
00621 #define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
00622 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
00623 #define GL_PROGRAM_ERROR_STRING_ARB 0x8874
00624 #define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
00625 #define GL_PROGRAM_FORMAT_ARB 0x8876
00626 #define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
00627 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
00628 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
00629 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
00630 #define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
00631 #define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
00632 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
00633 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
00634 #define GL_PROGRAM_PARAMETERS_ARB 0x88A8
00635 #define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
00636 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
00637 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
00638 #define GL_PROGRAM_ATTRIBS_ARB 0x88AC
00639 #define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
00640 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
00641 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
00642 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
00643 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
00644 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
00645 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
00646 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
00647 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
00648 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
00649 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
00650 #define GL_MATRIX0_ARB 0x88C0
00651 #define GL_MATRIX1_ARB 0x88C1
00652 #define GL_MATRIX2_ARB 0x88C2
00653 #define GL_MATRIX3_ARB 0x88C3
00654 #define GL_MATRIX4_ARB 0x88C4
00655 #define GL_MATRIX5_ARB 0x88C5
00656 #define GL_MATRIX6_ARB 0x88C6
00657 #define GL_MATRIX7_ARB 0x88C7
00658 #define GL_MATRIX8_ARB 0x88C8
00659 #define GL_MATRIX9_ARB 0x88C9
00660 #define GL_MATRIX10_ARB 0x88CA
00661 #define GL_MATRIX11_ARB 0x88CB
00662 #define GL_MATRIX12_ARB 0x88CC
00663 #define GL_MATRIX13_ARB 0x88CD
00664 #define GL_MATRIX14_ARB 0x88CE
00665 #define GL_MATRIX15_ARB 0x88CF
00666 #define GL_MATRIX16_ARB 0x88D0
00667 #define GL_MATRIX17_ARB 0x88D1
00668 #define GL_MATRIX18_ARB 0x88D2
00669 #define GL_MATRIX19_ARB 0x88D3
00670 #define GL_MATRIX20_ARB 0x88D4
00671 #define GL_MATRIX21_ARB 0x88D5
00672 #define GL_MATRIX22_ARB 0x88D6
00673 #define GL_MATRIX23_ARB 0x88D7
00674 #define GL_MATRIX24_ARB 0x88D8
00675 #define GL_MATRIX25_ARB 0x88D9
00676 #define GL_MATRIX26_ARB 0x88DA
00677 #define GL_MATRIX27_ARB 0x88DB
00678 #define GL_MATRIX28_ARB 0x88DC
00679 #define GL_MATRIX29_ARB 0x88DD
00680 #define GL_MATRIX30_ARB 0x88DE
00681 #define GL_MATRIX31_ARB 0x88DF
00682 #endif
00683
00684
00685
00686
00687 #ifndef GL_ARB_fragment_program
00688 #define GL_ARB_fragment_program 1
00689 #define GL_FRAGMENT_PROGRAM_ARB 0x8804
00690 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
00691 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
00692 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
00693 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
00694 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
00695 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
00696 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
00697 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
00698 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
00699 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
00700 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
00701 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
00702 #define GL_MAX_TEXTURE_COORDS_ARB 0x8871
00703 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
00704 #endif
00705
00706 typedef void (APIENTRY * glVertexAttrib1dProc) (GLuint index, GLdouble x);
00707 typedef void (APIENTRY * glVertexAttrib1dvProc) (GLuint index, const GLdouble *v);
00708 typedef void (APIENTRY * glVertexAttrib1fProc) (GLuint index, GLfloat x);
00709 typedef void (APIENTRY * glVertexAttrib1fvProc) (GLuint index, const GLfloat *v);
00710 typedef void (APIENTRY * glVertexAttrib1sProc) (GLuint index, GLshort x);
00711 typedef void (APIENTRY * glVertexAttrib1svProc) (GLuint index, const GLshort *v);
00712 typedef void (APIENTRY * glVertexAttrib2dProc) (GLuint index, GLdouble x, GLdouble y);
00713 typedef void (APIENTRY * glVertexAttrib2dvProc) (GLuint index, const GLdouble *v);
00714 typedef void (APIENTRY * glVertexAttrib2fProc) (GLuint index, GLfloat x, GLfloat y);
00715 typedef void (APIENTRY * glVertexAttrib2fvProc) (GLuint index, const GLfloat *v);
00716 typedef void (APIENTRY * glVertexAttrib2sProc) (GLuint index, GLshort x, GLshort y);
00717 typedef void (APIENTRY * glVertexAttrib2svProc) (GLuint index, const GLshort *v);
00718 typedef void (APIENTRY * glVertexAttrib3dProc) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
00719 typedef void (APIENTRY * glVertexAttrib3dvProc) (GLuint index, const GLdouble *v);
00720 typedef void (APIENTRY * glVertexAttrib3fProc) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
00721 typedef void (APIENTRY * glVertexAttrib3fvProc) (GLuint index, const GLfloat *v);
00722 typedef void (APIENTRY * glVertexAttrib3sProc) (GLuint index, GLshort x, GLshort y, GLshort z);
00723 typedef void (APIENTRY * glVertexAttrib3svProc) (GLuint index, const GLshort *v);
00724 typedef void (APIENTRY * glVertexAttrib4NbvProc) (GLuint index, const GLbyte *v);
00725 typedef void (APIENTRY * glVertexAttrib4NivProc) (GLuint index, const GLint *v);
00726 typedef void (APIENTRY * glVertexAttrib4NsvProc) (GLuint index, const GLshort *v);
00727 typedef void (APIENTRY * glVertexAttrib4NubProc) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
00728 typedef void (APIENTRY * glVertexAttrib4NubvProc) (GLuint index, const GLubyte *v);
00729 typedef void (APIENTRY * glVertexAttrib4NuivProc) (GLuint index, const GLuint *v);
00730 typedef void (APIENTRY * glVertexAttrib4NusvProc) (GLuint index, const GLushort *v);
00731 typedef void (APIENTRY * glVertexAttrib4bvProc) (GLuint index, const GLbyte *v);
00732 typedef void (APIENTRY * glVertexAttrib4dProc) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
00733 typedef void (APIENTRY * glVertexAttrib4dvProc) (GLuint index, const GLdouble *v);
00734 typedef void (APIENTRY * glVertexAttrib4fProc) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
00735 typedef void (APIENTRY * glVertexAttrib4fvProc) (GLuint index, const GLfloat *v);
00736 typedef void (APIENTRY * glVertexAttrib4ivProc) (GLuint index, const GLint *v);
00737 typedef void (APIENTRY * glVertexAttrib4sProc) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
00738 typedef void (APIENTRY * glVertexAttrib4svProc) (GLuint index, const GLshort *v);
00739 typedef void (APIENTRY * glVertexAttrib4ubvProc) (GLuint index, const GLubyte *v);
00740 typedef void (APIENTRY * glVertexAttrib4uivProc) (GLuint index, const GLuint *v);
00741 typedef void (APIENTRY * glVertexAttrib4usvProc) (GLuint index, const GLushort *v);
00742 typedef void (APIENTRY * glVertexAttribPointerProc) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
00743 typedef void (APIENTRY * glEnableVertexAttribArrayProc) (GLuint index);
00744 typedef void (APIENTRY * glDisableVertexAttribArrayProc) (GLuint index);
00745 typedef void (APIENTRY * glProgramStringProc) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
00746 typedef void (APIENTRY * glBindProgramProc) (GLenum target, GLuint program);
00747 typedef void (APIENTRY * glDeleteProgramsProc) (GLsizei n, const GLuint *programs);
00748 typedef void (APIENTRY * glGenProgramsProc) (GLsizei n, GLuint *programs);
00749 typedef void (APIENTRY * glProgramEnvParameter4dProc) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
00750 typedef void (APIENTRY * glProgramEnvParameter4dvProc) (GLenum target, GLuint index, const GLdouble *params);
00751 typedef void (APIENTRY * glProgramEnvParameter4fProc) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
00752 typedef void (APIENTRY * glProgramEnvParameter4fvProc) (GLenum target, GLuint index, const GLfloat *params);
00753 typedef void (APIENTRY * glProgramLocalParameter4dProc) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
00754 typedef void (APIENTRY * glProgramLocalParameter4dvProc) (GLenum target, GLuint index, const GLdouble *params);
00755 typedef void (APIENTRY * glProgramLocalParameter4fProc) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
00756 typedef void (APIENTRY * glProgramLocalParameter4fvProc) (GLenum target, GLuint index, const GLfloat *params);
00757 typedef void (APIENTRY * glGetProgramEnvParameterdvProc) (GLenum target, GLuint index, GLdouble *params);
00758 typedef void (APIENTRY * glGetProgramEnvParameterfvProc) (GLenum target, GLuint index, GLfloat *params);
00759 typedef void (APIENTRY * glGetProgramLocalParameterdvProc) (GLenum target, GLuint index, GLdouble *params);
00760 typedef void (APIENTRY * glGetProgramLocalParameterfvProc) (GLenum target, GLuint index, GLfloat *params);
00761 typedef void (APIENTRY * glGetProgramivProc) (GLenum target, GLenum pname, GLint *params);
00762 typedef void (APIENTRY * glGetProgramStringProc) (GLenum target, GLenum pname, GLvoid *string);
00763 typedef void (APIENTRY * glGetVertexAttribdvProc) (GLuint index, GLenum pname, GLdouble *params);
00764 typedef void (APIENTRY * glGetVertexAttribfvProc) (GLuint index, GLenum pname, GLfloat *params);
00765 typedef void (APIENTRY * glGetVertexAttribivProc) (GLuint index, GLenum pname, GLint *params);
00766 typedef void (APIENTRY * glGetVertexAttribPointervProc) (GLuint index, GLenum pname, GLvoid* *pointer);
00767 typedef GLboolean (APIENTRY * glIsProgramProc) (GLuint program);
00768
00769
00770
00771
00772 #ifndef GL_ARB_shader_objects
00773 #define GL_ARB_shader_objects 1
00774
00775 typedef char GLcharARB;
00776 typedef unsigned int GLhandleARB;
00777
00778 #define GL_PROGRAM_OBJECT_ARB 0x8B40
00779 #define GL_SHADER_OBJECT_ARB 0x8B48
00780 #define GL_OBJECT_TYPE_ARB 0x8B4E
00781 #define GL_OBJECT_SUBTYPE_ARB 0x8B4F
00782 #define GL_FLOAT_VEC2_ARB 0x8B50
00783 #define GL_FLOAT_VEC3_ARB 0x8B51
00784 #define GL_FLOAT_VEC4_ARB 0x8B52
00785 #define GL_INT_VEC2_ARB 0x8B53
00786 #define GL_INT_VEC3_ARB 0x8B54
00787 #define GL_INT_VEC4_ARB 0x8B55
00788 #define GL_BOOL_ARB 0x8B56
00789 #define GL_BOOL_VEC2_ARB 0x8B57
00790 #define GL_BOOL_VEC3_ARB 0x8B58
00791 #define GL_BOOL_VEC4_ARB 0x8B59
00792 #define GL_FLOAT_MAT2_ARB 0x8B5A
00793 #define GL_FLOAT_MAT3_ARB 0x8B5B
00794 #define GL_FLOAT_MAT4_ARB 0x8B5C
00795 #define GL_SAMPLER_1D_ARB 0x8B5D
00796 #define GL_SAMPLER_2D_ARB 0x8B5E
00797 #define GL_SAMPLER_3D_ARB 0x8B5F
00798 #define GL_SAMPLER_CUBE_ARB 0x8B60
00799 #define GL_SAMPLER_1D_SHADOW_ARB 0x8B61
00800 #define GL_SAMPLER_2D_SHADOW_ARB 0x8B62
00801 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
00802 #define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
00803 #define GL_OBJECT_DELETE_STATUS_ARB 0x8B80
00804 #define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
00805 #define GL_OBJECT_LINK_STATUS_ARB 0x8B82
00806 #define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83
00807 #define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
00808 #define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85
00809 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86
00810 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
00811 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
00812 #endif
00813
00814 typedef void (APIENTRY * glDeleteObjectProc) (GLhandleARB obj);
00815 typedef GLhandleARB (APIENTRY * glGetHandleProc) (GLenum pname);
00816 typedef void (APIENTRY * glDetachObjectProc) (GLhandleARB containerObj, GLhandleARB attachedObj);
00817 typedef GLhandleARB (APIENTRY * glCreateShaderObjectProc) (GLenum shaderType);
00818 typedef void (APIENTRY * glShaderSourceProc) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
00819 typedef void (APIENTRY * glCompileShaderProc) (GLhandleARB shaderObj);
00820 typedef GLhandleARB (APIENTRY * glCreateProgramObjectProc) (void);
00821 typedef void (APIENTRY * glAttachObjectProc) (GLhandleARB containerObj, GLhandleARB obj);
00822 typedef void (APIENTRY * glLinkProgramProc) (GLhandleARB programObj);
00823 typedef void (APIENTRY * glUseProgramObjectProc) (GLhandleARB programObj);
00824 typedef void (APIENTRY * glValidateProgramProc) (GLhandleARB programObj);
00825 typedef void (APIENTRY * glUniform1fProc) (GLint location, GLfloat v0);
00826 typedef void (APIENTRY * glUniform2fProc) (GLint location, GLfloat v0, GLfloat v1);
00827 typedef void (APIENTRY * glUniform3fProc) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
00828 typedef void (APIENTRY * glUniform4fProc) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
00829 typedef void (APIENTRY * glUniform1iProc) (GLint location, GLint v0);
00830 typedef void (APIENTRY * glUniform2iProc) (GLint location, GLint v0, GLint v1);
00831 typedef void (APIENTRY * glUniform3iProc) (GLint location, GLint v0, GLint v1, GLint v2);
00832 typedef void (APIENTRY * glUniform4iProc) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
00833 typedef void (APIENTRY * glUniform1fvProc) (GLint location, GLsizei count, const GLfloat *value);
00834 typedef void (APIENTRY * glUniform2fvProc) (GLint location, GLsizei count, const GLfloat *value);
00835 typedef void (APIENTRY * glUniform3fvProc) (GLint location, GLsizei count, const GLfloat *value);
00836 typedef void (APIENTRY * glUniform4fvProc) (GLint location, GLsizei count, const GLfloat *value);
00837 typedef void (APIENTRY * glUniform1ivProc) (GLint location, GLsizei count, const GLint *value);
00838 typedef void (APIENTRY * glUniform2ivProc) (GLint location, GLsizei count, const GLint *value);
00839 typedef void (APIENTRY * glUniform3ivProc) (GLint location, GLsizei count, const GLint *value);
00840 typedef void (APIENTRY * glUniform4ivProc) (GLint location, GLsizei count, const GLint *value);
00841 typedef void (APIENTRY * glUniformMatrix2fvProc) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
00842 typedef void (APIENTRY * glUniformMatrix3fvProc) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
00843 typedef void (APIENTRY * glUniformMatrix4fvProc) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
00844 typedef void (APIENTRY * glGetObjectParameterfvProc) (GLhandleARB obj, GLenum pname, GLfloat *params);
00845 typedef void (APIENTRY * glGetObjectParameterivProc) (GLhandleARB obj, GLenum pname, GLint *params);
00846 typedef void (APIENTRY * glGetInfoLogProc) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
00847 typedef void (APIENTRY * glGetAttachedObjectsProc) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
00848 typedef GLint (APIENTRY * glGetUniformLocationProc) (GLhandleARB programObj, const GLcharARB *name);
00849 typedef void (APIENTRY * glGetActiveUniformProc) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
00850 typedef void (APIENTRY * glGetUniformfvProc) (GLhandleARB programObj, GLint location, GLfloat *params);
00851 typedef void (APIENTRY * glGetUniformivProc) (GLhandleARB programObj, GLint location, GLint *params);
00852 typedef void (APIENTRY * glGetShaderSourceProc) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
00853
00854
00855
00856
00857 #ifndef GL_ARB_vertex_shader
00858 #define GL_ARB_vertex_shader 1
00859 #define GL_VERTEX_SHADER_ARB 0x8B31
00860 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
00861 #define GL_MAX_VARYING_FLOATS_ARB 0x8B4B
00862 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
00863 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
00864 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89
00865 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
00866 #endif
00867
00868 typedef void (APIENTRY * glBindAttribLocationProc) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
00869 typedef void (APIENTRY * glGetActiveAttribProc) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
00870 typedef GLint (APIENTRY * glGetAttribLocationProc) (GLhandleARB programObj, const GLcharARB *name);
00871
00872
00873
00874
00875 #ifndef GL_ARB_fragment_shader
00876 #define GL_ARB_fragment_shader1
00877 #define GL_FRAGMENT_SHADER_ARB 0x8B30
00878 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
00879 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
00880 #endif
00881
00882
00883
00884
00885 #ifndef GL_NV_fragment_program
00886 #define GL_NV_fragment_program 1
00887 #define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
00888 #define GL_FRAGMENT_PROGRAM_NV 0x8870
00889 #define GL_MAX_TEXTURE_COORDS_NV 0x8871
00890 #define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872
00891 #define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873
00892 #define GL_PROGRAM_ERROR_STRING_NV 0x8874
00893 #endif
00894 #ifndef GL_NV_vertex_program
00895 #define GL_NV_vertex_program 1
00896 #define GL_VERTEX_PROGRAM_NV 0x8620
00897 #define GL_PROGRAM_ERROR_POSITION_NV 0x864B
00898 #endif
00899
00900 typedef void (APIENTRY * glBindProgramNVProc) (GLenum target, GLuint id);
00901 typedef void (APIENTRY * glDeleteProgramsNVProc) (GLsizei n, const GLuint *programs);
00902 typedef void (APIENTRY * glGenProgramsNVProc) (GLsizei n, GLuint *programs);
00903 typedef void (APIENTRY * glLoadProgramNVProc) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
00904 typedef void (APIENTRY * glProgramParameter4fvNVProc) (GLenum target, GLuint index, const GLfloat *v);
00905
00906 #if defined(__cplusplus)
00907 }
00908 #endif
00909
00910
00911 #endif // !__SG_EXTENSIONS_HXX
00912