Commit f8d3dcb7 authored by hybrid's avatar hybrid

New opengl headers and new extension symbols added to extension handler.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2552 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 03da02bd
...@@ -73,24 +73,41 @@ namespace irr ...@@ -73,24 +73,41 @@ namespace irr
namespace video namespace video
{ {
static const char* const OpenGLFeatureStrings[] = { static const char* const OpenGLFeatureStrings[] = {
"GL_3DFX_multisample", "GL_3DFX_multisample",
"GL_3DFX_tbuffer", "GL_3DFX_tbuffer",
"GL_3DFX_texture_compression_FXT1", "GL_3DFX_texture_compression_FXT1",
"GL_AMD_draw_buffers_blend",
"GL_AMD_performance_monitor",
"GL_AMD_texture_texture4",
"GL_AMD_vertex_shader_tesselator",
"GL_APPLE_aux_depth_stencil",
"GL_APPLE_client_storage", "GL_APPLE_client_storage",
"GL_APPLE_element_array", "GL_APPLE_element_array",
"GL_APPLE_fence", "GL_APPLE_fence",
"GL_APPLE_float_pixels",
"GL_APPLE_flush_buffer_range", "GL_APPLE_flush_buffer_range",
"GL_APPLE_object_purgeable",
"GL_APPLE_row_bytes",
"GL_APPLE_specular_vector", "GL_APPLE_specular_vector",
"GL_APPLE_texture_range",
"GL_APPLE_transform_hint", "GL_APPLE_transform_hint",
"GL_APPLE_vertex_array_object", "GL_APPLE_vertex_array_object",
"GL_APPLE_vertex_array_range", "GL_APPLE_vertex_array_range",
"GL_APPLE_vertex_program_evaluators",
"GL_APPLE_ycbcr_422", "GL_APPLE_ycbcr_422",
"GL_ARB_color_buffer_float", "GL_ARB_color_buffer_float",
"GL_ARB_compatibility",
"GL_ARB_copy_buffer",
"GL_ARB_depth_buffer_float", "GL_ARB_depth_buffer_float",
"GL_ARB_depth_clamp",
"GL_ARB_depth_texture", "GL_ARB_depth_texture",
"GL_ARB_draw_buffers", "GL_ARB_draw_buffers",
"GL_ARB_draw_buffers_blend",
"GL_ARB_draw_elements_base_vertex",
"GL_ARB_draw_instanced", "GL_ARB_draw_instanced",
"GL_ARB_fragment_coord_conventions",
"GL_ARB_fragment_program", "GL_ARB_fragment_program",
"GL_ARB_fragment_program_shadow", "GL_ARB_fragment_program_shadow",
"GL_ARB_fragment_shader", "GL_ARB_fragment_shader",
...@@ -109,25 +126,36 @@ static const char* const OpenGLFeatureStrings[] = { ...@@ -109,25 +126,36 @@ static const char* const OpenGLFeatureStrings[] = {
"GL_ARB_pixel_buffer_object", "GL_ARB_pixel_buffer_object",
"GL_ARB_point_parameters", "GL_ARB_point_parameters",
"GL_ARB_point_sprite", "GL_ARB_point_sprite",
"GL_ARB_provoking_vertex",
"GL_ARB_sample_shading",
"GL_ARB_seamless_cube_map",
"GL_ARB_shader_objects", "GL_ARB_shader_objects",
"GL_ARB_shader_texture_lod",
"GL_ARB_shading_language_100", "GL_ARB_shading_language_100",
"GL_ARB_shadow", "GL_ARB_shadow",
"GL_ARB_shadow_ambient", "GL_ARB_shadow_ambient",
"GL_ARB_sync",
"GL_ARB_texture_border_clamp", "GL_ARB_texture_border_clamp",
"GL_ARB_texture_buffer_object", "GL_ARB_texture_buffer_object",
"GL_ARB_texture_compression", "GL_ARB_texture_compression",
"GL_ARB_texture_compression_rgtc", "GL_ARB_texture_compression_rgtc",
"GL_ARB_texture_cube_map", "GL_ARB_texture_cube_map",
"GL_ARB_texture_cube_map_array",
"GL_ARB_texture_env_add", "GL_ARB_texture_env_add",
"GL_ARB_texture_env_combine", "GL_ARB_texture_env_combine",
"GL_ARB_texture_env_crossbar", "GL_ARB_texture_env_crossbar",
"GL_ARB_texture_env_dot3", "GL_ARB_texture_env_dot3",
"GL_ARB_texture_float", "GL_ARB_texture_float",
"GL_ARB_texture_gather",
"GL_ARB_texture_mirrored_repeat", "GL_ARB_texture_mirrored_repeat",
"GL_ARB_texture_multisample",
"GL_ARB_texture_non_power_of_two", "GL_ARB_texture_non_power_of_two",
"GL_ARB_texture_query_lod",
"GL_ARB_texture_rectangle", "GL_ARB_texture_rectangle",
"GL_ARB_texture_rg", "GL_ARB_texture_rg",
"GL_ARB_transpose_matrix", "GL_ARB_transpose_matrix",
"GL_ARB_uniform_buffer_object",
"GL_ARB_vertex_array_bgra",
"GL_ARB_vertex_array_object", "GL_ARB_vertex_array_object",
"GL_ARB_vertex_blend", "GL_ARB_vertex_blend",
"GL_ARB_vertex_buffer_object", "GL_ARB_vertex_buffer_object",
...@@ -139,6 +167,7 @@ static const char* const OpenGLFeatureStrings[] = { ...@@ -139,6 +167,7 @@ static const char* const OpenGLFeatureStrings[] = {
"GL_ATI_envmap_bumpmap", "GL_ATI_envmap_bumpmap",
"GL_ATI_fragment_shader", "GL_ATI_fragment_shader",
"GL_ATI_map_object_buffer", "GL_ATI_map_object_buffer",
"GL_ATI_meminfo",
"GL_ATI_pixel_format_float", "GL_ATI_pixel_format_float",
"GL_ATI_pn_triangles", "GL_ATI_pn_triangles",
"GL_ATI_separate_stencil", "GL_ATI_separate_stencil",
...@@ -198,6 +227,7 @@ static const char* const OpenGLFeatureStrings[] = { ...@@ -198,6 +227,7 @@ static const char* const OpenGLFeatureStrings[] = {
"GL_EXT_pixel_transform_color_table", "GL_EXT_pixel_transform_color_table",
"GL_EXT_point_parameters", "GL_EXT_point_parameters",
"GL_EXT_polygon_offset", "GL_EXT_polygon_offset",
"GL_EXT_provoking_vertex",
"GL_EXT_rescale_normal", "GL_EXT_rescale_normal",
"GL_EXT_secondary_color", "GL_EXT_secondary_color",
"GL_EXT_separate_specular_color", "GL_EXT_separate_specular_color",
...@@ -225,6 +255,7 @@ static const char* const OpenGLFeatureStrings[] = { ...@@ -225,6 +255,7 @@ static const char* const OpenGLFeatureStrings[] = {
"GL_EXT_texture_object", "GL_EXT_texture_object",
"GL_EXT_texture_perturb_normal", "GL_EXT_texture_perturb_normal",
"GL_EXT_texture_shared_exponent", "GL_EXT_texture_shared_exponent",
"GL_EXT_texture_snorm",
"GL_EXT_texture_sRGB", "GL_EXT_texture_sRGB",
"GL_EXT_texture_swizzle", "GL_EXT_texture_swizzle",
"GL_EXT_timer_query", "GL_EXT_timer_query",
...@@ -392,20 +423,36 @@ class COpenGLExtensionHandler ...@@ -392,20 +423,36 @@ class COpenGLExtensionHandler
IRR_3DFX_multisample = 0, IRR_3DFX_multisample = 0,
IRR_3DFX_tbuffer, IRR_3DFX_tbuffer,
IRR_3DFX_texture_compression_FXT1, IRR_3DFX_texture_compression_FXT1,
IRR_AMD_draw_buffers_blend,
IRR_AMD_performance_monitor,
IRR_AMD_texture_texture4,
IRR_AMD_vertex_shader_tesselator,
IRR_APPLE_aux_depth_stencil,
IRR_APPLE_client_storage, IRR_APPLE_client_storage,
IRR_APPLE_element_array, IRR_APPLE_element_array,
IRR_APPLE_fence, IRR_APPLE_fence,
IRR_APPLE_float_pixels,
IRR_APPLE_flush_buffer_range, IRR_APPLE_flush_buffer_range,
IRR_APPLE_object_purgeable,
IRR_APPLE_row_bytes,
IRR_APPLE_specular_vector, IRR_APPLE_specular_vector,
IRR_APPLE_texture_range,
IRR_APPLE_transform_hint, IRR_APPLE_transform_hint,
IRR_APPLE_vertex_array_object, IRR_APPLE_vertex_array_object,
IRR_APPLE_vertex_array_range, IRR_APPLE_vertex_array_range,
IRR_APPLE_vertex_program_evaluators,
IRR_APPLE_ycbcr_422, IRR_APPLE_ycbcr_422,
IRR_ARB_color_buffer_float, IRR_ARB_color_buffer_float,
IRR_ARB_compatibility,
IRR_ARB_copy_buffer,
IRR_ARB_depth_buffer_float, IRR_ARB_depth_buffer_float,
IRR_ARB_depth_clamp,
IRR_ARB_depth_texture, IRR_ARB_depth_texture,
IRR_ARB_draw_buffers, IRR_ARB_draw_buffers,
IRR_ARB_draw_buffers_blend,
IRR_ARB_draw_elements_base_vertex,
IRR_ARB_draw_instanced, IRR_ARB_draw_instanced,
IRR_ARB_fragment_coord_conventions,
IRR_ARB_fragment_program, IRR_ARB_fragment_program,
IRR_ARB_fragment_program_shadow, IRR_ARB_fragment_program_shadow,
IRR_ARB_fragment_shader, IRR_ARB_fragment_shader,
...@@ -424,25 +471,36 @@ class COpenGLExtensionHandler ...@@ -424,25 +471,36 @@ class COpenGLExtensionHandler
IRR_ARB_pixel_buffer_object, IRR_ARB_pixel_buffer_object,
IRR_ARB_point_parameters, IRR_ARB_point_parameters,
IRR_ARB_point_sprite, IRR_ARB_point_sprite,
IRR_ARB_provoking_vertex,
IRR_ARB_sample_shading,
IRR_ARB_seamless_cube_map,
IRR_ARB_shader_objects, IRR_ARB_shader_objects,
IRR_ARB_shader_texture_lod,
IRR_ARB_shading_language_100, IRR_ARB_shading_language_100,
IRR_ARB_shadow, IRR_ARB_shadow,
IRR_ARB_shadow_ambient, IRR_ARB_shadow_ambient,
IRR_ARB_sync,
IRR_ARB_texture_border_clamp, IRR_ARB_texture_border_clamp,
IRR_ARB_texture_buffer_object, IRR_ARB_texture_buffer_object,
IRR_ARB_texture_compression, IRR_ARB_texture_compression,
IRR_ARB_texture_compression_rgtc, IRR_ARB_texture_compression_rgtc,
IRR_ARB_texture_cube_map, IRR_ARB_texture_cube_map,
IRR_ARB_texture_cube_map_array,
IRR_ARB_texture_env_add, IRR_ARB_texture_env_add,
IRR_ARB_texture_env_combine, IRR_ARB_texture_env_combine,
IRR_ARB_texture_env_crossbar, IRR_ARB_texture_env_crossbar,
IRR_ARB_texture_env_dot3, IRR_ARB_texture_env_dot3,
IRR_ARB_texture_float, IRR_ARB_texture_float,
IRR_ARB_texture_gather,
IRR_ARB_texture_mirrored_repeat, IRR_ARB_texture_mirrored_repeat,
IRR_ARB_texture_multisample,
IRR_ARB_texture_non_power_of_two, IRR_ARB_texture_non_power_of_two,
IRR_ARB_texture_query_lod,
IRR_ARB_texture_rectangle, IRR_ARB_texture_rectangle,
IRR_ARB_texture_rg, IRR_ARB_texture_rg,
IRR_ARB_transpose_matrix, IRR_ARB_transpose_matrix,
IRR_ARB_uniform_buffer_object,
IRR_ARB_vertex_array_bgra,
IRR_ARB_vertex_array_object, IRR_ARB_vertex_array_object,
IRR_ARB_vertex_blend, IRR_ARB_vertex_blend,
IRR_ARB_vertex_buffer_object, IRR_ARB_vertex_buffer_object,
...@@ -454,6 +512,7 @@ class COpenGLExtensionHandler ...@@ -454,6 +512,7 @@ class COpenGLExtensionHandler
IRR_ATI_envmap_bumpmap, IRR_ATI_envmap_bumpmap,
IRR_ATI_fragment_shader, IRR_ATI_fragment_shader,
IRR_ATI_map_object_buffer, IRR_ATI_map_object_buffer,
IRR_ATI_meminfo,
IRR_ATI_pixel_format_float, IRR_ATI_pixel_format_float,
IRR_ATI_pn_triangles, IRR_ATI_pn_triangles,
IRR_ATI_separate_stencil, IRR_ATI_separate_stencil,
...@@ -513,6 +572,7 @@ class COpenGLExtensionHandler ...@@ -513,6 +572,7 @@ class COpenGLExtensionHandler
IRR_EXT_pixel_transform_color_table, IRR_EXT_pixel_transform_color_table,
IRR_EXT_point_parameters, IRR_EXT_point_parameters,
IRR_EXT_polygon_offset, IRR_EXT_polygon_offset,
IRR_EXT_provoking_vertex,
IRR_EXT_rescale_normal, IRR_EXT_rescale_normal,
IRR_EXT_secondary_color, IRR_EXT_secondary_color,
IRR_EXT_separate_specular_color, IRR_EXT_separate_specular_color,
...@@ -540,6 +600,7 @@ class COpenGLExtensionHandler ...@@ -540,6 +600,7 @@ class COpenGLExtensionHandler
IRR_EXT_texture_object, IRR_EXT_texture_object,
IRR_EXT_texture_perturb_normal, IRR_EXT_texture_perturb_normal,
IRR_EXT_texture_shared_exponent, IRR_EXT_texture_shared_exponent,
IRR_EXT_texture_snorm,
IRR_EXT_texture_sRGB, IRR_EXT_texture_sRGB,
IRR_EXT_texture_swizzle, IRR_EXT_texture_swizzle,
IRR_EXT_timer_query, IRR_EXT_timer_query,
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ extern "C" { ...@@ -6,7 +6,7 @@ extern "C" {
#endif #endif
/* /*
** Copyright (c) 2007 The Khronos Group Inc. ** Copyright (c) 2007-2009 The Khronos Group Inc.
** **
** Permission is hereby granted, free of charge, to any person obtaining a ** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the ** copy of this software and/or associated documentation files (the
...@@ -28,6 +28,8 @@ extern "C" { ...@@ -28,6 +28,8 @@ extern "C" {
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
*/ */
/* Function declaration macros - to move into glplatform.h */
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
#define WIN32_LEAN_AND_MEAN 1 #define WIN32_LEAN_AND_MEAN 1
#include <windows.h> #include <windows.h>
...@@ -46,9 +48,9 @@ extern "C" { ...@@ -46,9 +48,9 @@ extern "C" {
/*************************************************************/ /*************************************************************/
/* Header file version number, required by OpenGL ABI for Linux */ /* Header file version number, required by OpenGL ABI for Linux */
/* glxext.h last updated 2008/10/22 */ /* glxext.h last updated 2009/08/03 */
/* Current version at http://www.opengl.org/registry/ */ /* Current version at http://www.opengl.org/registry/ */
#define GLX_GLXEXT_VERSION 21 #define GLX_GLXEXT_VERSION 23
#ifndef GLX_VERSION_1_3 #ifndef GLX_VERSION_1_3
#define GLX_WINDOW_BIT 0x00000001 #define GLX_WINDOW_BIT 0x00000001
...@@ -135,6 +137,12 @@ extern "C" { ...@@ -135,6 +137,12 @@ extern "C" {
#define GLX_CONTEXT_FLAGS_ARB 0x2094 #define GLX_CONTEXT_FLAGS_ARB 0x2094
#endif #endif
#ifndef GLX_ARB_create_context_profile
#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
#endif
#ifndef GLX_SGIS_multisample #ifndef GLX_SGIS_multisample
#define GLX_SAMPLE_BUFFERS_SGIS 100000 #define GLX_SAMPLE_BUFFERS_SGIS 100000
#define GLX_SAMPLES_SGIS 100001 #define GLX_SAMPLES_SGIS 100001
...@@ -518,6 +526,10 @@ extern GLXContext glXCreateContextAttribsARB (Display *, GLXFBConfig, GLXContext ...@@ -518,6 +526,10 @@ extern GLXContext glXCreateContextAttribsARB (Display *, GLXFBConfig, GLXContext
typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
#endif #endif
#ifndef GLX_ARB_create_context_profile
#define GLX_ARB_create_context_profile 1
#endif
#ifndef GLX_SGIS_multisample #ifndef GLX_SGIS_multisample
#define GLX_SGIS_multisample 1 #define GLX_SGIS_multisample 1
#endif #endif
......
...@@ -6,7 +6,7 @@ extern "C" { ...@@ -6,7 +6,7 @@ extern "C" {
#endif #endif
/* /*
** Copyright (c) 2007 The Khronos Group Inc. ** Copyright (c) 2007-2009 The Khronos Group Inc.
** **
** Permission is hereby granted, free of charge, to any person obtaining a ** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the ** copy of this software and/or associated documentation files (the
...@@ -28,6 +28,8 @@ extern "C" { ...@@ -28,6 +28,8 @@ extern "C" {
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
*/ */
/* Function declaration macros - to move into glplatform.h */
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
#define WIN32_LEAN_AND_MEAN 1 #define WIN32_LEAN_AND_MEAN 1
#include <windows.h> #include <windows.h>
...@@ -46,9 +48,9 @@ extern "C" { ...@@ -46,9 +48,9 @@ extern "C" {
/*************************************************************/ /*************************************************************/
/* Header file version number */ /* Header file version number */
/* wglext.h last updated 2008/10/07 */ /* wglext.h last updated 2009/08/03 */
/* Current version at http://www.opengl.org/registry/ */ /* Current version at http://www.opengl.org/registry/ */
#define WGL_WGLEXT_VERSION 11 #define WGL_WGLEXT_VERSION 15
#ifndef WGL_ARB_buffer_region #ifndef WGL_ARB_buffer_region
#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
...@@ -174,8 +176,8 @@ extern "C" { ...@@ -174,8 +176,8 @@ extern "C" {
#endif #endif
#ifndef WGL_ARB_create_context #ifndef WGL_ARB_create_context
#define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001
#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
...@@ -183,6 +185,13 @@ extern "C" { ...@@ -183,6 +185,13 @@ extern "C" {
#define ERROR_INVALID_VERSION_ARB 0x2095 #define ERROR_INVALID_VERSION_ARB 0x2095
#endif #endif
#ifndef WGL_ARB_create_context_profile
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
#define ERROR_INVALID_PROFILE_ARB 0x2096
#endif
#ifndef WGL_EXT_make_current_read #ifndef WGL_EXT_make_current_read
#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
#endif #endif
...@@ -366,6 +375,19 @@ extern "C" { ...@@ -366,6 +375,19 @@ extern "C" {
#define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
#endif #endif
#ifndef WGL_AMD_gpu_association
#define WGL_GPU_VENDOR_AMD 0x1F00
#define WGL_GPU_RENDERER_STRING_AMD 0x1F01
#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
#define WGL_GPU_RAM_AMD 0x21A3
#define WGL_GPU_CLOCK_AMD 0x21A4
#define WGL_GPU_NUM_PIPES_AMD 0x21A5
#define WGL_GPU_NUM_SIMD_AMD 0x21A6
#define WGL_GPU_NUM_RB_AMD 0x21A7
#define WGL_GPU_NUM_SPI_AMD 0x21A8
#endif
/*************************************************************/ /*************************************************************/
...@@ -482,6 +504,10 @@ extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *); ...@@ -482,6 +504,10 @@ extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *);
typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList); typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
#endif #endif
#ifndef WGL_ARB_create_context_profile
#define WGL_ARB_create_context_profile 1
#endif
#ifndef WGL_EXT_display_color_table #ifndef WGL_EXT_display_color_table
#define WGL_EXT_display_color_table 1 #define WGL_EXT_display_color_table 1
#ifdef WGL_WGLEXT_PROTOTYPES #ifdef WGL_WGLEXT_PROTOTYPES
...@@ -696,6 +722,14 @@ typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWO ...@@ -696,6 +722,14 @@ typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWO
#define WGL_NV_float_buffer 1 #define WGL_NV_float_buffer 1
#endif #endif
#ifndef WGL_3DL_stereo_control
#define WGL_3DL_stereo_control 1
#ifdef WGL_WGLEXT_PROTOTYPES
extern BOOL WINAPI wglSetStereoEmitterState3DL (HDC, UINT);
#endif /* WGL_WGLEXT_PROTOTYPES */
typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
#endif
#ifndef WGL_EXT_pixel_format_packed_float #ifndef WGL_EXT_pixel_format_packed_float
#define WGL_EXT_pixel_format_packed_float 1 #define WGL_EXT_pixel_format_packed_float 1
#endif #endif
...@@ -768,6 +802,30 @@ typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UIN ...@@ -768,6 +802,30 @@ typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UIN
typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
#endif #endif
#ifndef WGL_AMD_gpu_association
#define WGL_AMD_gpu_association 1
#ifdef WGL_WGLEXT_PROTOTYPES
extern UINT WINAPI wglGetGPUIDsAMD (UINT, UINT *);
extern INT WINAPI wglGetGPUInfoAMD (UINT, int, GLenum, UINT, void *);
extern UINT WINAPI wglGetContextGPUIDAMD (HGLRC);
extern HGLRC WINAPI wglCreateAssociatedContextAMD (UINT);
extern HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT, HGLRC, const int *);
extern BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC);
extern BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC);
extern HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
extern VOID WINAPI wglBlitContextFramebufferAMD (HGLRC, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
#endif /* WGL_WGLEXT_PROTOTYPES */
typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, int property, GLenum dataType, UINT size, void *data);
typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment