mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #3428 from Sonicadvance1/proper_glextensions
Make GLExtensions no longer require slghtly modified GL headers
This commit is contained in:
commit
0a42a0ab1b
2199
Externals/GL/GL/gl.h
vendored
2199
Externals/GL/GL/gl.h
vendored
File diff suppressed because it is too large
Load Diff
11863
Externals/GL/GL/glext.h
vendored
11863
Externals/GL/GL/glext.h
vendored
File diff suppressed because it is too large
Load Diff
@ -62,6 +62,7 @@
|
||||
<ClInclude Include="Flag.h" />
|
||||
<ClInclude Include="FPURoundMode.h" />
|
||||
<ClInclude Include="GekkoDisassembler.h" />
|
||||
<ClInclude Include="GL\GLExtensions\AMD_pinned_memory.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_blend_func_extended.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_buffer_storage.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_clip_control.h" />
|
||||
@ -69,17 +70,21 @@
|
||||
<ClInclude Include="GL\GLExtensions\ARB_debug_output.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_draw_elements_base_vertex.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_ES2_compatibility.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_ES3_compatibility.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_framebuffer_object.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_get_program_binary.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_map_buffer_range.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_occlusion_query2.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sampler_objects.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sample_shading.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_shader_storage_buffer_object.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sync.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_texture_multisample.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_texture_storage_multisample.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_uniform_buffer_object.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_vertex_array_object.h" />
|
||||
<ClInclude Include="GL\GLExtensions\ARB_viewport_array.h" />
|
||||
<ClInclude Include="GL\GLExtensions\EXT_texture_filter_anisotropic.h" />
|
||||
<ClInclude Include="GL\GLExtensions\GLExtensions.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_1_1.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_1_2.h" />
|
||||
@ -87,10 +92,12 @@
|
||||
<ClInclude Include="GL\GLExtensions\gl_1_4.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_1_5.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_2_0.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_2_1.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_3_0.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_3_1.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_3_2.h" />
|
||||
<ClInclude Include="GL\GLExtensions\gl_common.h" />
|
||||
<ClInclude Include="GL\GLExtensions\HP_occlusion_test.h" />
|
||||
<ClInclude Include="GL\GLExtensions\KHR_debug.h" />
|
||||
<ClInclude Include="GL\GLExtensions\NV_occlusion_query_samples.h" />
|
||||
<ClInclude Include="GL\GLExtensions\NV_primitive_restart.h" />
|
||||
|
@ -87,6 +87,9 @@
|
||||
<ClInclude Include="GL\GLUtil.h">
|
||||
<Filter>GL</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\AMD_pinned_memory.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_blend_func_extended.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
@ -108,6 +111,9 @@
|
||||
<ClInclude Include="GL\GLExtensions\ARB_ES2_compatibility.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_ES3_compatibility.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_framebuffer_object.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
@ -117,12 +123,18 @@
|
||||
<ClInclude Include="GL\GLExtensions\ARB_map_buffer_range.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_occlusion_query2.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sample_shading.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sampler_objects.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_shader_storage_buffer_object.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\ARB_sync.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
@ -141,6 +153,9 @@
|
||||
<ClInclude Include="GL\GLExtensions\ARB_viewport_array.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\EXT_texture_filter_anisotropic.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\gl_1_1.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
@ -159,6 +174,9 @@
|
||||
<ClInclude Include="GL\GLExtensions\gl_2_0.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\gl_2_1.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\gl_3_0.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
@ -174,6 +192,9 @@
|
||||
<ClInclude Include="GL\GLExtensions\GLExtensions.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\HP_occlusion_test.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GL\GLExtensions\KHR_debug.h">
|
||||
<Filter>GL\GLExtensions</Filter>
|
||||
</ClInclude>
|
||||
|
27
Source/Core/Common/GL/GLExtensions/AMD_pinned_memory.h
Normal file
27
Source/Core/Common/GL/GLExtensions/AMD_pinned_memory.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
|
||||
|
@ -1,12 +1,42 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLCLEARDEPTHFPROC glClearDepthf;
|
||||
extern PFNGLDEPTHRANGEFPROC glDepthRangef;
|
||||
extern PFNGLGETSHADERPRECISIONFORMATPROC glGetShaderPrecisionFormat;
|
||||
extern PFNGLRELEASESHADERCOMPILERPROC glReleaseShaderCompiler;
|
||||
extern PFNGLSHADERBINARYPROC glShaderBinary;
|
||||
typedef void (APIENTRYP PFNDOLRELEASESHADERCOMPILERPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
|
||||
typedef void (APIENTRYP PFNDOLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
|
||||
typedef void (APIENTRYP PFNDOLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
|
||||
typedef void (APIENTRYP PFNDOLCLEARDEPTHFPROC) (GLfloat d);
|
||||
|
||||
extern PFNDOLCLEARDEPTHFPROC dolClearDepthf;
|
||||
extern PFNDOLDEPTHRANGEFPROC dolDepthRangef;
|
||||
extern PFNDOLGETSHADERPRECISIONFORMATPROC dolGetShaderPrecisionFormat;
|
||||
extern PFNDOLRELEASESHADERCOMPILERPROC dolReleaseShaderCompiler;
|
||||
extern PFNDOLSHADERBINARYPROC dolShaderBinary;
|
||||
|
||||
#define glClearDepthf dolClearDepthf
|
||||
#define glDepthRangef dolDepthRangef
|
||||
#define glGetShaderPrecisionFormat dolGetShaderPrecisionFormat
|
||||
#define glReleaseShaderCompiler dolReleaseShaderCompiler
|
||||
#define glShaderBinary dolShaderBinary
|
||||
|
39
Source/Core/Common/GL/GLExtensions/ARB_ES3_compatibility.h
Normal file
39
Source/Core/Common/GL/GLExtensions/ARB_ES3_compatibility.h
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
|
||||
#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
|
||||
#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
|
||||
#define GL_MAX_ELEMENT_INDEX 0x8D6B
|
||||
#define GL_COMPRESSED_R11_EAC 0x9270
|
||||
#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
|
||||
#define GL_COMPRESSED_RG11_EAC 0x9272
|
||||
#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
|
||||
#define GL_COMPRESSED_RGB8_ETC2 0x9274
|
||||
#define GL_COMPRESSED_SRGB8_ETC2 0x9275
|
||||
#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
|
||||
#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
|
||||
#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
|
||||
#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
|
@ -1,9 +1,38 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glBindFragDataLocationIndexed;
|
||||
extern PFNGLGETFRAGDATAINDEXPROC glGetFragDataIndex;
|
||||
#define GL_SRC1_COLOR 0x88F9
|
||||
#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
|
||||
#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
|
||||
#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
|
||||
|
||||
typedef void (APIENTRYP PFNDOLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
|
||||
typedef GLint (APIENTRYP PFNDOLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
|
||||
|
||||
extern PFNDOLBINDFRAGDATALOCATIONINDEXEDPROC dolBindFragDataLocationIndexed;
|
||||
extern PFNDOLGETFRAGDATAINDEXPROC dolGetFragDataIndex;
|
||||
|
||||
#define glBindFragDataLocationIndexed dolBindFragDataLocationIndexed
|
||||
#define glGetFragDataIndex dolGetFragDataIndex
|
||||
|
@ -1,9 +1,43 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBUFFERSTORAGEPROC glBufferStorage;
|
||||
extern PFNGLNAMEDBUFFERSTORAGEEXTPROC glNamedBufferStorageEXT;
|
||||
#define GL_MAP_READ_BIT 0x0001
|
||||
#define GL_MAP_WRITE_BIT 0x0002
|
||||
#define GL_MAP_PERSISTENT_BIT 0x00000040
|
||||
#define GL_MAP_COHERENT_BIT 0x00000080
|
||||
#define GL_DYNAMIC_STORAGE_BIT 0x0100
|
||||
#define GL_CLIENT_STORAGE_BIT 0x0200
|
||||
#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
|
||||
#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
|
||||
#define GL_BUFFER_STORAGE_FLAGS 0x8220
|
||||
|
||||
typedef void (APIENTRYP PFNDOLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
|
||||
typedef void (APIENTRYP PFNDOLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
|
||||
|
||||
extern PFNDOLBUFFERSTORAGEPROC dolBufferStorage;
|
||||
extern PFNDOLNAMEDBUFFERSTORAGEEXTPROC dolNamedBufferStorageEXT;
|
||||
|
||||
#define glBufferStorage dolBufferStorage
|
||||
#define glNamedBufferStorageEXT dolNamedBufferStorageEXT
|
||||
|
@ -1,8 +1,35 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLCLIPCONTROLPROC glClipControl;
|
||||
#define GL_NEGATIVE_ONE_TO_ONE 0x935E
|
||||
#define GL_ZERO_TO_ONE 0x935F
|
||||
#define GL_CLIP_ORIGIN 0x935C
|
||||
#define GL_CLIP_DEPTH_MODE 0x935D
|
||||
|
||||
typedef void (APIENTRYP PFNDOLCLIPCONTROLPROC) (GLenum origin, GLenum depth);
|
||||
|
||||
extern PFNDOLCLIPCONTROLPROC dolClipControl;
|
||||
|
||||
#define glClipControl dolClipControl
|
||||
|
@ -1,7 +1,30 @@
|
||||
// Copyright 2015 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData;
|
||||
typedef void (APIENTRYP PFNDOLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
|
||||
|
||||
extern PFNDOLCOPYIMAGESUBDATAPROC dolCopyImageSubData;
|
||||
|
||||
#define glCopyImageSubData dolCopyImageSubData
|
||||
|
@ -1,11 +1,63 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARB;
|
||||
extern PFNGLDEBUGMESSAGECONTROLARBPROC glDebugMessageControlARB;
|
||||
extern PFNGLDEBUGMESSAGEINSERTARBPROC glDebugMessageInsertARB;
|
||||
extern PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB;
|
||||
typedef void (APIENTRYP GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
||||
#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
|
||||
#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
|
||||
#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
|
||||
#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
|
||||
#define GL_DEBUG_SOURCE_API_ARB 0x8246
|
||||
#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
|
||||
#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
|
||||
#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
|
||||
#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
|
||||
#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
|
||||
#define GL_DEBUG_TYPE_ERROR_ARB 0x824C
|
||||
#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
|
||||
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
|
||||
#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
|
||||
#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
|
||||
#define GL_DEBUG_TYPE_OTHER_ARB 0x8251
|
||||
#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
|
||||
#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
|
||||
#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
|
||||
#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
|
||||
#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
|
||||
#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
|
||||
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
|
||||
typedef GLuint (APIENTRYP PFNDOLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
|
||||
|
||||
extern PFNDOLDEBUGMESSAGECALLBACKARBPROC dolDebugMessageCallbackARB;
|
||||
extern PFNDOLDEBUGMESSAGECONTROLARBPROC dolDebugMessageControlARB;
|
||||
extern PFNDOLDEBUGMESSAGEINSERTARBPROC dolDebugMessageInsertARB;
|
||||
extern PFNDOLGETDEBUGMESSAGELOGARBPROC dolGetDebugMessageLogARB;
|
||||
|
||||
#define glDebugMessageCallbackARB dolDebugMessageCallbackARB
|
||||
#define glDebugMessageControlARB dolDebugMessageControlARB
|
||||
#define glDebugMessageInsertARB dolDebugMessageInsertARB
|
||||
#define glGetDebugMessageLogARB dolGetDebugMessageLogARB
|
||||
|
@ -1,11 +1,39 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex;
|
||||
extern PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glDrawElementsInstancedBaseVertex;
|
||||
extern PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex;
|
||||
extern PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glMultiDrawElementsBaseVertex;
|
||||
typedef void (APIENTRYP PFNDOLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
|
||||
|
||||
extern PFNDOLDRAWELEMENTSBASEVERTEXPROC dolDrawElementsBaseVertex;
|
||||
extern PFNDOLDRAWELEMENTSINSTANCEDBASEVERTEXPROC dolDrawElementsInstancedBaseVertex;
|
||||
extern PFNDOLDRAWRANGEELEMENTSBASEVERTEXPROC dolDrawRangeElementsBaseVertex;
|
||||
extern PFNDOLMULTIDRAWELEMENTSBASEVERTEXPROC dolMultiDrawElementsBaseVertex;
|
||||
|
||||
#define glDrawElementsBaseVertex dolDrawElementsBaseVertex
|
||||
#define glDrawElementsInstancedBaseVertex dolDrawElementsInstancedBaseVertex
|
||||
#define glDrawRangeElementsBaseVertex dolDrawRangeElementsBaseVertex
|
||||
#define glMultiDrawElementsBaseVertex dolMultiDrawElementsBaseVertex
|
||||
|
@ -1,27 +1,87 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBINDFRAMEBUFFERPROC glBindFramebuffer;
|
||||
extern PFNGLBINDRENDERBUFFERPROC glBindRenderbuffer;
|
||||
extern PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer;
|
||||
extern PFNGLCHECKFRAMEBUFFERSTATUSPROC glCheckFramebufferStatus;
|
||||
extern PFNGLDELETEFRAMEBUFFERSPROC glDeleteFramebuffers;
|
||||
extern PFNGLDELETERENDERBUFFERSPROC glDeleteRenderbuffers;
|
||||
extern PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer;
|
||||
extern PFNGLFRAMEBUFFERTEXTURE1DPROC glFramebufferTexture1D;
|
||||
extern PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D;
|
||||
extern PFNGLFRAMEBUFFERTEXTURE3DPROC glFramebufferTexture3D;
|
||||
extern PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer;
|
||||
extern PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers;
|
||||
extern PFNGLGENRENDERBUFFERSPROC glGenRenderbuffers;
|
||||
extern PFNGLGENERATEMIPMAPPROC glGenerateMipmap;
|
||||
extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glGetFramebufferAttachmentParameteriv;
|
||||
extern PFNGLGETRENDERBUFFERPARAMETERIVPROC glGetRenderbufferParameteriv;
|
||||
extern PFNGLISFRAMEBUFFERPROC glIsFramebuffer;
|
||||
extern PFNGLISRENDERBUFFERPROC glIsRenderbuffer;
|
||||
extern PFNGLRENDERBUFFERSTORAGEPROC glRenderbufferStorage;
|
||||
extern PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample;
|
||||
typedef void (APIENTRYP PFNDOLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
|
||||
typedef void (APIENTRYP PFNDOLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
|
||||
typedef GLenum (APIENTRYP PFNDOLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
|
||||
typedef void (APIENTRYP PFNDOLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
|
||||
typedef void (APIENTRYP PFNDOLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
|
||||
typedef void (APIENTRYP PFNDOLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
|
||||
typedef void (APIENTRYP PFNDOLGENERATEMIPMAPPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISFRAMEBUFFERPROC) (GLuint framebuffer);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISRENDERBUFFERPROC) (GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRYP PFNDOLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
|
||||
extern PFNDOLBINDFRAMEBUFFERPROC dolBindFramebuffer;
|
||||
extern PFNDOLBINDRENDERBUFFERPROC dolBindRenderbuffer;
|
||||
extern PFNDOLBLITFRAMEBUFFERPROC dolBlitFramebuffer;
|
||||
extern PFNDOLCHECKFRAMEBUFFERSTATUSPROC dolCheckFramebufferStatus;
|
||||
extern PFNDOLDELETEFRAMEBUFFERSPROC dolDeleteFramebuffers;
|
||||
extern PFNDOLDELETERENDERBUFFERSPROC dolDeleteRenderbuffers;
|
||||
extern PFNDOLFRAMEBUFFERRENDERBUFFERPROC dolFramebufferRenderbuffer;
|
||||
extern PFNDOLFRAMEBUFFERTEXTURE1DPROC dolFramebufferTexture1D;
|
||||
extern PFNDOLFRAMEBUFFERTEXTURE2DPROC dolFramebufferTexture2D;
|
||||
extern PFNDOLFRAMEBUFFERTEXTURE3DPROC dolFramebufferTexture3D;
|
||||
extern PFNDOLFRAMEBUFFERTEXTURELAYERPROC dolFramebufferTextureLayer;
|
||||
extern PFNDOLGENFRAMEBUFFERSPROC dolGenFramebuffers;
|
||||
extern PFNDOLGENRENDERBUFFERSPROC dolGenRenderbuffers;
|
||||
extern PFNDOLGENERATEMIPMAPPROC dolGenerateMipmap;
|
||||
extern PFNDOLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC dolGetFramebufferAttachmentParameteriv;
|
||||
extern PFNDOLGETRENDERBUFFERPARAMETERIVPROC dolGetRenderbufferParameteriv;
|
||||
extern PFNDOLISFRAMEBUFFERPROC dolIsFramebuffer;
|
||||
extern PFNDOLISRENDERBUFFERPROC dolIsRenderbuffer;
|
||||
extern PFNDOLRENDERBUFFERSTORAGEPROC dolRenderbufferStorage;
|
||||
extern PFNDOLRENDERBUFFERSTORAGEMULTISAMPLEPROC dolRenderbufferStorageMultisample;
|
||||
|
||||
#define glBindFramebuffer dolBindFramebuffer
|
||||
#define glBindRenderbuffer dolBindRenderbuffer
|
||||
#define glBlitFramebuffer dolBlitFramebuffer
|
||||
#define glCheckFramebufferStatus dolCheckFramebufferStatus
|
||||
#define glDeleteFramebuffers dolDeleteFramebuffers
|
||||
#define glDeleteRenderbuffers dolDeleteRenderbuffers
|
||||
#define glFramebufferRenderbuffer dolFramebufferRenderbuffer
|
||||
#define glFramebufferTexture1D dolFramebufferTexture1D
|
||||
#define glFramebufferTexture2D dolFramebufferTexture2D
|
||||
#define glFramebufferTexture3D dolFramebufferTexture3D
|
||||
#define glFramebufferTextureLayer dolFramebufferTextureLayer
|
||||
#define glGenFramebuffers dolGenFramebuffers
|
||||
#define glGenRenderbuffers dolGenRenderbuffers
|
||||
#define glGenerateMipmap dolGenerateMipmap
|
||||
#define glGetFramebufferAttachmentParameteriv dolGetFramebufferAttachmentParameteriv
|
||||
#define glGetRenderbufferParameteriv dolGetRenderbufferParameteriv
|
||||
#define glIsFramebuffer dolIsFramebuffer
|
||||
#define glIsRenderbuffer dolIsRenderbuffer
|
||||
#define glRenderbufferStorage dolRenderbufferStorage
|
||||
#define glRenderbufferStorageMultisample dolRenderbufferStorageMultisample
|
||||
|
@ -1,10 +1,41 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLGETPROGRAMBINARYPROC glGetProgramBinary;
|
||||
extern PFNGLPROGRAMBINARYPROC glProgramBinary;
|
||||
extern PFNGLPROGRAMPARAMETERIPROC glProgramParameteri;
|
||||
#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
|
||||
#define GL_PROGRAM_BINARY_LENGTH 0x8741
|
||||
#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
|
||||
#define GL_PROGRAM_BINARY_FORMATS 0x87FF
|
||||
|
||||
typedef void (APIENTRYP PFNDOLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
|
||||
typedef void (APIENTRYP PFNDOLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
|
||||
typedef void (APIENTRYP PFNDOLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
|
||||
|
||||
extern PFNDOLGETPROGRAMBINARYPROC dolGetProgramBinary;
|
||||
extern PFNDOLPROGRAMBINARYPROC dolProgramBinary;
|
||||
extern PFNDOLPROGRAMPARAMETERIPROC dolProgramParameteri;
|
||||
|
||||
#define glGetProgramBinary dolGetProgramBinary
|
||||
#define glProgramBinary dolProgramBinary
|
||||
#define glProgramParameteri dolProgramParameteri
|
||||
|
@ -1,9 +1,33 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange;
|
||||
extern PFNGLMAPBUFFERRANGEPROC glMapBufferRange;
|
||||
typedef void *(APIENTRYP PFNDOLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
|
||||
typedef void (APIENTRYP PFNDOLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
|
||||
|
||||
extern PFNDOLFLUSHMAPPEDBUFFERRANGEPROC dolFlushMappedBufferRange;
|
||||
extern PFNDOLMAPBUFFERRANGEPROC dolMapBufferRange;
|
||||
|
||||
#define glFlushMappedBufferRange dolFlushMappedBufferRange
|
||||
#define glMapBufferRange dolMapBufferRange
|
||||
|
26
Source/Core/Common/GL/GLExtensions/ARB_occlusion_query2.h
Normal file
26
Source/Core/Common/GL/GLExtensions/ARB_occlusion_query2.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_ANY_SAMPLES_PASSED 0x8C2F
|
@ -1,8 +1,30 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLMINSAMPLESHADINGARBPROC glMinSampleShading;
|
||||
typedef void (APIENTRYP PFNDOLMINSAMPLESHADINGARBPROC) (GLfloat value);
|
||||
|
||||
extern PFNDOLMINSAMPLESHADINGARBPROC dolMinSampleShading;
|
||||
|
||||
#define glMinSampleShading dolMinSampleShading
|
||||
|
@ -1,21 +1,69 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBINDSAMPLERPROC glBindSampler;
|
||||
extern PFNGLDELETESAMPLERSPROC glDeleteSamplers;
|
||||
extern PFNGLGENSAMPLERSPROC glGenSamplers;
|
||||
extern PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv;
|
||||
extern PFNGLGETSAMPLERPARAMETERIUIVPROC glGetSamplerParameterIuiv;
|
||||
extern PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv;
|
||||
extern PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv;
|
||||
extern PFNGLISSAMPLERPROC glIsSampler;
|
||||
extern PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv;
|
||||
extern PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv;
|
||||
extern PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf;
|
||||
extern PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv;
|
||||
extern PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri;
|
||||
extern PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv;
|
||||
typedef void (APIENTRYP PFNDOLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
|
||||
typedef void (APIENTRYP PFNDOLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISSAMPLERPROC) (GLuint sampler);
|
||||
typedef void (APIENTRYP PFNDOLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
|
||||
typedef void (APIENTRYP PFNDOLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNDOLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
|
||||
|
||||
extern PFNDOLBINDSAMPLERPROC dolBindSampler;
|
||||
extern PFNDOLDELETESAMPLERSPROC dolDeleteSamplers;
|
||||
extern PFNDOLGENSAMPLERSPROC dolGenSamplers;
|
||||
extern PFNDOLGETSAMPLERPARAMETERIIVPROC dolGetSamplerParameterIiv;
|
||||
extern PFNDOLGETSAMPLERPARAMETERIUIVPROC dolGetSamplerParameterIuiv;
|
||||
extern PFNDOLGETSAMPLERPARAMETERFVPROC dolGetSamplerParameterfv;
|
||||
extern PFNDOLGETSAMPLERPARAMETERIVPROC dolGetSamplerParameteriv;
|
||||
extern PFNDOLISSAMPLERPROC dolIsSampler;
|
||||
extern PFNDOLSAMPLERPARAMETERIIVPROC dolSamplerParameterIiv;
|
||||
extern PFNDOLSAMPLERPARAMETERIUIVPROC dolSamplerParameterIuiv;
|
||||
extern PFNDOLSAMPLERPARAMETERFPROC dolSamplerParameterf;
|
||||
extern PFNDOLSAMPLERPARAMETERFVPROC dolSamplerParameterfv;
|
||||
extern PFNDOLSAMPLERPARAMETERIPROC dolSamplerParameteri;
|
||||
extern PFNDOLSAMPLERPARAMETERIVPROC dolSamplerParameteriv;
|
||||
|
||||
#define glBindSampler dolBindSampler
|
||||
#define glDeleteSamplers dolDeleteSamplers
|
||||
#define glGenSamplers dolGenSamplers
|
||||
#define glGetSamplerParameterIiv dolGetSamplerParameterIiv
|
||||
#define glGetSamplerParameterIuiv dolGetSamplerParameterIuiv
|
||||
#define glGetSamplerParameterfv dolGetSamplerParameterfv
|
||||
#define glGetSamplerParameteriv dolGetSamplerParameteriv
|
||||
#define glIsSampler dolIsSampler
|
||||
#define glSamplerParameterIiv dolSamplerParameterIiv
|
||||
#define glSamplerParameterIuiv dolSamplerParameterIuiv
|
||||
#define glSamplerParameterf dolSamplerParameterf
|
||||
#define glSamplerParameterfv dolSamplerParameterfv
|
||||
#define glSamplerParameteri dolSamplerParameteri
|
||||
#define glSamplerParameteriv dolSamplerParameteriv
|
||||
|
@ -0,0 +1,47 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_SHADER_STORAGE_BARRIER_BIT 0x2000
|
||||
#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
|
||||
#define GL_SHADER_STORAGE_BUFFER 0x90D2
|
||||
#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
|
||||
#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
|
||||
#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
|
||||
#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
|
||||
#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
|
||||
#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
|
||||
#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
|
||||
#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
|
||||
#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
|
||||
#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
|
||||
#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
|
||||
#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
|
||||
#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
|
||||
|
||||
typedef void (APIENTRY * PFNDOLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
|
||||
|
||||
extern PFNDOLSHADERSTORAGEBLOCKBINDINGPROC dolShaderStorageBlockBinding;
|
||||
|
||||
#define glShaderStorageBlockBinding dolShaderStorageBlockBinding
|
@ -1,14 +1,49 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLCLIENTWAITSYNCPROC glClientWaitSync;
|
||||
extern PFNGLDELETESYNCPROC glDeleteSync;
|
||||
extern PFNGLFENCESYNCPROC glFenceSync;
|
||||
extern PFNGLGETINTEGER64VPROC glGetInteger64v;
|
||||
extern PFNGLGETSYNCIVPROC glGetSynciv;
|
||||
extern PFNGLISSYNCPROC glIsSync;
|
||||
extern PFNGLWAITSYNCPROC glWaitSync;
|
||||
typedef GLsync (APIENTRYP PFNDOLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISSYNCPROC) (GLsync sync);
|
||||
typedef void (APIENTRYP PFNDOLDELETESYNCPROC) (GLsync sync);
|
||||
typedef GLenum (APIENTRYP PFNDOLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
|
||||
typedef void (APIENTRYP PFNDOLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
|
||||
typedef void (APIENTRYP PFNDOLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
|
||||
|
||||
extern PFNDOLCLIENTWAITSYNCPROC dolClientWaitSync;
|
||||
extern PFNDOLDELETESYNCPROC dolDeleteSync;
|
||||
extern PFNDOLFENCESYNCPROC dolFenceSync;
|
||||
extern PFNDOLGETINTEGER64VPROC dolGetInteger64v;
|
||||
extern PFNDOLGETSYNCIVPROC dolGetSynciv;
|
||||
extern PFNDOLISSYNCPROC dolIsSync;
|
||||
extern PFNDOLWAITSYNCPROC dolWaitSync;
|
||||
|
||||
#define glClientWaitSync dolClientWaitSync
|
||||
#define glDeleteSync dolDeleteSync
|
||||
#define glFenceSync dolFenceSync
|
||||
#define glGetInteger64v dolGetInteger64v
|
||||
#define glGetSynciv dolGetSynciv
|
||||
#define glIsSync dolIsSync
|
||||
#define glWaitSync dolWaitSync
|
||||
|
@ -1,10 +1,39 @@
|
||||
// Copyright 2014 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLTEXIMAGE2DMULTISAMPLEPROC glTexImage2DMultisample;
|
||||
extern PFNGLTEXIMAGE3DMULTISAMPLEPROC glTexImage3DMultisample;
|
||||
extern PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv;
|
||||
extern PFNGLSAMPLEMASKIPROC glSampleMaski;
|
||||
typedef void (APIENTRYP PFNDOLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
|
||||
typedef void (APIENTRYP PFNDOLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
|
||||
typedef void (APIENTRYP PFNDOLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
|
||||
|
||||
extern PFNDOLTEXIMAGE2DMULTISAMPLEPROC dolTexImage2DMultisample;
|
||||
extern PFNDOLTEXIMAGE3DMULTISAMPLEPROC dolTexImage3DMultisample;
|
||||
extern PFNDOLGETMULTISAMPLEFVPROC dolGetMultisamplefv;
|
||||
extern PFNDOLSAMPLEMASKIPROC dolSampleMaski;
|
||||
|
||||
#define glTexImage2DMultisample dolTexImage2DMultisample
|
||||
#define glTexImage3DMultisample dolTexImage3DMultisample
|
||||
#define glGetMultisamplefv dolGetMultisamplefv
|
||||
#define glSampleMaski dolSampleMaski
|
||||
|
@ -1,8 +1,33 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLTEXSTORAGE2DMULTISAMPLEPROC glTexStorage2DMultisample;
|
||||
extern PFNGLTEXSTORAGE3DMULTISAMPLEPROC glTexStorage3DMultisample;
|
||||
typedef void (APIENTRYP PFNDOLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
|
||||
typedef void (APIENTRYP PFNDOLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
|
||||
|
||||
extern PFNDOLTEXSTORAGE2DMULTISAMPLEPROC dolTexStorage2DMultisample;
|
||||
extern PFNDOLTEXSTORAGE3DMULTISAMPLEPROC dolTexStorage3DMultisample;
|
||||
|
||||
#define glTexStorage2DMultisample dolTexStorage2DMultisample
|
||||
#define glTexStorage3DMultisample dolTexStorage3DMultisample
|
||||
|
@ -1,17 +1,57 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBINDBUFFERBASEPROC glBindBufferBase;
|
||||
extern PFNGLBINDBUFFERRANGEPROC glBindBufferRange;
|
||||
extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName;
|
||||
extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv;
|
||||
extern PFNGLGETACTIVEUNIFORMNAMEPROC glGetActiveUniformName;
|
||||
extern PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv;
|
||||
extern PFNGLGETINTEGERI_VPROC glGetIntegeri_v;
|
||||
extern PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex;
|
||||
extern PFNGLGETUNIFORMINDICESPROC glGetUniformIndices;
|
||||
extern PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding;
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
|
||||
typedef void (APIENTRYP PFNDOLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
|
||||
typedef void (APIENTRYP PFNDOLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
|
||||
typedef void (APIENTRYP PFNDOLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
|
||||
typedef GLuint (APIENTRYP PFNDOLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
|
||||
|
||||
extern PFNDOLBINDBUFFERBASEPROC dolBindBufferBase;
|
||||
extern PFNDOLBINDBUFFERRANGEPROC dolBindBufferRange;
|
||||
extern PFNDOLGETACTIVEUNIFORMBLOCKNAMEPROC dolGetActiveUniformBlockName;
|
||||
extern PFNDOLGETACTIVEUNIFORMBLOCKIVPROC dolGetActiveUniformBlockiv;
|
||||
extern PFNDOLGETACTIVEUNIFORMNAMEPROC dolGetActiveUniformName;
|
||||
extern PFNDOLGETACTIVEUNIFORMSIVPROC dolGetActiveUniformsiv;
|
||||
extern PFNDOLGETINTEGERI_VPROC dolGetIntegeri_v;
|
||||
extern PFNDOLGETUNIFORMBLOCKINDEXPROC dolGetUniformBlockIndex;
|
||||
extern PFNDOLGETUNIFORMINDICESPROC dolGetUniformIndices;
|
||||
extern PFNDOLUNIFORMBLOCKBINDINGPROC dolUniformBlockBinding;
|
||||
|
||||
#define glBindBufferBase dolBindBufferBase
|
||||
#define glBindBufferRange dolBindBufferRange
|
||||
#define glGetActiveUniformBlockName dolGetActiveUniformBlockName
|
||||
#define glGetActiveUniformBlockiv dolGetActiveUniformBlockiv
|
||||
#define glGetActiveUniformName dolGetActiveUniformName
|
||||
#define glGetActiveUniformsiv dolGetActiveUniformsiv
|
||||
#define glGetIntegeri_v dolGetIntegeri_v
|
||||
#define glGetUniformBlockIndex dolGetUniformBlockIndex
|
||||
#define glGetUniformIndices dolGetUniformIndices
|
||||
#define glUniformBlockBinding dolUniformBlockBinding
|
||||
|
@ -1,11 +1,39 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBINDVERTEXARRAYPROC glBindVertexArray;
|
||||
extern PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays;
|
||||
extern PFNGLGENVERTEXARRAYSPROC glGenVertexArrays;
|
||||
extern PFNGLISVERTEXARRAYPROC glIsVertexArray;
|
||||
typedef void (APIENTRYP PFNDOLBINDVERTEXARRAYPROC) (GLuint array);
|
||||
typedef void (APIENTRYP PFNDOLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
|
||||
typedef void (APIENTRYP PFNDOLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISVERTEXARRAYPROC) (GLuint array);
|
||||
|
||||
extern PFNDOLBINDVERTEXARRAYPROC dolBindVertexArray;
|
||||
extern PFNDOLDELETEVERTEXARRAYSPROC dolDeleteVertexArrays;
|
||||
extern PFNDOLGENVERTEXARRAYSPROC dolGenVertexArrays;
|
||||
extern PFNDOLISVERTEXARRAYPROC dolIsVertexArray;
|
||||
|
||||
#define glBindVertexArray dolBindVertexArray
|
||||
#define glDeleteVertexArrays dolDeleteVertexArrays
|
||||
#define glGenVertexArrays dolGenVertexArrays
|
||||
#define glIsVertexArray dolIsVertexArray
|
||||
|
@ -1,17 +1,57 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLDEPTHRANGEARRAYVPROC glDepthRangeArrayv;
|
||||
extern PFNGLDEPTHRANGEINDEXEDPROC glDepthRangeIndexed;
|
||||
extern PFNGLGETDOUBLEI_VPROC glGetDoublei_v;
|
||||
extern PFNGLGETFLOATI_VPROC glGetFloati_v;
|
||||
extern PFNGLSCISSORARRAYVPROC glScissorArrayv;
|
||||
extern PFNGLSCISSORINDEXEDPROC glScissorIndexed;
|
||||
extern PFNGLSCISSORINDEXEDVPROC glScissorIndexedv;
|
||||
extern PFNGLVIEWPORTARRAYVPROC glViewportArrayv;
|
||||
extern PFNGLVIEWPORTINDEXEDFPROC glViewportIndexedf;
|
||||
extern PFNGLVIEWPORTINDEXEDFVPROC glViewportIndexedfv;
|
||||
typedef void (APIENTRYP PFNDOLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
|
||||
typedef void (APIENTRYP PFNDOLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRYP PFNDOLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
|
||||
typedef void (APIENTRYP PFNDOLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
|
||||
typedef void (APIENTRYP PFNDOLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
|
||||
|
||||
extern PFNDOLDEPTHRANGEARRAYVPROC dolDepthRangeArrayv;
|
||||
extern PFNDOLDEPTHRANGEINDEXEDPROC dolDepthRangeIndexed;
|
||||
extern PFNDOLGETDOUBLEI_VPROC dolGetDoublei_v;
|
||||
extern PFNDOLGETFLOATI_VPROC dolGetFloati_v;
|
||||
extern PFNDOLSCISSORARRAYVPROC dolScissorArrayv;
|
||||
extern PFNDOLSCISSORINDEXEDPROC dolScissorIndexed;
|
||||
extern PFNDOLSCISSORINDEXEDVPROC dolScissorIndexedv;
|
||||
extern PFNDOLVIEWPORTARRAYVPROC dolViewportArrayv;
|
||||
extern PFNDOLVIEWPORTINDEXEDFPROC dolViewportIndexedf;
|
||||
extern PFNDOLVIEWPORTINDEXEDFVPROC dolViewportIndexedfv;
|
||||
|
||||
#define glDepthRangeArrayv dolDepthRangeArrayv
|
||||
#define glDepthRangeIndexed dolDepthRangeIndexed
|
||||
#define glGetDoublei_v dolGetDoublei_v
|
||||
#define glGetFloati_v dolGetFloati_v
|
||||
#define glScissorArrayv dolScissorArrayv
|
||||
#define glScissorIndexed dolScissorIndexed
|
||||
#define glScissorIndexedv dolScissorIndexedv
|
||||
#define glViewportArrayv dolViewportArrayv
|
||||
#define glViewportIndexedf dolViewportIndexedf
|
||||
#define glViewportIndexedfv dolViewportIndexedfv
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
|
||||
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
|
File diff suppressed because it is too large
Load Diff
@ -6,6 +6,7 @@
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
#include "Common/GL/GLExtensions/AMD_pinned_memory.h"
|
||||
#include "Common/GL/GLExtensions/ARB_blend_func_extended.h"
|
||||
#include "Common/GL/GLExtensions/ARB_buffer_storage.h"
|
||||
#include "Common/GL/GLExtensions/ARB_clip_control.h"
|
||||
@ -13,26 +14,32 @@
|
||||
#include "Common/GL/GLExtensions/ARB_debug_output.h"
|
||||
#include "Common/GL/GLExtensions/ARB_draw_elements_base_vertex.h"
|
||||
#include "Common/GL/GLExtensions/ARB_ES2_compatibility.h"
|
||||
#include "Common/GL/GLExtensions/ARB_ES3_compatibility.h"
|
||||
#include "Common/GL/GLExtensions/ARB_framebuffer_object.h"
|
||||
#include "Common/GL/GLExtensions/ARB_get_program_binary.h"
|
||||
#include "Common/GL/GLExtensions/ARB_map_buffer_range.h"
|
||||
#include "Common/GL/GLExtensions/ARB_occlusion_query2.h"
|
||||
#include "Common/GL/GLExtensions/ARB_sample_shading.h"
|
||||
#include "Common/GL/GLExtensions/ARB_sampler_objects.h"
|
||||
#include "Common/GL/GLExtensions/ARB_shader_storage_buffer_object.h"
|
||||
#include "Common/GL/GLExtensions/ARB_sync.h"
|
||||
#include "Common/GL/GLExtensions/ARB_texture_multisample.h"
|
||||
#include "Common/GL/GLExtensions/ARB_texture_storage_multisample.h"
|
||||
#include "Common/GL/GLExtensions/ARB_uniform_buffer_object.h"
|
||||
#include "Common/GL/GLExtensions/ARB_vertex_array_object.h"
|
||||
#include "Common/GL/GLExtensions/ARB_viewport_array.h"
|
||||
#include "Common/GL/GLExtensions/EXT_texture_filter_anisotropic.h"
|
||||
#include "Common/GL/GLExtensions/gl_1_1.h"
|
||||
#include "Common/GL/GLExtensions/gl_1_2.h"
|
||||
#include "Common/GL/GLExtensions/gl_1_3.h"
|
||||
#include "Common/GL/GLExtensions/gl_1_4.h"
|
||||
#include "Common/GL/GLExtensions/gl_1_5.h"
|
||||
#include "Common/GL/GLExtensions/gl_2_0.h"
|
||||
#include "Common/GL/GLExtensions/gl_2_1.h"
|
||||
#include "Common/GL/GLExtensions/gl_3_0.h"
|
||||
#include "Common/GL/GLExtensions/gl_3_1.h"
|
||||
#include "Common/GL/GLExtensions/gl_3_2.h"
|
||||
#include "Common/GL/GLExtensions/HP_occlusion_test.h"
|
||||
#include "Common/GL/GLExtensions/KHR_debug.h"
|
||||
#include "Common/GL/GLExtensions/NV_occlusion_query_samples.h"
|
||||
#include "Common/GL/GLExtensions/NV_primitive_restart.h"
|
||||
|
27
Source/Core/Common/GL/GLExtensions/HP_occlusion_test.h
Normal file
27
Source/Core/Common/GL/GLExtensions/HP_occlusion_test.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_OCCLUSION_TEST_HP 0x8165
|
||||
#define GL_OCCLUSION_TEST_RESULT_HP 0x8166
|
@ -1,11 +1,28 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#ifndef GL_VERSION_4_3
|
||||
|
||||
#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
|
||||
#define GL_STACK_OVERFLOW 0x0503
|
||||
#define GL_STACK_UNDERFLOW 0x0504
|
||||
@ -47,29 +64,37 @@
|
||||
#define GL_DEBUG_SEVERITY_LOW 0x9148
|
||||
#define GL_DEBUG_OUTPUT 0x92E0
|
||||
|
||||
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam);
|
||||
typedef void (APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
||||
|
||||
typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const GLvoid *userParam);
|
||||
typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
|
||||
typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf);
|
||||
typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog);
|
||||
typedef void (GLAPIENTRY * PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar *label);
|
||||
typedef void (GLAPIENTRY * PFNGLGETOBJECTPTRLABELPROC) (void* ptr, GLsizei bufSize, GLsizei* length, GLchar *label);
|
||||
typedef void (GLAPIENTRY * PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar* label);
|
||||
typedef void (GLAPIENTRY * PFNGLOBJECTPTRLABELPROC) (void* ptr, GLsizei length, const GLchar* label);
|
||||
typedef void (GLAPIENTRY * PFNGLPOPDEBUGGROUPPROC) (void);
|
||||
typedef void (GLAPIENTRY * PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar * message);
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const GLvoid *userParam);
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
|
||||
typedef void (APIENTRYP PFNDOLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf);
|
||||
typedef GLuint (APIENTRYP PFNDOLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog);
|
||||
typedef void (APIENTRYP PFNDOLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar *label);
|
||||
typedef void (APIENTRYP PFNDOLGETOBJECTPTRLABELPROC) (void* ptr, GLsizei bufSize, GLsizei* length, GLchar *label);
|
||||
typedef void (APIENTRYP PFNDOLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar* label);
|
||||
typedef void (APIENTRYP PFNDOLOBJECTPTRLABELPROC) (void* ptr, GLsizei length, const GLchar* label);
|
||||
typedef void (APIENTRYP PFNDOLPOPDEBUGGROUPPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar * message);
|
||||
|
||||
#endif
|
||||
|
||||
extern PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback;
|
||||
extern PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl;
|
||||
extern PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert;
|
||||
extern PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog;
|
||||
extern PFNGLGETOBJECTLABELPROC glGetObjectLabel;
|
||||
extern PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel;
|
||||
extern PFNGLOBJECTLABELPROC glObjectLabel;
|
||||
extern PFNGLOBJECTPTRLABELPROC glObjectPtrLabel;
|
||||
extern PFNGLPOPDEBUGGROUPPROC glPopDebugGroup;
|
||||
extern PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup;
|
||||
extern PFNDOLDEBUGMESSAGECALLBACKPROC dolDebugMessageCallback;
|
||||
extern PFNDOLDEBUGMESSAGECONTROLPROC dolDebugMessageControl;
|
||||
extern PFNDOLDEBUGMESSAGEINSERTPROC dolDebugMessageInsert;
|
||||
extern PFNDOLGETDEBUGMESSAGELOGPROC dolGetDebugMessageLog;
|
||||
extern PFNDOLGETOBJECTLABELPROC dolGetObjectLabel;
|
||||
extern PFNDOLGETOBJECTPTRLABELPROC dolGetObjectPtrLabel;
|
||||
extern PFNDOLOBJECTLABELPROC dolObjectLabel;
|
||||
extern PFNDOLOBJECTPTRLABELPROC dolObjectPtrLabel;
|
||||
extern PFNDOLPOPDEBUGGROUPPROC dolPopDebugGroup;
|
||||
extern PFNDOLPUSHDEBUGGROUPPROC dolPushDebugGroup;
|
||||
|
||||
#define glDebugMessageCallback dolDebugMessageCallback
|
||||
#define glDebugMessageControl dolDebugMessageControl
|
||||
#define glDebugMessageInsert dolDebugMessageInsert
|
||||
#define glGetDebugMessageLog dolGetDebugMessageLog
|
||||
#define glGetObjectLabel dolGetObjectLabel
|
||||
#define glGetObjectPtrLabel dolGetObjectPtrLabel
|
||||
#define glObjectLabel dolObjectLabel
|
||||
#define glObjectPtrLabel dolObjectPtrLabel
|
||||
#define glPopDebugGroup dolPopDebugGroup
|
||||
#define glPushDebugGroup dolPushDebugGroup
|
||||
|
@ -1,13 +1,53 @@
|
||||
// Copyright 2015 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLGENOCCLUSIONQUERIESNVPROC glGenOcclusionQueriesNV;
|
||||
extern PFNGLDELETEOCCLUSIONQUERIESNVPROC glDeleteOcclusionQueriesNV;
|
||||
extern PFNGLISOCCLUSIONQUERYNVPROC glIsOcclusionQueryNV;
|
||||
extern PFNGLBEGINOCCLUSIONQUERYNVPROC glBeginOcclusionQueryNV;
|
||||
extern PFNGLENDOCCLUSIONQUERYNVPROC glEndOcclusionQueryNV;
|
||||
extern PFNGLGETOCCLUSIONQUERYIVNVPROC glGetOcclusionQueryivNV;
|
||||
extern PFNGLGETOCCLUSIONQUERYUIVNVPROC glGetOcclusionQueryuivNV;
|
||||
#define GL_PIXEL_COUNTER_BITS_NV 0x8864
|
||||
#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865
|
||||
#define GL_PIXEL_COUNT_NV 0x8866
|
||||
#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867
|
||||
|
||||
typedef void (APIENTRYP PFNDOLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
|
||||
typedef void (APIENTRYP PFNDOLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISOCCLUSIONQUERYNVPROC) (GLuint id);
|
||||
typedef void (APIENTRYP PFNDOLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
|
||||
typedef void (APIENTRYP PFNDOLENDOCCLUSIONQUERYNVPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
|
||||
|
||||
extern PFNDOLGENOCCLUSIONQUERIESNVPROC dolGenOcclusionQueriesNV;
|
||||
extern PFNDOLDELETEOCCLUSIONQUERIESNVPROC dolDeleteOcclusionQueriesNV;
|
||||
extern PFNDOLISOCCLUSIONQUERYNVPROC dolIsOcclusionQueryNV;
|
||||
extern PFNDOLBEGINOCCLUSIONQUERYNVPROC dolBeginOcclusionQueryNV;
|
||||
extern PFNDOLENDOCCLUSIONQUERYNVPROC dolEndOcclusionQueryNV;
|
||||
extern PFNDOLGETOCCLUSIONQUERYIVNVPROC dolGetOcclusionQueryivNV;
|
||||
extern PFNDOLGETOCCLUSIONQUERYUIVNVPROC dolGetOcclusionQueryuivNV;
|
||||
|
||||
#define glGenOcclusionQueriesNV dolGenOcclusionQueriesNV
|
||||
#define glDeleteOcclusionQueriesNV dolDeleteOcclusionQueriesNV
|
||||
#define glIsOcclusionQueryNV dolIsOcclusionQueryNV
|
||||
#define glBeginOcclusionQueryNV dolBeginOcclusionQueryNV
|
||||
#define glEndOcclusionQueryNV dolEndOcclusionQueryNV
|
||||
#define glGetOcclusionQueryivNV dolGetOcclusionQueryivNV
|
||||
#define glGetOcclusionQueryuivNV dolGetOcclusionQueryuivNV
|
||||
|
@ -1,15 +1,36 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_PRIMITIVE_RESTART_NV 0x8558
|
||||
#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559
|
||||
|
||||
typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
|
||||
typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTNVPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLPRIMITIVERESTARTNVPROC) (void);
|
||||
|
||||
extern PFNGLPRIMITIVERESTARTINDEXNVPROC glPrimitiveRestartIndexNV;
|
||||
extern PFNGLPRIMITIVERESTARTNVPROC glPrimitiveRestartNV;
|
||||
extern PFNDOLPRIMITIVERESTARTINDEXNVPROC dolPrimitiveRestartIndexNV;
|
||||
extern PFNDOLPRIMITIVERESTARTNVPROC dolPrimitiveRestartNV;
|
||||
|
||||
#define glPrimitiveRestartIndexNV dolPrimitiveRestartIndexNV
|
||||
#define glPrimitiveRestartNV dolPrimitiveRestartNV
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,81 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D;
|
||||
extern PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements;
|
||||
extern PFNGLTEXIMAGE3DPROC glTexImage3D;
|
||||
extern PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D;
|
||||
#define GL_RESCALE_NORMAL 0x803A
|
||||
#define GL_CLAMP_TO_EDGE 0x812F
|
||||
#define GL_MAX_ELEMENTS_VERTICES 0x80E8
|
||||
#define GL_MAX_ELEMENTS_INDICES 0x80E9
|
||||
#define GL_BGR 0x80E0
|
||||
#define GL_BGRA 0x80E1
|
||||
#define GL_UNSIGNED_BYTE_3_3_2 0x8032
|
||||
#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
|
||||
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
|
||||
#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
|
||||
#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
|
||||
#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
|
||||
#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
|
||||
#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
|
||||
#define GL_UNSIGNED_INT_8_8_8_8 0x8035
|
||||
#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
|
||||
#define GL_UNSIGNED_INT_10_10_10_2 0x8036
|
||||
#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
|
||||
#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
|
||||
#define GL_SINGLE_COLOR 0x81F9
|
||||
#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
|
||||
#define GL_TEXTURE_MIN_LOD 0x813A
|
||||
#define GL_TEXTURE_MAX_LOD 0x813B
|
||||
#define GL_TEXTURE_BASE_LEVEL 0x813C
|
||||
#define GL_TEXTURE_MAX_LEVEL 0x813D
|
||||
#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
|
||||
#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
|
||||
#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
|
||||
#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
|
||||
#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
|
||||
#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
|
||||
#define GL_PACK_SKIP_IMAGES 0x806B
|
||||
#define GL_PACK_IMAGE_HEIGHT 0x806C
|
||||
#define GL_UNPACK_SKIP_IMAGES 0x806D
|
||||
#define GL_UNPACK_IMAGE_HEIGHT 0x806E
|
||||
#define GL_TEXTURE_3D 0x806F
|
||||
#define GL_PROXY_TEXTURE_3D 0x8070
|
||||
#define GL_TEXTURE_DEPTH 0x8071
|
||||
#define GL_TEXTURE_WRAP_R 0x8072
|
||||
#define GL_MAX_3D_TEXTURE_SIZE 0x8073
|
||||
#define GL_TEXTURE_BINDING_3D 0x806A
|
||||
|
||||
typedef void (APIENTRYP PFNDOLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
|
||||
typedef void (APIENTRYP PFNDOLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
typedef void (APIENTRYP PFNDOLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
typedef void (APIENTRYP PFNDOLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
extern PFNDOLCOPYTEXSUBIMAGE3DPROC dolCopyTexSubImage3D;
|
||||
extern PFNDOLDRAWRANGEELEMENTSPROC dolDrawRangeElements;
|
||||
extern PFNDOLTEXIMAGE3DPROC dolTexImage3D;
|
||||
extern PFNDOLTEXSUBIMAGE3DPROC dolTexSubImage3D;
|
||||
|
||||
#define glCopyTexSubImage3D dolCopyTexSubImage3D
|
||||
#define glDrawRangeElements dolDrawRangeElements
|
||||
#define glTexImage3D dolTexImage3D
|
||||
#define glTexSubImage3D dolTexSubImage3D
|
||||
|
@ -1,53 +1,273 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLACTIVETEXTUREARBPROC glActiveTexture;
|
||||
extern PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture;
|
||||
extern PFNGLCOMPRESSEDTEXIMAGE1DPROC glCompressedTexImage1D;
|
||||
extern PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D;
|
||||
extern PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D;
|
||||
extern PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glCompressedTexSubImage1D;
|
||||
extern PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D;
|
||||
extern PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D;
|
||||
extern PFNGLGETCOMPRESSEDTEXIMAGEPROC glGetCompressedTexImage;
|
||||
extern PFNGLLOADTRANSPOSEMATRIXDARBPROC glLoadTransposeMatrixd;
|
||||
extern PFNGLLOADTRANSPOSEMATRIXFARBPROC glLoadTransposeMatrixf;
|
||||
extern PFNGLMULTTRANSPOSEMATRIXDARBPROC glMultTransposeMatrixd;
|
||||
extern PFNGLMULTTRANSPOSEMATRIXFARBPROC glMultTransposeMatrixf;
|
||||
extern PFNGLMULTITEXCOORD1DARBPROC glMultiTexCoord1d;
|
||||
extern PFNGLMULTITEXCOORD1DVARBPROC glMultiTexCoord1dv;
|
||||
extern PFNGLMULTITEXCOORD1FARBPROC glMultiTexCoord1f;
|
||||
extern PFNGLMULTITEXCOORD1FVARBPROC glMultiTexCoord1fv;
|
||||
extern PFNGLMULTITEXCOORD1IARBPROC glMultiTexCoord1i;
|
||||
extern PFNGLMULTITEXCOORD1IVARBPROC glMultiTexCoord1iv;
|
||||
extern PFNGLMULTITEXCOORD1SARBPROC glMultiTexCoord1s;
|
||||
extern PFNGLMULTITEXCOORD1SVARBPROC glMultiTexCoord1sv;
|
||||
extern PFNGLMULTITEXCOORD2DARBPROC glMultiTexCoord2d;
|
||||
extern PFNGLMULTITEXCOORD2DVARBPROC glMultiTexCoord2dv;
|
||||
extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f;
|
||||
extern PFNGLMULTITEXCOORD2FVARBPROC glMultiTexCoord2fv;
|
||||
extern PFNGLMULTITEXCOORD2IARBPROC glMultiTexCoord2i;
|
||||
extern PFNGLMULTITEXCOORD2IVARBPROC glMultiTexCoord2iv;
|
||||
extern PFNGLMULTITEXCOORD2SARBPROC glMultiTexCoord2s;
|
||||
extern PFNGLMULTITEXCOORD2SVARBPROC glMultiTexCoord2sv;
|
||||
extern PFNGLMULTITEXCOORD3DARBPROC glMultiTexCoord3d;
|
||||
extern PFNGLMULTITEXCOORD3DVARBPROC glMultiTexCoord3dv;
|
||||
extern PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f;
|
||||
extern PFNGLMULTITEXCOORD3FVARBPROC glMultiTexCoord3fv;
|
||||
extern PFNGLMULTITEXCOORD3IARBPROC glMultiTexCoord3i;
|
||||
extern PFNGLMULTITEXCOORD3IVARBPROC glMultiTexCoord3iv;
|
||||
extern PFNGLMULTITEXCOORD3SARBPROC glMultiTexCoord3s;
|
||||
extern PFNGLMULTITEXCOORD3SVARBPROC glMultiTexCoord3sv;
|
||||
extern PFNGLMULTITEXCOORD4DARBPROC glMultiTexCoord4d;
|
||||
extern PFNGLMULTITEXCOORD4DVARBPROC glMultiTexCoord4dv;
|
||||
extern PFNGLMULTITEXCOORD4FARBPROC glMultiTexCoord4f;
|
||||
extern PFNGLMULTITEXCOORD4FVARBPROC glMultiTexCoord4fv;
|
||||
extern PFNGLMULTITEXCOORD4IARBPROC glMultiTexCoord4i;
|
||||
extern PFNGLMULTITEXCOORD4IVARBPROC glMultiTexCoord4iv;
|
||||
extern PFNGLMULTITEXCOORD4SARBPROC glMultiTexCoord4s;
|
||||
extern PFNGLMULTITEXCOORD4SVARBPROC glMultiTexCoord4sv;
|
||||
extern PFNGLSAMPLECOVERAGEARBPROC glSampleCoverage;
|
||||
/* multitexture */
|
||||
#define GL_TEXTURE0 0x84C0
|
||||
#define GL_TEXTURE1 0x84C1
|
||||
#define GL_TEXTURE2 0x84C2
|
||||
#define GL_TEXTURE3 0x84C3
|
||||
#define GL_TEXTURE4 0x84C4
|
||||
#define GL_TEXTURE5 0x84C5
|
||||
#define GL_TEXTURE6 0x84C6
|
||||
#define GL_TEXTURE7 0x84C7
|
||||
#define GL_TEXTURE8 0x84C8
|
||||
#define GL_TEXTURE9 0x84C9
|
||||
#define GL_TEXTURE10 0x84CA
|
||||
#define GL_TEXTURE11 0x84CB
|
||||
#define GL_TEXTURE12 0x84CC
|
||||
#define GL_TEXTURE13 0x84CD
|
||||
#define GL_TEXTURE14 0x84CE
|
||||
#define GL_TEXTURE15 0x84CF
|
||||
#define GL_TEXTURE16 0x84D0
|
||||
#define GL_TEXTURE17 0x84D1
|
||||
#define GL_TEXTURE18 0x84D2
|
||||
#define GL_TEXTURE19 0x84D3
|
||||
#define GL_TEXTURE20 0x84D4
|
||||
#define GL_TEXTURE21 0x84D5
|
||||
#define GL_TEXTURE22 0x84D6
|
||||
#define GL_TEXTURE23 0x84D7
|
||||
#define GL_TEXTURE24 0x84D8
|
||||
#define GL_TEXTURE25 0x84D9
|
||||
#define GL_TEXTURE26 0x84DA
|
||||
#define GL_TEXTURE27 0x84DB
|
||||
#define GL_TEXTURE28 0x84DC
|
||||
#define GL_TEXTURE29 0x84DD
|
||||
#define GL_TEXTURE30 0x84DE
|
||||
#define GL_TEXTURE31 0x84DF
|
||||
#define GL_ACTIVE_TEXTURE 0x84E0
|
||||
#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
|
||||
#define GL_MAX_TEXTURE_UNITS 0x84E2
|
||||
/* texture_cube_map */
|
||||
#define GL_NORMAL_MAP 0x8511
|
||||
#define GL_REFLECTION_MAP 0x8512
|
||||
#define GL_TEXTURE_CUBE_MAP 0x8513
|
||||
#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
|
||||
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
|
||||
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
|
||||
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
|
||||
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
|
||||
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
|
||||
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
|
||||
#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
|
||||
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
|
||||
/* texture_compression */
|
||||
#define GL_COMPRESSED_ALPHA 0x84E9
|
||||
#define GL_COMPRESSED_LUMINANCE 0x84EA
|
||||
#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
|
||||
#define GL_COMPRESSED_INTENSITY 0x84EC
|
||||
#define GL_COMPRESSED_RGB 0x84ED
|
||||
#define GL_COMPRESSED_RGBA 0x84EE
|
||||
#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
|
||||
#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
|
||||
#define GL_TEXTURE_COMPRESSED 0x86A1
|
||||
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
|
||||
#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
|
||||
/* multisample */
|
||||
#define GL_MULTISAMPLE 0x809D
|
||||
#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
|
||||
#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
|
||||
#define GL_SAMPLE_COVERAGE 0x80A0
|
||||
#define GL_SAMPLE_BUFFERS 0x80A8
|
||||
#define GL_SAMPLES 0x80A9
|
||||
#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
|
||||
#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
|
||||
#define GL_MULTISAMPLE_BIT 0x20000000
|
||||
/* transpose_matrix */
|
||||
#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
|
||||
#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
|
||||
#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
|
||||
#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
|
||||
/* texture_env_combine */
|
||||
#define GL_COMBINE 0x8570
|
||||
#define GL_COMBINE_RGB 0x8571
|
||||
#define GL_COMBINE_ALPHA 0x8572
|
||||
#define GL_SOURCE0_RGB 0x8580
|
||||
#define GL_SOURCE1_RGB 0x8581
|
||||
#define GL_SOURCE2_RGB 0x8582
|
||||
#define GL_SOURCE0_ALPHA 0x8588
|
||||
#define GL_SOURCE1_ALPHA 0x8589
|
||||
#define GL_SOURCE2_ALPHA 0x858A
|
||||
#define GL_OPERAND0_RGB 0x8590
|
||||
#define GL_OPERAND1_RGB 0x8591
|
||||
#define GL_OPERAND2_RGB 0x8592
|
||||
#define GL_OPERAND0_ALPHA 0x8598
|
||||
#define GL_OPERAND1_ALPHA 0x8599
|
||||
#define GL_OPERAND2_ALPHA 0x859A
|
||||
#define GL_RGB_SCALE 0x8573
|
||||
#define GL_ADD_SIGNED 0x8574
|
||||
#define GL_INTERPOLATE 0x8575
|
||||
#define GL_SUBTRACT 0x84E7
|
||||
#define GL_CONSTANT 0x8576
|
||||
#define GL_PRIMARY_COLOR 0x8577
|
||||
#define GL_PREVIOUS 0x8578
|
||||
/* texture_env_dot3 */
|
||||
#define GL_DOT3_RGB 0x86AE
|
||||
#define GL_DOT3_RGBA 0x86AF
|
||||
/* texture_border_clamp */
|
||||
#define GL_CLAMP_TO_BORDER 0x812D
|
||||
|
||||
typedef void (APIENTRYP PFNDOLACTIVETEXTUREPROC) (GLenum texture);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
|
||||
typedef void (APIENTRYP PFNDOLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
|
||||
|
||||
typedef void (APIENTRYP PFNDOLACTIVETEXTUREARBPROC) (GLenum texture);
|
||||
typedef void (APIENTRYP PFNDOLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
|
||||
typedef void (APIENTRYP PFNDOLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
|
||||
typedef void (APIENTRYP PFNDOLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
|
||||
typedef void (APIENTRYP PFNDOLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
|
||||
typedef void (APIENTRYP PFNDOLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert);
|
||||
|
||||
extern PFNDOLACTIVETEXTUREARBPROC dolActiveTexture;
|
||||
extern PFNDOLCLIENTACTIVETEXTUREARBPROC dolClientActiveTexture;
|
||||
extern PFNDOLCOMPRESSEDTEXIMAGE1DPROC dolCompressedTexImage1D;
|
||||
extern PFNDOLCOMPRESSEDTEXIMAGE2DPROC dolCompressedTexImage2D;
|
||||
extern PFNDOLCOMPRESSEDTEXIMAGE3DPROC dolCompressedTexImage3D;
|
||||
extern PFNDOLCOMPRESSEDTEXSUBIMAGE1DPROC dolCompressedTexSubImage1D;
|
||||
extern PFNDOLCOMPRESSEDTEXSUBIMAGE2DPROC dolCompressedTexSubImage2D;
|
||||
extern PFNDOLCOMPRESSEDTEXSUBIMAGE3DPROC dolCompressedTexSubImage3D;
|
||||
extern PFNDOLGETCOMPRESSEDTEXIMAGEPROC dolGetCompressedTexImage;
|
||||
extern PFNDOLLOADTRANSPOSEMATRIXDARBPROC dolLoadTransposeMatrixd;
|
||||
extern PFNDOLLOADTRANSPOSEMATRIXFARBPROC dolLoadTransposeMatrixf;
|
||||
extern PFNDOLMULTTRANSPOSEMATRIXDARBPROC dolMultTransposeMatrixd;
|
||||
extern PFNDOLMULTTRANSPOSEMATRIXFARBPROC dolMultTransposeMatrixf;
|
||||
extern PFNDOLMULTITEXCOORD1DARBPROC dolMultiTexCoord1d;
|
||||
extern PFNDOLMULTITEXCOORD1DVARBPROC dolMultiTexCoord1dv;
|
||||
extern PFNDOLMULTITEXCOORD1FARBPROC dolMultiTexCoord1f;
|
||||
extern PFNDOLMULTITEXCOORD1FVARBPROC dolMultiTexCoord1fv;
|
||||
extern PFNDOLMULTITEXCOORD1IARBPROC dolMultiTexCoord1i;
|
||||
extern PFNDOLMULTITEXCOORD1IVARBPROC dolMultiTexCoord1iv;
|
||||
extern PFNDOLMULTITEXCOORD1SARBPROC dolMultiTexCoord1s;
|
||||
extern PFNDOLMULTITEXCOORD1SVARBPROC dolMultiTexCoord1sv;
|
||||
extern PFNDOLMULTITEXCOORD2DARBPROC dolMultiTexCoord2d;
|
||||
extern PFNDOLMULTITEXCOORD2DVARBPROC dolMultiTexCoord2dv;
|
||||
extern PFNDOLMULTITEXCOORD2FARBPROC dolMultiTexCoord2f;
|
||||
extern PFNDOLMULTITEXCOORD2FVARBPROC dolMultiTexCoord2fv;
|
||||
extern PFNDOLMULTITEXCOORD2IARBPROC dolMultiTexCoord2i;
|
||||
extern PFNDOLMULTITEXCOORD2IVARBPROC dolMultiTexCoord2iv;
|
||||
extern PFNDOLMULTITEXCOORD2SARBPROC dolMultiTexCoord2s;
|
||||
extern PFNDOLMULTITEXCOORD2SVARBPROC dolMultiTexCoord2sv;
|
||||
extern PFNDOLMULTITEXCOORD3DARBPROC dolMultiTexCoord3d;
|
||||
extern PFNDOLMULTITEXCOORD3DVARBPROC dolMultiTexCoord3dv;
|
||||
extern PFNDOLMULTITEXCOORD3FARBPROC dolMultiTexCoord3f;
|
||||
extern PFNDOLMULTITEXCOORD3FVARBPROC dolMultiTexCoord3fv;
|
||||
extern PFNDOLMULTITEXCOORD3IARBPROC dolMultiTexCoord3i;
|
||||
extern PFNDOLMULTITEXCOORD3IVARBPROC dolMultiTexCoord3iv;
|
||||
extern PFNDOLMULTITEXCOORD3SARBPROC dolMultiTexCoord3s;
|
||||
extern PFNDOLMULTITEXCOORD3SVARBPROC dolMultiTexCoord3sv;
|
||||
extern PFNDOLMULTITEXCOORD4DARBPROC dolMultiTexCoord4d;
|
||||
extern PFNDOLMULTITEXCOORD4DVARBPROC dolMultiTexCoord4dv;
|
||||
extern PFNDOLMULTITEXCOORD4FARBPROC dolMultiTexCoord4f;
|
||||
extern PFNDOLMULTITEXCOORD4FVARBPROC dolMultiTexCoord4fv;
|
||||
extern PFNDOLMULTITEXCOORD4IARBPROC dolMultiTexCoord4i;
|
||||
extern PFNDOLMULTITEXCOORD4IVARBPROC dolMultiTexCoord4iv;
|
||||
extern PFNDOLMULTITEXCOORD4SARBPROC dolMultiTexCoord4s;
|
||||
extern PFNDOLMULTITEXCOORD4SVARBPROC dolMultiTexCoord4sv;
|
||||
extern PFNDOLSAMPLECOVERAGEARBPROC dolSampleCoverage;
|
||||
|
||||
#define glActiveTexture dolActiveTexture
|
||||
#define glClientActiveTexture dolClientActiveTexture
|
||||
#define glCompressedTexImage1D dolCompressedTexImage1D
|
||||
#define glCompressedTexImage2D dolCompressedTexImage2D
|
||||
#define glCompressedTexImage3D dolCompressedTexImage3D
|
||||
#define glCompressedTexSubImage1D dolCompressedTexSubImage1D
|
||||
#define glCompressedTexSubImage2D dolCompressedTexSubImage2D
|
||||
#define glCompressedTexSubImage3D dolCompressedTexSubImage3D
|
||||
#define glGetCompressedTexImage dolGetCompressedTexImage
|
||||
#define glLoadTransposeMatrixd dolLoadTransposeMatrixd
|
||||
#define glLoadTransposeMatrixf dolLoadTransposeMatrixf
|
||||
#define glMultTransposeMatrixd dolMultTransposeMatrixd
|
||||
#define glMultTransposeMatrixf dolMultTransposeMatrixf
|
||||
#define glMultiTexCoord1d dolMultiTexCoord1d
|
||||
#define glMultiTexCoord1dv dolMultiTexCoord1dv
|
||||
#define glMultiTexCoord1f dolMultiTexCoord1f
|
||||
#define glMultiTexCoord1fv dolMultiTexCoord1fv
|
||||
#define glMultiTexCoord1i dolMultiTexCoord1i
|
||||
#define glMultiTexCoord1iv dolMultiTexCoord1iv
|
||||
#define glMultiTexCoord1s dolMultiTexCoord1s
|
||||
#define glMultiTexCoord1sv dolMultiTexCoord1sv
|
||||
#define glMultiTexCoord2d dolMultiTexCoord2d
|
||||
#define glMultiTexCoord2dv dolMultiTexCoord2dv
|
||||
#define glMultiTexCoord2f dolMultiTexCoord2f
|
||||
#define glMultiTexCoord2fv dolMultiTexCoord2fv
|
||||
#define glMultiTexCoord2i dolMultiTexCoord2i
|
||||
#define glMultiTexCoord2iv dolMultiTexCoord2iv
|
||||
#define glMultiTexCoord2s dolMultiTexCoord2s
|
||||
#define glMultiTexCoord2sv dolMultiTexCoord2sv
|
||||
#define glMultiTexCoord3d dolMultiTexCoord3d
|
||||
#define glMultiTexCoord3dv dolMultiTexCoord3dv
|
||||
#define glMultiTexCoord3f dolMultiTexCoord3f
|
||||
#define glMultiTexCoord3fv dolMultiTexCoord3fv
|
||||
#define glMultiTexCoord3i dolMultiTexCoord3i
|
||||
#define glMultiTexCoord3iv dolMultiTexCoord3iv
|
||||
#define glMultiTexCoord3s dolMultiTexCoord3s
|
||||
#define glMultiTexCoord3sv dolMultiTexCoord3sv
|
||||
#define glMultiTexCoord4d dolMultiTexCoord4d
|
||||
#define glMultiTexCoord4dv dolMultiTexCoord4dv
|
||||
#define glMultiTexCoord4f dolMultiTexCoord4f
|
||||
#define glMultiTexCoord4fv dolMultiTexCoord4fv
|
||||
#define glMultiTexCoord4i dolMultiTexCoord4i
|
||||
#define glMultiTexCoord4iv dolMultiTexCoord4iv
|
||||
#define glMultiTexCoord4s dolMultiTexCoord4s
|
||||
#define glMultiTexCoord4sv dolMultiTexCoord4sv
|
||||
#define glSampleCoverage dolSampleCoverage
|
||||
|
@ -1,55 +1,218 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
// These two are provided by ARB_imaging as well
|
||||
extern PFNGLBLENDCOLORPROC glBlendColor;
|
||||
extern PFNGLBLENDEQUATIONPROC glBlendEquation;
|
||||
extern PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;
|
||||
extern PFNGLFOGCOORDPOINTERPROC glFogCoordPointer;
|
||||
extern PFNGLFOGCOORDDPROC glFogCoordd;
|
||||
extern PFNGLFOGCOORDDVPROC glFogCoorddv;
|
||||
extern PFNGLFOGCOORDFPROC glFogCoordf;
|
||||
extern PFNGLFOGCOORDFVPROC glFogCoordfv;
|
||||
extern PFNGLMULTIDRAWARRAYSPROC glMultiDrawArrays;
|
||||
extern PFNGLMULTIDRAWELEMENTSPROC glMultiDrawElements;
|
||||
extern PFNGLPOINTPARAMETERFPROC glPointParameterf;
|
||||
extern PFNGLPOINTPARAMETERFVPROC glPointParameterfv;
|
||||
extern PFNGLPOINTPARAMETERIPROC glPointParameteri;
|
||||
extern PFNGLPOINTPARAMETERIVPROC glPointParameteriv;
|
||||
extern PFNGLSECONDARYCOLOR3BPROC glSecondaryColor3b;
|
||||
extern PFNGLSECONDARYCOLOR3BVPROC glSecondaryColor3bv;
|
||||
extern PFNGLSECONDARYCOLOR3DPROC glSecondaryColor3d;
|
||||
extern PFNGLSECONDARYCOLOR3DVPROC glSecondaryColor3dv;
|
||||
extern PFNGLSECONDARYCOLOR3FPROC glSecondaryColor3f;
|
||||
extern PFNGLSECONDARYCOLOR3FVPROC glSecondaryColor3fv;
|
||||
extern PFNGLSECONDARYCOLOR3IPROC glSecondaryColor3i;
|
||||
extern PFNGLSECONDARYCOLOR3IVPROC glSecondaryColor3iv;
|
||||
extern PFNGLSECONDARYCOLOR3SPROC glSecondaryColor3s;
|
||||
extern PFNGLSECONDARYCOLOR3SVPROC glSecondaryColor3sv;
|
||||
extern PFNGLSECONDARYCOLOR3UBPROC glSecondaryColor3ub;
|
||||
extern PFNGLSECONDARYCOLOR3UBVPROC glSecondaryColor3ubv;
|
||||
extern PFNGLSECONDARYCOLOR3UIPROC glSecondaryColor3ui;
|
||||
extern PFNGLSECONDARYCOLOR3UIVPROC glSecondaryColor3uiv;
|
||||
extern PFNGLSECONDARYCOLOR3USPROC glSecondaryColor3us;
|
||||
extern PFNGLSECONDARYCOLOR3USVPROC glSecondaryColor3usv;
|
||||
extern PFNGLSECONDARYCOLORPOINTERPROC glSecondaryColorPointer;
|
||||
extern PFNGLWINDOWPOS2DPROC glWindowPos2d;
|
||||
extern PFNGLWINDOWPOS2DVPROC glWindowPos2dv;
|
||||
extern PFNGLWINDOWPOS2FPROC glWindowPos2f;
|
||||
extern PFNGLWINDOWPOS2FVPROC glWindowPos2fv;
|
||||
extern PFNGLWINDOWPOS2IPROC glWindowPos2i;
|
||||
extern PFNGLWINDOWPOS2IVPROC glWindowPos2iv;
|
||||
extern PFNGLWINDOWPOS2SPROC glWindowPos2s;
|
||||
extern PFNGLWINDOWPOS2SVPROC glWindowPos2sv;
|
||||
extern PFNGLWINDOWPOS3DPROC glWindowPos3d;
|
||||
extern PFNGLWINDOWPOS3DVPROC glWindowPos3dv;
|
||||
extern PFNGLWINDOWPOS3FPROC glWindowPos3f;
|
||||
extern PFNGLWINDOWPOS3FVPROC glWindowPos3fv;
|
||||
extern PFNGLWINDOWPOS3IPROC glWindowPos3i;
|
||||
extern PFNGLWINDOWPOS3IVPROC glWindowPos3iv;
|
||||
extern PFNGLWINDOWPOS3SPROC glWindowPos3s;
|
||||
extern PFNGLWINDOWPOS3SVPROC glWindowPos3sv;
|
||||
#define GL_BLEND_DST_RGB 0x80C8
|
||||
#define GL_BLEND_SRC_RGB 0x80C9
|
||||
#define GL_BLEND_DST_ALPHA 0x80CA
|
||||
#define GL_BLEND_SRC_ALPHA 0x80CB
|
||||
#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
|
||||
#define GL_DEPTH_COMPONENT16 0x81A5
|
||||
#define GL_DEPTH_COMPONENT24 0x81A6
|
||||
#define GL_DEPTH_COMPONENT32 0x81A7
|
||||
#define GL_MIRRORED_REPEAT 0x8370
|
||||
#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
|
||||
#define GL_TEXTURE_LOD_BIAS 0x8501
|
||||
#define GL_INCR_WRAP 0x8507
|
||||
#define GL_DECR_WRAP 0x8508
|
||||
#define GL_TEXTURE_DEPTH_SIZE 0x884A
|
||||
#define GL_TEXTURE_COMPARE_MODE 0x884C
|
||||
#define GL_TEXTURE_COMPARE_FUNC 0x884D
|
||||
#define GL_POINT_SIZE_MIN 0x8126
|
||||
#define GL_POINT_SIZE_MAX 0x8127
|
||||
#define GL_POINT_DISTANCE_ATTENUATION 0x8129
|
||||
#define GL_GENERATE_MIPMAP 0x8191
|
||||
#define GL_GENERATE_MIPMAP_HINT 0x8192
|
||||
#define GL_FOG_COORDINATE_SOURCE 0x8450
|
||||
#define GL_FOG_COORDINATE 0x8451
|
||||
#define GL_FRAGMENT_DEPTH 0x8452
|
||||
#define GL_CURRENT_FOG_COORDINATE 0x8453
|
||||
#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
|
||||
#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
|
||||
#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
|
||||
#define GL_FOG_COORDINATE_ARRAY 0x8457
|
||||
#define GL_COLOR_SUM 0x8458
|
||||
#define GL_CURRENT_SECONDARY_COLOR 0x8459
|
||||
#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
|
||||
#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
|
||||
#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
|
||||
#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
|
||||
#define GL_SECONDARY_COLOR_ARRAY 0x845E
|
||||
#define GL_TEXTURE_FILTER_CONTROL 0x8500
|
||||
#define GL_DEPTH_TEXTURE_MODE 0x884B
|
||||
#define GL_COMPARE_R_TO_TEXTURE 0x884E
|
||||
#define GL_FUNC_ADD 0x8006
|
||||
#define GL_FUNC_SUBTRACT 0x800A
|
||||
#define GL_FUNC_REVERSE_SUBTRACT 0x800B
|
||||
#define GL_MIN 0x8007
|
||||
#define GL_MAX 0x8008
|
||||
#define GL_CONSTANT_COLOR 0x8001
|
||||
#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
|
||||
#define GL_CONSTANT_ALPHA 0x8003
|
||||
#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
|
||||
|
||||
typedef void (APIENTRYP PFNDOLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
||||
typedef void (APIENTRYP PFNDOLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
|
||||
typedef void (APIENTRYP PFNDOLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
|
||||
typedef void (APIENTRYP PFNDOLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRYP PFNDOLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
|
||||
typedef void (APIENTRYP PFNDOLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRYP PFNDOLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLFOGCOORDFPROC) (GLfloat coord);
|
||||
typedef void (APIENTRYP PFNDOLFOGCOORDFVPROC) (const GLfloat *coord);
|
||||
typedef void (APIENTRYP PFNDOLFOGCOORDDPROC) (GLdouble coord);
|
||||
typedef void (APIENTRYP PFNDOLFOGCOORDDVPROC) (const GLdouble *coord);
|
||||
typedef void (APIENTRYP PFNDOLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3IVPROC) (const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3SVPROC) (const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLOR3USVPROC) (const GLushort *v);
|
||||
typedef void (APIENTRYP PFNDOLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2DVPROC) (const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2FVPROC) (const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2IPROC) (GLint x, GLint y);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2IVPROC) (const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2SPROC) (GLshort x, GLshort y);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS2SVPROC) (const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3DVPROC) (const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3FVPROC) (const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3IVPROC) (const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRYP PFNDOLWINDOWPOS3SVPROC) (const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||
typedef void (APIENTRYP PFNDOLBLENDEQUATIONPROC) (GLenum mode);
|
||||
|
||||
// These two are provided by ARB_imaging as well
|
||||
extern PFNDOLBLENDCOLORPROC dolBlendColor;
|
||||
extern PFNDOLBLENDEQUATIONPROC dolBlendEquation;
|
||||
extern PFNDOLBLENDFUNCSEPARATEPROC dolBlendFuncSeparate;
|
||||
extern PFNDOLFOGCOORDPOINTERPROC dolFogCoordPointer;
|
||||
extern PFNDOLFOGCOORDDPROC dolFogCoordd;
|
||||
extern PFNDOLFOGCOORDDVPROC dolFogCoorddv;
|
||||
extern PFNDOLFOGCOORDFPROC dolFogCoordf;
|
||||
extern PFNDOLFOGCOORDFVPROC dolFogCoordfv;
|
||||
extern PFNDOLMULTIDRAWARRAYSPROC dolMultiDrawArrays;
|
||||
extern PFNDOLMULTIDRAWELEMENTSPROC dolMultiDrawElements;
|
||||
extern PFNDOLPOINTPARAMETERFPROC dolPointParameterf;
|
||||
extern PFNDOLPOINTPARAMETERFVPROC dolPointParameterfv;
|
||||
extern PFNDOLPOINTPARAMETERIPROC dolPointParameteri;
|
||||
extern PFNDOLPOINTPARAMETERIVPROC dolPointParameteriv;
|
||||
extern PFNDOLSECONDARYCOLOR3BPROC dolSecondaryColor3b;
|
||||
extern PFNDOLSECONDARYCOLOR3BVPROC dolSecondaryColor3bv;
|
||||
extern PFNDOLSECONDARYCOLOR3DPROC dolSecondaryColor3d;
|
||||
extern PFNDOLSECONDARYCOLOR3DVPROC dolSecondaryColor3dv;
|
||||
extern PFNDOLSECONDARYCOLOR3FPROC dolSecondaryColor3f;
|
||||
extern PFNDOLSECONDARYCOLOR3FVPROC dolSecondaryColor3fv;
|
||||
extern PFNDOLSECONDARYCOLOR3IPROC dolSecondaryColor3i;
|
||||
extern PFNDOLSECONDARYCOLOR3IVPROC dolSecondaryColor3iv;
|
||||
extern PFNDOLSECONDARYCOLOR3SPROC dolSecondaryColor3s;
|
||||
extern PFNDOLSECONDARYCOLOR3SVPROC dolSecondaryColor3sv;
|
||||
extern PFNDOLSECONDARYCOLOR3UBPROC dolSecondaryColor3ub;
|
||||
extern PFNDOLSECONDARYCOLOR3UBVPROC dolSecondaryColor3ubv;
|
||||
extern PFNDOLSECONDARYCOLOR3UIPROC dolSecondaryColor3ui;
|
||||
extern PFNDOLSECONDARYCOLOR3UIVPROC dolSecondaryColor3uiv;
|
||||
extern PFNDOLSECONDARYCOLOR3USPROC dolSecondaryColor3us;
|
||||
extern PFNDOLSECONDARYCOLOR3USVPROC dolSecondaryColor3usv;
|
||||
extern PFNDOLSECONDARYCOLORPOINTERPROC dolSecondaryColorPointer;
|
||||
extern PFNDOLWINDOWPOS2DPROC dolWindowPos2d;
|
||||
extern PFNDOLWINDOWPOS2DVPROC dolWindowPos2dv;
|
||||
extern PFNDOLWINDOWPOS2FPROC dolWindowPos2f;
|
||||
extern PFNDOLWINDOWPOS2FVPROC dolWindowPos2fv;
|
||||
extern PFNDOLWINDOWPOS2IPROC dolWindowPos2i;
|
||||
extern PFNDOLWINDOWPOS2IVPROC dolWindowPos2iv;
|
||||
extern PFNDOLWINDOWPOS2SPROC dolWindowPos2s;
|
||||
extern PFNDOLWINDOWPOS2SVPROC dolWindowPos2sv;
|
||||
extern PFNDOLWINDOWPOS3DPROC dolWindowPos3d;
|
||||
extern PFNDOLWINDOWPOS3DVPROC dolWindowPos3dv;
|
||||
extern PFNDOLWINDOWPOS3FPROC dolWindowPos3f;
|
||||
extern PFNDOLWINDOWPOS3FVPROC dolWindowPos3fv;
|
||||
extern PFNDOLWINDOWPOS3IPROC dolWindowPos3i;
|
||||
extern PFNDOLWINDOWPOS3IVPROC dolWindowPos3iv;
|
||||
extern PFNDOLWINDOWPOS3SPROC dolWindowPos3s;
|
||||
extern PFNDOLWINDOWPOS3SVPROC dolWindowPos3sv;
|
||||
|
||||
#define glBlendColor dolBlendColor
|
||||
#define glBlendEquation dolBlendEquation
|
||||
#define glBlendFuncSeparate dolBlendFuncSeparate
|
||||
#define glFogCoordPointer dolFogCoordPointer
|
||||
#define glFogCoordd dolFogCoordd
|
||||
#define glFogCoorddv dolFogCoorddv
|
||||
#define glFogCoordf dolFogCoordf
|
||||
#define glFogCoordfv dolFogCoordfv
|
||||
#define glMultiDrawArrays dolMultiDrawArrays
|
||||
#define glMultiDrawElements dolMultiDrawElements
|
||||
#define glPointParameterf dolPointParameterf
|
||||
#define glPointParameterfv dolPointParameterfv
|
||||
#define glPointParameteri dolPointParameteri
|
||||
#define glPointParameteriv dolPointParameteriv
|
||||
#define glSecondaryColor3b dolSecondaryColor3b
|
||||
#define glSecondaryColor3bv dolSecondaryColor3bv
|
||||
#define glSecondaryColor3d dolSecondaryColor3d
|
||||
#define glSecondaryColor3dv dolSecondaryColor3dv
|
||||
#define glSecondaryColor3f dolSecondaryColor3f
|
||||
#define glSecondaryColor3fv dolSecondaryColor3fv
|
||||
#define glSecondaryColor3i dolSecondaryColor3i
|
||||
#define glSecondaryColor3iv dolSecondaryColor3iv
|
||||
#define glSecondaryColor3s dolSecondaryColor3s
|
||||
#define glSecondaryColor3sv dolSecondaryColor3sv
|
||||
#define glSecondaryColor3ub dolSecondaryColor3ub
|
||||
#define glSecondaryColor3ubv dolSecondaryColor3ubv
|
||||
#define glSecondaryColor3ui dolSecondaryColor3ui
|
||||
#define glSecondaryColor3uiv dolSecondaryColor3uiv
|
||||
#define glSecondaryColor3us dolSecondaryColor3us
|
||||
#define glSecondaryColor3usv dolSecondaryColor3usv
|
||||
#define glSecondaryColorPointer dolSecondaryColorPointer
|
||||
#define glWindowPos2d dolWindowPos2d
|
||||
#define glWindowPos2dv dolWindowPos2dv
|
||||
#define glWindowPos2f dolWindowPos2f
|
||||
#define glWindowPos2fv dolWindowPos2fv
|
||||
#define glWindowPos2i dolWindowPos2i
|
||||
#define glWindowPos2iv dolWindowPos2iv
|
||||
#define glWindowPos2s dolWindowPos2s
|
||||
#define glWindowPos2sv dolWindowPos2sv
|
||||
#define glWindowPos3d dolWindowPos3d
|
||||
#define glWindowPos3dv dolWindowPos3dv
|
||||
#define glWindowPos3f dolWindowPos3f
|
||||
#define glWindowPos3fv dolWindowPos3fv
|
||||
#define glWindowPos3i dolWindowPos3i
|
||||
#define glWindowPos3iv dolWindowPos3iv
|
||||
#define glWindowPos3s dolWindowPos3s
|
||||
#define glWindowPos3sv dolWindowPos3sv
|
||||
|
@ -1,26 +1,135 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBEGINQUERYPROC glBeginQuery;
|
||||
extern PFNGLBINDBUFFERPROC glBindBuffer;
|
||||
extern PFNGLBUFFERDATAPROC glBufferData;
|
||||
extern PFNGLBUFFERSUBDATAPROC glBufferSubData;
|
||||
extern PFNGLDELETEBUFFERSPROC glDeleteBuffers;
|
||||
extern PFNGLDELETEQUERIESPROC glDeleteQueries;
|
||||
extern PFNGLENDQUERYPROC glEndQuery;
|
||||
extern PFNGLGENBUFFERSPROC glGenBuffers;
|
||||
extern PFNGLGENQUERIESPROC glGenQueries;
|
||||
extern PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv;
|
||||
extern PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv;
|
||||
extern PFNGLGETBUFFERSUBDATAPROC glGetBufferSubData;
|
||||
extern PFNGLGETQUERYOBJECTIVPROC glGetQueryObjectiv;
|
||||
extern PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv;
|
||||
extern PFNGLGETQUERYIVPROC glGetQueryiv;
|
||||
extern PFNGLISBUFFERPROC glIsBuffer;
|
||||
extern PFNGLISQUERYPROC glIsQuery;
|
||||
extern PFNGLMAPBUFFERPROC glMapBuffer;
|
||||
extern PFNGLUNMAPBUFFERPROC glUnmapBuffer;
|
||||
#define GL_BUFFER_SIZE 0x8764
|
||||
#define GL_BUFFER_USAGE 0x8765
|
||||
#define GL_QUERY_COUNTER_BITS 0x8864
|
||||
#define GL_CURRENT_QUERY 0x8865
|
||||
#define GL_QUERY_RESULT 0x8866
|
||||
#define GL_QUERY_RESULT_AVAILABLE 0x8867
|
||||
#define GL_ARRAY_BUFFER 0x8892
|
||||
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
|
||||
#define GL_ARRAY_BUFFER_BINDING 0x8894
|
||||
#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
|
||||
#define GL_READ_ONLY 0x88B8
|
||||
#define GL_WRITE_ONLY 0x88B9
|
||||
#define GL_READ_WRITE 0x88BA
|
||||
#define GL_BUFFER_ACCESS 0x88BB
|
||||
#define GL_BUFFER_MAPPED 0x88BC
|
||||
#define GL_BUFFER_MAP_POINTER 0x88BD
|
||||
#define GL_STREAM_DRAW 0x88E0
|
||||
#define GL_STREAM_READ 0x88E1
|
||||
#define GL_STREAM_COPY 0x88E2
|
||||
#define GL_STATIC_DRAW 0x88E4
|
||||
#define GL_STATIC_READ 0x88E5
|
||||
#define GL_STATIC_COPY 0x88E6
|
||||
#define GL_DYNAMIC_DRAW 0x88E8
|
||||
#define GL_DYNAMIC_READ 0x88E9
|
||||
#define GL_DYNAMIC_COPY 0x88EA
|
||||
#define GL_SAMPLES_PASSED 0x8914
|
||||
#define GL_SRC1_ALPHA 0x8589
|
||||
#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
|
||||
#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
|
||||
#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
|
||||
#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
|
||||
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
|
||||
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
|
||||
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
|
||||
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
|
||||
#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
|
||||
#define GL_FOG_COORD_SRC 0x8450
|
||||
#define GL_FOG_COORD 0x8451
|
||||
#define GL_CURRENT_FOG_COORD 0x8453
|
||||
#define GL_FOG_COORD_ARRAY_TYPE 0x8454
|
||||
#define GL_FOG_COORD_ARRAY_STRIDE 0x8455
|
||||
#define GL_FOG_COORD_ARRAY_POINTER 0x8456
|
||||
#define GL_FOG_COORD_ARRAY 0x8457
|
||||
#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
|
||||
#define GL_SRC0_RGB 0x8580
|
||||
#define GL_SRC1_RGB 0x8581
|
||||
#define GL_SRC2_RGB 0x8582
|
||||
#define GL_SRC0_ALPHA 0x8588
|
||||
#define GL_SRC2_ALPHA 0x858A
|
||||
|
||||
typedef void (APIENTRYP PFNDOLGENQUERIESPROC) (GLsizei n, GLuint *ids);
|
||||
typedef void (APIENTRYP PFNDOLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISQUERYPROC) (GLuint id);
|
||||
typedef void (APIENTRYP PFNDOLBEGINQUERYPROC) (GLenum target, GLuint id);
|
||||
typedef void (APIENTRYP PFNDOLENDQUERYPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
|
||||
typedef void (APIENTRYP PFNDOLBINDBUFFERPROC) (GLenum target, GLuint buffer);
|
||||
typedef void (APIENTRYP PFNDOLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
|
||||
typedef void (APIENTRYP PFNDOLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISBUFFERPROC) (GLuint buffer);
|
||||
typedef void (APIENTRYP PFNDOLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
|
||||
typedef void (APIENTRYP PFNDOLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
|
||||
typedef void (APIENTRYP PFNDOLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
|
||||
typedef void *(APIENTRYP PFNDOLMAPBUFFERPROC) (GLenum target, GLenum access);
|
||||
typedef GLboolean (APIENTRYP PFNDOLUNMAPBUFFERPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
|
||||
|
||||
extern PFNDOLBEGINQUERYPROC dolBeginQuery;
|
||||
extern PFNDOLBINDBUFFERPROC dolBindBuffer;
|
||||
extern PFNDOLBUFFERDATAPROC dolBufferData;
|
||||
extern PFNDOLBUFFERSUBDATAPROC dolBufferSubData;
|
||||
extern PFNDOLDELETEBUFFERSPROC dolDeleteBuffers;
|
||||
extern PFNDOLDELETEQUERIESPROC dolDeleteQueries;
|
||||
extern PFNDOLENDQUERYPROC dolEndQuery;
|
||||
extern PFNDOLGENBUFFERSPROC dolGenBuffers;
|
||||
extern PFNDOLGENQUERIESPROC dolGenQueries;
|
||||
extern PFNDOLGETBUFFERPARAMETERIVPROC dolGetBufferParameteriv;
|
||||
extern PFNDOLGETBUFFERPOINTERVPROC dolGetBufferPointerv;
|
||||
extern PFNDOLGETBUFFERSUBDATAPROC dolGetBufferSubData;
|
||||
extern PFNDOLGETQUERYOBJECTIVPROC dolGetQueryObjectiv;
|
||||
extern PFNDOLGETQUERYOBJECTUIVPROC dolGetQueryObjectuiv;
|
||||
extern PFNDOLGETQUERYIVPROC dolGetQueryiv;
|
||||
extern PFNDOLISBUFFERPROC dolIsBuffer;
|
||||
extern PFNDOLISQUERYPROC dolIsQuery;
|
||||
extern PFNDOLMAPBUFFERPROC dolMapBuffer;
|
||||
extern PFNDOLUNMAPBUFFERPROC dolUnmapBuffer;
|
||||
|
||||
#define glBeginQuery dolBeginQuery
|
||||
#define glBindBuffer dolBindBuffer
|
||||
#define glBufferData dolBufferData
|
||||
#define glBufferSubData dolBufferSubData
|
||||
#define glDeleteBuffers dolDeleteBuffers
|
||||
#define glDeleteQueries dolDeleteQueries
|
||||
#define glEndQuery dolEndQuery
|
||||
#define glGenBuffers dolGenBuffers
|
||||
#define glGenQueries dolGenQueries
|
||||
#define glGetBufferParameteriv dolGetBufferParameteriv
|
||||
#define glGetBufferPointerv dolGetBufferPointerv
|
||||
#define glGetBufferSubData dolGetBufferSubData
|
||||
#define glGetQueryObjectiv dolGetQueryObjectiv
|
||||
#define glGetQueryObjectuiv dolGetQueryObjectuiv
|
||||
#define glGetQueryiv dolGetQueryiv
|
||||
#define glIsBuffer dolIsBuffer
|
||||
#define glIsQuery dolIsQuery
|
||||
#define glMapBuffer dolMapBuffer
|
||||
#define glUnmapBuffer dolUnmapBuffer
|
||||
|
@ -1,100 +1,391 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLATTACHSHADERPROC glAttachShader;
|
||||
extern PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation;
|
||||
extern PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate;
|
||||
extern PFNGLCOMPILESHADERPROC glCompileShader;
|
||||
extern PFNGLCREATEPROGRAMPROC glCreateProgram;
|
||||
extern PFNGLCREATESHADERPROC glCreateShader;
|
||||
extern PFNGLDELETEPROGRAMPROC glDeleteProgram;
|
||||
extern PFNGLDELETESHADERPROC glDeleteShader;
|
||||
extern PFNGLDETACHSHADERPROC glDetachShader;
|
||||
extern PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray;
|
||||
extern PFNGLDRAWBUFFERSPROC glDrawBuffers;
|
||||
extern PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray;
|
||||
extern PFNGLGETACTIVEATTRIBPROC glGetActiveAttrib;
|
||||
extern PFNGLGETACTIVEUNIFORMPROC glGetActiveUniform;
|
||||
extern PFNGLGETATTACHEDSHADERSPROC glGetAttachedShaders;
|
||||
extern PFNGLGETATTRIBLOCATIONPROC glGetAttribLocation;
|
||||
extern PFNGLGETPROGRAMINFOLOGPROC glGetProgramInfoLog;
|
||||
extern PFNGLGETPROGRAMIVPROC glGetProgramiv;
|
||||
extern PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog;
|
||||
extern PFNGLGETSHADERSOURCEPROC glGetShaderSource;
|
||||
extern PFNGLGETSHADERIVPROC glGetShaderiv;
|
||||
extern PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation;
|
||||
extern PFNGLGETUNIFORMFVPROC glGetUniformfv;
|
||||
extern PFNGLGETUNIFORMIVPROC glGetUniformiv;
|
||||
extern PFNGLGETVERTEXATTRIBPOINTERVPROC glGetVertexAttribPointerv;
|
||||
extern PFNGLGETVERTEXATTRIBDVPROC glGetVertexAttribdv;
|
||||
extern PFNGLGETVERTEXATTRIBFVPROC glGetVertexAttribfv;
|
||||
extern PFNGLGETVERTEXATTRIBIVPROC glGetVertexAttribiv;
|
||||
extern PFNGLISPROGRAMPROC glIsProgram;
|
||||
extern PFNGLISSHADERPROC glIsShader;
|
||||
extern PFNGLLINKPROGRAMPROC glLinkProgram;
|
||||
extern PFNGLSHADERSOURCEPROC glShaderSource;
|
||||
extern PFNGLSTENCILFUNCSEPARATEPROC glStencilFuncSeparate;
|
||||
extern PFNGLSTENCILMASKSEPARATEPROC glStencilMaskSeparate;
|
||||
extern PFNGLSTENCILOPSEPARATEPROC glStencilOpSeparate;
|
||||
extern PFNGLUNIFORM1FPROC glUniform1f;
|
||||
extern PFNGLUNIFORM1FVPROC glUniform1fv;
|
||||
extern PFNGLUNIFORM1IPROC glUniform1i;
|
||||
extern PFNGLUNIFORM1IVPROC glUniform1iv;
|
||||
extern PFNGLUNIFORM2FPROC glUniform2f;
|
||||
extern PFNGLUNIFORM2FVPROC glUniform2fv;
|
||||
extern PFNGLUNIFORM2IPROC glUniform2i;
|
||||
extern PFNGLUNIFORM2IVPROC glUniform2iv;
|
||||
extern PFNGLUNIFORM3FPROC glUniform3f;
|
||||
extern PFNGLUNIFORM3FVPROC glUniform3fv;
|
||||
extern PFNGLUNIFORM3IPROC glUniform3i;
|
||||
extern PFNGLUNIFORM3IVPROC glUniform3iv;
|
||||
extern PFNGLUNIFORM4FPROC glUniform4f;
|
||||
extern PFNGLUNIFORM4FVPROC glUniform4fv;
|
||||
extern PFNGLUNIFORM4IPROC glUniform4i;
|
||||
extern PFNGLUNIFORM4IVPROC glUniform4iv;
|
||||
extern PFNGLUNIFORMMATRIX2FVPROC glUniformMatrix2fv;
|
||||
extern PFNGLUNIFORMMATRIX3FVPROC glUniformMatrix3fv;
|
||||
extern PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv;
|
||||
extern PFNGLUSEPROGRAMPROC glUseProgram;
|
||||
extern PFNGLVALIDATEPROGRAMPROC glValidateProgram;
|
||||
extern PFNGLVERTEXATTRIB1DPROC glVertexAttrib1d;
|
||||
extern PFNGLVERTEXATTRIB1DVPROC glVertexAttrib1dv;
|
||||
extern PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f;
|
||||
extern PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv;
|
||||
extern PFNGLVERTEXATTRIB1SPROC glVertexAttrib1s;
|
||||
extern PFNGLVERTEXATTRIB1SVPROC glVertexAttrib1sv;
|
||||
extern PFNGLVERTEXATTRIB2DPROC glVertexAttrib2d;
|
||||
extern PFNGLVERTEXATTRIB2DVPROC glVertexAttrib2dv;
|
||||
extern PFNGLVERTEXATTRIB2FPROC glVertexAttrib2f;
|
||||
extern PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv;
|
||||
extern PFNGLVERTEXATTRIB2SPROC glVertexAttrib2s;
|
||||
extern PFNGLVERTEXATTRIB2SVPROC glVertexAttrib2sv;
|
||||
extern PFNGLVERTEXATTRIB3DPROC glVertexAttrib3d;
|
||||
extern PFNGLVERTEXATTRIB3DVPROC glVertexAttrib3dv;
|
||||
extern PFNGLVERTEXATTRIB3FPROC glVertexAttrib3f;
|
||||
extern PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv;
|
||||
extern PFNGLVERTEXATTRIB3SPROC glVertexAttrib3s;
|
||||
extern PFNGLVERTEXATTRIB3SVPROC glVertexAttrib3sv;
|
||||
extern PFNGLVERTEXATTRIB4NBVPROC glVertexAttrib4Nbv;
|
||||
extern PFNGLVERTEXATTRIB4NIVPROC glVertexAttrib4Niv;
|
||||
extern PFNGLVERTEXATTRIB4NSVPROC glVertexAttrib4Nsv;
|
||||
extern PFNGLVERTEXATTRIB4NUBPROC glVertexAttrib4Nub;
|
||||
extern PFNGLVERTEXATTRIB4NUBVPROC glVertexAttrib4Nubv;
|
||||
extern PFNGLVERTEXATTRIB4NUIVPROC glVertexAttrib4Nuiv;
|
||||
extern PFNGLVERTEXATTRIB4NUSVPROC glVertexAttrib4Nusv;
|
||||
extern PFNGLVERTEXATTRIB4BVPROC glVertexAttrib4bv;
|
||||
extern PFNGLVERTEXATTRIB4DPROC glVertexAttrib4d;
|
||||
extern PFNGLVERTEXATTRIB4DVPROC glVertexAttrib4dv;
|
||||
extern PFNGLVERTEXATTRIB4FPROC glVertexAttrib4f;
|
||||
extern PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv;
|
||||
extern PFNGLVERTEXATTRIB4IVPROC glVertexAttrib4iv;
|
||||
extern PFNGLVERTEXATTRIB4SPROC glVertexAttrib4s;
|
||||
extern PFNGLVERTEXATTRIB4SVPROC glVertexAttrib4sv;
|
||||
extern PFNGLVERTEXATTRIB4UBVPROC glVertexAttrib4ubv;
|
||||
extern PFNGLVERTEXATTRIB4UIVPROC glVertexAttrib4uiv;
|
||||
extern PFNGLVERTEXATTRIB4USVPROC glVertexAttrib4usv;
|
||||
extern PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer;
|
||||
#define GL_BLEND_EQUATION_RGB 0x8009
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
|
||||
#define GL_CURRENT_VERTEX_ATTRIB 0x8626
|
||||
#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
|
||||
#define GL_STENCIL_BACK_FUNC 0x8800
|
||||
#define GL_STENCIL_BACK_FAIL 0x8801
|
||||
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
|
||||
#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
|
||||
#define GL_MAX_DRAW_BUFFERS 0x8824
|
||||
#define GL_DRAW_BUFFER0 0x8825
|
||||
#define GL_DRAW_BUFFER1 0x8826
|
||||
#define GL_DRAW_BUFFER2 0x8827
|
||||
#define GL_DRAW_BUFFER3 0x8828
|
||||
#define GL_DRAW_BUFFER4 0x8829
|
||||
#define GL_DRAW_BUFFER5 0x882A
|
||||
#define GL_DRAW_BUFFER6 0x882B
|
||||
#define GL_DRAW_BUFFER7 0x882C
|
||||
#define GL_DRAW_BUFFER8 0x882D
|
||||
#define GL_DRAW_BUFFER9 0x882E
|
||||
#define GL_DRAW_BUFFER10 0x882F
|
||||
#define GL_DRAW_BUFFER11 0x8830
|
||||
#define GL_DRAW_BUFFER12 0x8831
|
||||
#define GL_DRAW_BUFFER13 0x8832
|
||||
#define GL_DRAW_BUFFER14 0x8833
|
||||
#define GL_DRAW_BUFFER15 0x8834
|
||||
#define GL_BLEND_EQUATION_ALPHA 0x883D
|
||||
#define GL_MAX_VERTEX_ATTRIBS 0x8869
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
|
||||
#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
|
||||
#define GL_FRAGMENT_SHADER 0x8B30
|
||||
#define GL_VERTEX_SHADER 0x8B31
|
||||
#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
|
||||
#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
|
||||
#define GL_MAX_VARYING_FLOATS 0x8B4B
|
||||
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
|
||||
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
||||
#define GL_SHADER_TYPE 0x8B4F
|
||||
#define GL_FLOAT_VEC2 0x8B50
|
||||
#define GL_FLOAT_VEC3 0x8B51
|
||||
#define GL_FLOAT_VEC4 0x8B52
|
||||
#define GL_INT_VEC2 0x8B53
|
||||
#define GL_INT_VEC3 0x8B54
|
||||
#define GL_INT_VEC4 0x8B55
|
||||
#define GL_BOOL 0x8B56
|
||||
#define GL_BOOL_VEC2 0x8B57
|
||||
#define GL_BOOL_VEC3 0x8B58
|
||||
#define GL_BOOL_VEC4 0x8B59
|
||||
#define GL_FLOAT_MAT2 0x8B5A
|
||||
#define GL_FLOAT_MAT3 0x8B5B
|
||||
#define GL_FLOAT_MAT4 0x8B5C
|
||||
#define GL_SAMPLER_1D 0x8B5D
|
||||
#define GL_SAMPLER_2D 0x8B5E
|
||||
#define GL_SAMPLER_3D 0x8B5F
|
||||
#define GL_SAMPLER_CUBE 0x8B60
|
||||
#define GL_SAMPLER_1D_SHADOW 0x8B61
|
||||
#define GL_SAMPLER_2D_SHADOW 0x8B62
|
||||
#define GL_DELETE_STATUS 0x8B80
|
||||
#define GL_COMPILE_STATUS 0x8B81
|
||||
#define GL_LINK_STATUS 0x8B82
|
||||
#define GL_VALIDATE_STATUS 0x8B83
|
||||
#define GL_INFO_LOG_LENGTH 0x8B84
|
||||
#define GL_ATTACHED_SHADERS 0x8B85
|
||||
#define GL_ACTIVE_UNIFORMS 0x8B86
|
||||
#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
||||
#define GL_SHADER_SOURCE_LENGTH 0x8B88
|
||||
#define GL_ACTIVE_ATTRIBUTES 0x8B89
|
||||
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
|
||||
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
|
||||
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
||||
#define GL_CURRENT_PROGRAM 0x8B8D
|
||||
#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
|
||||
#define GL_LOWER_LEFT 0x8CA1
|
||||
#define GL_UPPER_LEFT 0x8CA2
|
||||
#define GL_STENCIL_BACK_REF 0x8CA3
|
||||
#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
|
||||
#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
|
||||
#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
|
||||
#define GL_POINT_SPRITE 0x8861
|
||||
#define GL_COORD_REPLACE 0x8862
|
||||
#define GL_MAX_TEXTURE_COORDS 0x8871
|
||||
|
||||
typedef void (APIENTRYP PFNDOLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
|
||||
typedef void (APIENTRYP PFNDOLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
|
||||
typedef void (APIENTRYP PFNDOLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
typedef void (APIENTRYP PFNDOLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||
typedef void (APIENTRYP PFNDOLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
|
||||
typedef void (APIENTRYP PFNDOLATTACHSHADERPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRYP PFNDOLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLCOMPILESHADERPROC) (GLuint shader);
|
||||
typedef GLuint (APIENTRYP PFNDOLCREATEPROGRAMPROC) (void);
|
||||
typedef GLuint (APIENTRYP PFNDOLCREATESHADERPROC) (GLenum type);
|
||||
typedef void (APIENTRYP PFNDOLDELETEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNDOLDELETESHADERPROC) (GLuint shader);
|
||||
typedef void (APIENTRYP PFNDOLDETACHSHADERPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRYP PFNDOLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
|
||||
typedef GLint (APIENTRYP PFNDOLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||
typedef void (APIENTRYP PFNDOLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||
typedef void (APIENTRYP PFNDOLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
|
||||
typedef GLint (APIENTRYP PFNDOLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNDOLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISPROGRAMPROC) (GLuint program);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISSHADERPROC) (GLuint shader);
|
||||
typedef void (APIENTRYP PFNDOLLINKPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNDOLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
|
||||
typedef void (APIENTRYP PFNDOLUSEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1FPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1IPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLVALIDATEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
|
||||
|
||||
extern PFNDOLATTACHSHADERPROC dolAttachShader;
|
||||
extern PFNDOLBINDATTRIBLOCATIONPROC dolBindAttribLocation;
|
||||
extern PFNDOLBLENDEQUATIONSEPARATEPROC dolBlendEquationSeparate;
|
||||
extern PFNDOLCOMPILESHADERPROC dolCompileShader;
|
||||
extern PFNDOLCREATEPROGRAMPROC dolCreateProgram;
|
||||
extern PFNDOLCREATESHADERPROC dolCreateShader;
|
||||
extern PFNDOLDELETEPROGRAMPROC dolDeleteProgram;
|
||||
extern PFNDOLDELETESHADERPROC dolDeleteShader;
|
||||
extern PFNDOLDETACHSHADERPROC dolDetachShader;
|
||||
extern PFNDOLDISABLEVERTEXATTRIBARRAYPROC dolDisableVertexAttribArray;
|
||||
extern PFNDOLDRAWBUFFERSPROC dolDrawBuffers;
|
||||
extern PFNDOLENABLEVERTEXATTRIBARRAYPROC dolEnableVertexAttribArray;
|
||||
extern PFNDOLGETACTIVEATTRIBPROC dolGetActiveAttrib;
|
||||
extern PFNDOLGETACTIVEUNIFORMPROC dolGetActiveUniform;
|
||||
extern PFNDOLGETATTACHEDSHADERSPROC dolGetAttachedShaders;
|
||||
extern PFNDOLGETATTRIBLOCATIONPROC dolGetAttribLocation;
|
||||
extern PFNDOLGETPROGRAMINFOLOGPROC dolGetProgramInfoLog;
|
||||
extern PFNDOLGETPROGRAMIVPROC dolGetProgramiv;
|
||||
extern PFNDOLGETSHADERINFOLOGPROC dolGetShaderInfoLog;
|
||||
extern PFNDOLGETSHADERSOURCEPROC dolGetShaderSource;
|
||||
extern PFNDOLGETSHADERIVPROC dolGetShaderiv;
|
||||
extern PFNDOLGETUNIFORMLOCATIONPROC dolGetUniformLocation;
|
||||
extern PFNDOLGETUNIFORMFVPROC dolGetUniformfv;
|
||||
extern PFNDOLGETUNIFORMIVPROC dolGetUniformiv;
|
||||
extern PFNDOLGETVERTEXATTRIBPOINTERVPROC dolGetVertexAttribPointerv;
|
||||
extern PFNDOLGETVERTEXATTRIBDVPROC dolGetVertexAttribdv;
|
||||
extern PFNDOLGETVERTEXATTRIBFVPROC dolGetVertexAttribfv;
|
||||
extern PFNDOLGETVERTEXATTRIBIVPROC dolGetVertexAttribiv;
|
||||
extern PFNDOLISPROGRAMPROC dolIsProgram;
|
||||
extern PFNDOLISSHADERPROC dolIsShader;
|
||||
extern PFNDOLLINKPROGRAMPROC dolLinkProgram;
|
||||
extern PFNDOLSHADERSOURCEPROC dolShaderSource;
|
||||
extern PFNDOLSTENCILFUNCSEPARATEPROC dolStencilFuncSeparate;
|
||||
extern PFNDOLSTENCILMASKSEPARATEPROC dolStencilMaskSeparate;
|
||||
extern PFNDOLSTENCILOPSEPARATEPROC dolStencilOpSeparate;
|
||||
extern PFNDOLUNIFORM1FPROC dolUniform1f;
|
||||
extern PFNDOLUNIFORM1FVPROC dolUniform1fv;
|
||||
extern PFNDOLUNIFORM1IPROC dolUniform1i;
|
||||
extern PFNDOLUNIFORM1IVPROC dolUniform1iv;
|
||||
extern PFNDOLUNIFORM2FPROC dolUniform2f;
|
||||
extern PFNDOLUNIFORM2FVPROC dolUniform2fv;
|
||||
extern PFNDOLUNIFORM2IPROC dolUniform2i;
|
||||
extern PFNDOLUNIFORM2IVPROC dolUniform2iv;
|
||||
extern PFNDOLUNIFORM3FPROC dolUniform3f;
|
||||
extern PFNDOLUNIFORM3FVPROC dolUniform3fv;
|
||||
extern PFNDOLUNIFORM3IPROC dolUniform3i;
|
||||
extern PFNDOLUNIFORM3IVPROC dolUniform3iv;
|
||||
extern PFNDOLUNIFORM4FPROC dolUniform4f;
|
||||
extern PFNDOLUNIFORM4FVPROC dolUniform4fv;
|
||||
extern PFNDOLUNIFORM4IPROC dolUniform4i;
|
||||
extern PFNDOLUNIFORM4IVPROC dolUniform4iv;
|
||||
extern PFNDOLUNIFORMMATRIX2FVPROC dolUniformMatrix2fv;
|
||||
extern PFNDOLUNIFORMMATRIX3FVPROC dolUniformMatrix3fv;
|
||||
extern PFNDOLUNIFORMMATRIX4FVPROC dolUniformMatrix4fv;
|
||||
extern PFNDOLUSEPROGRAMPROC dolUseProgram;
|
||||
extern PFNDOLVALIDATEPROGRAMPROC dolValidateProgram;
|
||||
extern PFNDOLVERTEXATTRIB1DPROC dolVertexAttrib1d;
|
||||
extern PFNDOLVERTEXATTRIB1DVPROC dolVertexAttrib1dv;
|
||||
extern PFNDOLVERTEXATTRIB1FPROC dolVertexAttrib1f;
|
||||
extern PFNDOLVERTEXATTRIB1FVPROC dolVertexAttrib1fv;
|
||||
extern PFNDOLVERTEXATTRIB1SPROC dolVertexAttrib1s;
|
||||
extern PFNDOLVERTEXATTRIB1SVPROC dolVertexAttrib1sv;
|
||||
extern PFNDOLVERTEXATTRIB2DPROC dolVertexAttrib2d;
|
||||
extern PFNDOLVERTEXATTRIB2DVPROC dolVertexAttrib2dv;
|
||||
extern PFNDOLVERTEXATTRIB2FPROC dolVertexAttrib2f;
|
||||
extern PFNDOLVERTEXATTRIB2FVPROC dolVertexAttrib2fv;
|
||||
extern PFNDOLVERTEXATTRIB2SPROC dolVertexAttrib2s;
|
||||
extern PFNDOLVERTEXATTRIB2SVPROC dolVertexAttrib2sv;
|
||||
extern PFNDOLVERTEXATTRIB3DPROC dolVertexAttrib3d;
|
||||
extern PFNDOLVERTEXATTRIB3DVPROC dolVertexAttrib3dv;
|
||||
extern PFNDOLVERTEXATTRIB3FPROC dolVertexAttrib3f;
|
||||
extern PFNDOLVERTEXATTRIB3FVPROC dolVertexAttrib3fv;
|
||||
extern PFNDOLVERTEXATTRIB3SPROC dolVertexAttrib3s;
|
||||
extern PFNDOLVERTEXATTRIB3SVPROC dolVertexAttrib3sv;
|
||||
extern PFNDOLVERTEXATTRIB4NBVPROC dolVertexAttrib4Nbv;
|
||||
extern PFNDOLVERTEXATTRIB4NIVPROC dolVertexAttrib4Niv;
|
||||
extern PFNDOLVERTEXATTRIB4NSVPROC dolVertexAttrib4Nsv;
|
||||
extern PFNDOLVERTEXATTRIB4NUBPROC dolVertexAttrib4Nub;
|
||||
extern PFNDOLVERTEXATTRIB4NUBVPROC dolVertexAttrib4Nubv;
|
||||
extern PFNDOLVERTEXATTRIB4NUIVPROC dolVertexAttrib4Nuiv;
|
||||
extern PFNDOLVERTEXATTRIB4NUSVPROC dolVertexAttrib4Nusv;
|
||||
extern PFNDOLVERTEXATTRIB4BVPROC dolVertexAttrib4bv;
|
||||
extern PFNDOLVERTEXATTRIB4DPROC dolVertexAttrib4d;
|
||||
extern PFNDOLVERTEXATTRIB4DVPROC dolVertexAttrib4dv;
|
||||
extern PFNDOLVERTEXATTRIB4FPROC dolVertexAttrib4f;
|
||||
extern PFNDOLVERTEXATTRIB4FVPROC dolVertexAttrib4fv;
|
||||
extern PFNDOLVERTEXATTRIB4IVPROC dolVertexAttrib4iv;
|
||||
extern PFNDOLVERTEXATTRIB4SPROC dolVertexAttrib4s;
|
||||
extern PFNDOLVERTEXATTRIB4SVPROC dolVertexAttrib4sv;
|
||||
extern PFNDOLVERTEXATTRIB4UBVPROC dolVertexAttrib4ubv;
|
||||
extern PFNDOLVERTEXATTRIB4UIVPROC dolVertexAttrib4uiv;
|
||||
extern PFNDOLVERTEXATTRIB4USVPROC dolVertexAttrib4usv;
|
||||
extern PFNDOLVERTEXATTRIBPOINTERPROC dolVertexAttribPointer;
|
||||
|
||||
#define glAttachShader dolAttachShader
|
||||
#define glBindAttribLocation dolBindAttribLocation
|
||||
#define glBlendEquationSeparate dolBlendEquationSeparate
|
||||
#define glCompileShader dolCompileShader
|
||||
#define glCreateProgram dolCreateProgram
|
||||
#define glCreateShader dolCreateShader
|
||||
#define glDeleteProgram dolDeleteProgram
|
||||
#define glDeleteShader dolDeleteShader
|
||||
#define glDetachShader dolDetachShader
|
||||
#define glDisableVertexAttribArray dolDisableVertexAttribArray
|
||||
#define glDrawBuffers dolDrawBuffers
|
||||
#define glEnableVertexAttribArray dolEnableVertexAttribArray
|
||||
#define glGetActiveAttrib dolGetActiveAttrib
|
||||
#define glGetActiveUniform dolGetActiveUniform
|
||||
#define glGetAttachedShaders dolGetAttachedShaders
|
||||
#define glGetAttribLocation dolGetAttribLocation
|
||||
#define glGetProgramInfoLog dolGetProgramInfoLog
|
||||
#define glGetProgramiv dolGetProgramiv
|
||||
#define glGetShaderInfoLog dolGetShaderInfoLog
|
||||
#define glGetShaderSource dolGetShaderSource
|
||||
#define glGetShaderiv dolGetShaderiv
|
||||
#define glGetUniformLocation dolGetUniformLocation
|
||||
#define glGetUniformfv dolGetUniformfv
|
||||
#define glGetUniformiv dolGetUniformiv
|
||||
#define glGetVertexAttribPointerv dolGetVertexAttribPointerv
|
||||
#define glGetVertexAttribdv dolGetVertexAttribdv
|
||||
#define glGetVertexAttribfv dolGetVertexAttribfv
|
||||
#define glGetVertexAttribiv dolGetVertexAttribiv
|
||||
#define glIsProgram dolIsProgram
|
||||
#define glIsShader dolIsShader
|
||||
#define glLinkProgram dolLinkProgram
|
||||
#define glShaderSource dolShaderSource
|
||||
#define glStencilFuncSeparate dolStencilFuncSeparate
|
||||
#define glStencilMaskSeparate dolStencilMaskSeparate
|
||||
#define glStencilOpSeparate dolStencilOpSeparate
|
||||
#define glUniform1f dolUniform1f
|
||||
#define glUniform1fv dolUniform1fv
|
||||
#define glUniform1i dolUniform1i
|
||||
#define glUniform1iv dolUniform1iv
|
||||
#define glUniform2f dolUniform2f
|
||||
#define glUniform2fv dolUniform2fv
|
||||
#define glUniform2i dolUniform2i
|
||||
#define glUniform2iv dolUniform2iv
|
||||
#define glUniform3f dolUniform3f
|
||||
#define glUniform3fv dolUniform3fv
|
||||
#define glUniform3i dolUniform3i
|
||||
#define glUniform3iv dolUniform3iv
|
||||
#define glUniform4f dolUniform4f
|
||||
#define glUniform4fv dolUniform4fv
|
||||
#define glUniform4i dolUniform4i
|
||||
#define glUniform4iv dolUniform4iv
|
||||
#define glUniformMatrix2fv dolUniformMatrix2fv
|
||||
#define glUniformMatrix3fv dolUniformMatrix3fv
|
||||
#define glUniformMatrix4fv dolUniformMatrix4fv
|
||||
#define glUseProgram dolUseProgram
|
||||
#define glValidateProgram dolValidateProgram
|
||||
#define glVertexAttrib1d dolVertexAttrib1d
|
||||
#define glVertexAttrib1dv dolVertexAttrib1dv
|
||||
#define glVertexAttrib1f dolVertexAttrib1f
|
||||
#define glVertexAttrib1fv dolVertexAttrib1fv
|
||||
#define glVertexAttrib1s dolVertexAttrib1s
|
||||
#define glVertexAttrib1sv dolVertexAttrib1sv
|
||||
#define glVertexAttrib2d dolVertexAttrib2d
|
||||
#define glVertexAttrib2dv dolVertexAttrib2dv
|
||||
#define glVertexAttrib2f dolVertexAttrib2f
|
||||
#define glVertexAttrib2fv dolVertexAttrib2fv
|
||||
#define glVertexAttrib2s dolVertexAttrib2s
|
||||
#define glVertexAttrib2sv dolVertexAttrib2sv
|
||||
#define glVertexAttrib3d dolVertexAttrib3d
|
||||
#define glVertexAttrib3dv dolVertexAttrib3dv
|
||||
#define glVertexAttrib3f dolVertexAttrib3f
|
||||
#define glVertexAttrib3fv dolVertexAttrib3fv
|
||||
#define glVertexAttrib3s dolVertexAttrib3s
|
||||
#define glVertexAttrib3sv dolVertexAttrib3sv
|
||||
#define glVertexAttrib4Nbv dolVertexAttrib4Nbv
|
||||
#define glVertexAttrib4Niv dolVertexAttrib4Niv
|
||||
#define glVertexAttrib4Nsv dolVertexAttrib4Nsv
|
||||
#define glVertexAttrib4Nub dolVertexAttrib4Nub
|
||||
#define glVertexAttrib4Nubv dolVertexAttrib4Nubv
|
||||
#define glVertexAttrib4Nuiv dolVertexAttrib4Nuiv
|
||||
#define glVertexAttrib4Nusv dolVertexAttrib4Nusv
|
||||
#define glVertexAttrib4bv dolVertexAttrib4bv
|
||||
#define glVertexAttrib4d dolVertexAttrib4d
|
||||
#define glVertexAttrib4dv dolVertexAttrib4dv
|
||||
#define glVertexAttrib4f dolVertexAttrib4f
|
||||
#define glVertexAttrib4fv dolVertexAttrib4fv
|
||||
#define glVertexAttrib4iv dolVertexAttrib4iv
|
||||
#define glVertexAttrib4s dolVertexAttrib4s
|
||||
#define glVertexAttrib4sv dolVertexAttrib4sv
|
||||
#define glVertexAttrib4ubv dolVertexAttrib4ubv
|
||||
#define glVertexAttrib4uiv dolVertexAttrib4uiv
|
||||
#define glVertexAttrib4usv dolVertexAttrib4usv
|
||||
#define glVertexAttribPointer dolVertexAttribPointer
|
||||
|
69
Source/Core/Common/GL/GLExtensions/gl_2_1.h
Normal file
69
Source/Core/Common/GL/GLExtensions/gl_2_1.h
Normal file
@ -0,0 +1,69 @@
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
|
||||
#define GL_PIXEL_PACK_BUFFER 0x88EB
|
||||
#define GL_PIXEL_UNPACK_BUFFER 0x88EC
|
||||
#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
|
||||
#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
|
||||
#define GL_FLOAT_MAT2x3 0x8B65
|
||||
#define GL_FLOAT_MAT2x4 0x8B66
|
||||
#define GL_FLOAT_MAT3x2 0x8B67
|
||||
#define GL_FLOAT_MAT3x4 0x8B68
|
||||
#define GL_FLOAT_MAT4x2 0x8B69
|
||||
#define GL_FLOAT_MAT4x3 0x8B6A
|
||||
#define GL_SRGB 0x8C40
|
||||
#define GL_SRGB8 0x8C41
|
||||
#define GL_SRGB_ALPHA 0x8C42
|
||||
#define GL_SRGB8_ALPHA8 0x8C43
|
||||
#define GL_SLUMINANCE_ALPHA 0x8C44
|
||||
#define GL_SLUMINANCE8_ALPHA8 0x8C45
|
||||
#define GL_SLUMINANCE 0x8C46
|
||||
#define GL_SLUMINANCE8 0x8C47
|
||||
#define GL_COMPRESSED_SRGB 0x8C48
|
||||
#define GL_COMPRESSED_SRGB_ALPHA 0x8C49
|
||||
#define GL_COMPRESSED_SLUMINANCE 0x8C4A
|
||||
#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
|
||||
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
|
||||
extern PFNDOLUNIFORMMATRIX2X3FVPROC dolUniformMatrix2x3fv;
|
||||
extern PFNDOLUNIFORMMATRIX2X4FVPROC dolUniformMatrix2x4fv;
|
||||
extern PFNDOLUNIFORMMATRIX3X2FVPROC dolUniformMatrix3x2fv;
|
||||
extern PFNDOLUNIFORMMATRIX3X4FVPROC dolUniformMatrix3x4fv;
|
||||
extern PFNDOLUNIFORMMATRIX4X2FVPROC dolUniformMatrix4x2fv;
|
||||
extern PFNDOLUNIFORMMATRIX4X3FVPROC dolUniformMatrix4x3fv;
|
||||
|
||||
#define glUniformMatrix2x3fv dolUniformMatrix2x3fv
|
||||
#define glUniformMatrix2x4fv dolUniformMatrix2x4fv
|
||||
#define glUniformMatrix3x2fv dolUniformMatrix3x2fv
|
||||
#define glUniformMatrix3x4fv dolUniformMatrix3x4fv
|
||||
#define glUniformMatrix4x2fv dolUniformMatrix4x2fv
|
||||
#define glUniformMatrix4x3fv dolUniformMatrix4x3fv
|
@ -1,62 +1,459 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLBEGINCONDITIONALRENDERPROC glBeginConditionalRender;
|
||||
extern PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback;
|
||||
extern PFNGLBINDFRAGDATALOCATIONPROC glBindFragDataLocation;
|
||||
extern PFNGLCLAMPCOLORPROC glClampColor;
|
||||
extern PFNGLCLEARBUFFERFIPROC glClearBufferfi;
|
||||
extern PFNGLCLEARBUFFERFVPROC glClearBufferfv;
|
||||
extern PFNGLCLEARBUFFERIVPROC glClearBufferiv;
|
||||
extern PFNGLCLEARBUFFERUIVPROC glClearBufferuiv;
|
||||
extern PFNGLCOLORMASKIPROC glColorMaski;
|
||||
extern PFNGLDISABLEIPROC glDisablei;
|
||||
extern PFNGLENABLEIPROC glEnablei;
|
||||
extern PFNGLENDCONDITIONALRENDERPROC glEndConditionalRender;
|
||||
extern PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback;
|
||||
extern PFNGLGETBOOLEANI_VPROC glGetBooleani_v;
|
||||
extern PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation;
|
||||
extern PFNGLGETSTRINGIPROC glGetStringi;
|
||||
extern PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv;
|
||||
extern PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv;
|
||||
extern PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying;
|
||||
extern PFNGLGETUNIFORMUIVPROC glGetUniformuiv;
|
||||
extern PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv;
|
||||
extern PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv;
|
||||
extern PFNGLISENABLEDIPROC glIsEnabledi;
|
||||
extern PFNGLTEXPARAMETERIIVPROC glTexParameterIiv;
|
||||
extern PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv;
|
||||
extern PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings;
|
||||
extern PFNGLUNIFORM1UIPROC glUniform1ui;
|
||||
extern PFNGLUNIFORM1UIVPROC glUniform1uiv;
|
||||
extern PFNGLUNIFORM2UIPROC glUniform2ui;
|
||||
extern PFNGLUNIFORM2UIVPROC glUniform2uiv;
|
||||
extern PFNGLUNIFORM3UIPROC glUniform3ui;
|
||||
extern PFNGLUNIFORM3UIVPROC glUniform3uiv;
|
||||
extern PFNGLUNIFORM4UIPROC glUniform4ui;
|
||||
extern PFNGLUNIFORM4UIVPROC glUniform4uiv;
|
||||
extern PFNGLVERTEXATTRIBI1IPROC glVertexAttribI1i;
|
||||
extern PFNGLVERTEXATTRIBI1IVPROC glVertexAttribI1iv;
|
||||
extern PFNGLVERTEXATTRIBI1UIPROC glVertexAttribI1ui;
|
||||
extern PFNGLVERTEXATTRIBI1UIVPROC glVertexAttribI1uiv;
|
||||
extern PFNGLVERTEXATTRIBI2IPROC glVertexAttribI2i;
|
||||
extern PFNGLVERTEXATTRIBI2IVPROC glVertexAttribI2iv;
|
||||
extern PFNGLVERTEXATTRIBI2UIPROC glVertexAttribI2ui;
|
||||
extern PFNGLVERTEXATTRIBI2UIVPROC glVertexAttribI2uiv;
|
||||
extern PFNGLVERTEXATTRIBI3IPROC glVertexAttribI3i;
|
||||
extern PFNGLVERTEXATTRIBI3IVPROC glVertexAttribI3iv;
|
||||
extern PFNGLVERTEXATTRIBI3UIPROC glVertexAttribI3ui;
|
||||
extern PFNGLVERTEXATTRIBI3UIVPROC glVertexAttribI3uiv;
|
||||
extern PFNGLVERTEXATTRIBI4BVPROC glVertexAttribI4bv;
|
||||
extern PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i;
|
||||
extern PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv;
|
||||
extern PFNGLVERTEXATTRIBI4SVPROC glVertexAttribI4sv;
|
||||
extern PFNGLVERTEXATTRIBI4UBVPROC glVertexAttribI4ubv;
|
||||
extern PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui;
|
||||
extern PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv;
|
||||
extern PFNGLVERTEXATTRIBI4USVPROC glVertexAttribI4usv;
|
||||
extern PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer;
|
||||
#define GL_COMPARE_REF_TO_TEXTURE 0x884E
|
||||
#define GL_CLIP_DISTANCE0 0x3000
|
||||
#define GL_CLIP_DISTANCE1 0x3001
|
||||
#define GL_CLIP_DISTANCE2 0x3002
|
||||
#define GL_CLIP_DISTANCE3 0x3003
|
||||
#define GL_CLIP_DISTANCE4 0x3004
|
||||
#define GL_CLIP_DISTANCE5 0x3005
|
||||
#define GL_CLIP_DISTANCE6 0x3006
|
||||
#define GL_CLIP_DISTANCE7 0x3007
|
||||
#define GL_MAX_CLIP_DISTANCES 0x0D32
|
||||
#define GL_MAJOR_VERSION 0x821B
|
||||
#define GL_MINOR_VERSION 0x821C
|
||||
#define GL_NUM_EXTENSIONS 0x821D
|
||||
#define GL_CONTEXT_FLAGS 0x821E
|
||||
#define GL_COMPRESSED_RED 0x8225
|
||||
#define GL_COMPRESSED_RG 0x8226
|
||||
#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
|
||||
#define GL_RGBA32F 0x8814
|
||||
#define GL_RGB32F 0x8815
|
||||
#define GL_RGBA16F 0x881A
|
||||
#define GL_RGB16F 0x881B
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
|
||||
#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
|
||||
#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
|
||||
#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
|
||||
#define GL_CLAMP_READ_COLOR 0x891C
|
||||
#define GL_FIXED_ONLY 0x891D
|
||||
#define GL_MAX_VARYING_COMPONENTS 0x8B4B
|
||||
#define GL_TEXTURE_1D_ARRAY 0x8C18
|
||||
#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
|
||||
#define GL_TEXTURE_2D_ARRAY 0x8C1A
|
||||
#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
|
||||
#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
|
||||
#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
|
||||
#define GL_R11F_G11F_B10F 0x8C3A
|
||||
#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
|
||||
#define GL_RGB9_E5 0x8C3D
|
||||
#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
|
||||
#define GL_TEXTURE_SHARED_SIZE 0x8C3F
|
||||
#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
|
||||
#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
|
||||
#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
|
||||
#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
|
||||
#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
|
||||
#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
|
||||
#define GL_PRIMITIVES_GENERATED 0x8C87
|
||||
#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
|
||||
#define GL_RASTERIZER_DISCARD 0x8C89
|
||||
#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
|
||||
#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
|
||||
#define GL_INTERLEAVED_ATTRIBS 0x8C8C
|
||||
#define GL_SEPARATE_ATTRIBS 0x8C8D
|
||||
#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
|
||||
#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
|
||||
#define GL_RGBA32UI 0x8D70
|
||||
#define GL_RGB32UI 0x8D71
|
||||
#define GL_RGBA16UI 0x8D76
|
||||
#define GL_RGB16UI 0x8D77
|
||||
#define GL_RGBA8UI 0x8D7C
|
||||
#define GL_RGB8UI 0x8D7D
|
||||
#define GL_RGBA32I 0x8D82
|
||||
#define GL_RGB32I 0x8D83
|
||||
#define GL_RGBA16I 0x8D88
|
||||
#define GL_RGB16I 0x8D89
|
||||
#define GL_RGBA8I 0x8D8E
|
||||
#define GL_RGB8I 0x8D8F
|
||||
#define GL_RED_INTEGER 0x8D94
|
||||
#define GL_GREEN_INTEGER 0x8D95
|
||||
#define GL_BLUE_INTEGER 0x8D96
|
||||
#define GL_RGB_INTEGER 0x8D98
|
||||
#define GL_RGBA_INTEGER 0x8D99
|
||||
#define GL_BGR_INTEGER 0x8D9A
|
||||
#define GL_BGRA_INTEGER 0x8D9B
|
||||
#define GL_SAMPLER_1D_ARRAY 0x8DC0
|
||||
#define GL_SAMPLER_2D_ARRAY 0x8DC1
|
||||
#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
|
||||
#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
|
||||
#define GL_SAMPLER_CUBE_SHADOW 0x8DC5
|
||||
#define GL_UNSIGNED_INT_VEC2 0x8DC6
|
||||
#define GL_UNSIGNED_INT_VEC3 0x8DC7
|
||||
#define GL_UNSIGNED_INT_VEC4 0x8DC8
|
||||
#define GL_INT_SAMPLER_1D 0x8DC9
|
||||
#define GL_INT_SAMPLER_2D 0x8DCA
|
||||
#define GL_INT_SAMPLER_3D 0x8DCB
|
||||
#define GL_INT_SAMPLER_CUBE 0x8DCC
|
||||
#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
|
||||
#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
|
||||
#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
|
||||
#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
|
||||
#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
|
||||
#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
|
||||
#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
|
||||
#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
|
||||
#define GL_QUERY_WAIT 0x8E13
|
||||
#define GL_QUERY_NO_WAIT 0x8E14
|
||||
#define GL_QUERY_BY_REGION_WAIT 0x8E15
|
||||
#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
|
||||
#define GL_BUFFER_ACCESS_FLAGS 0x911F
|
||||
#define GL_BUFFER_MAP_LENGTH 0x9120
|
||||
#define GL_BUFFER_MAP_OFFSET 0x9121
|
||||
#define GL_DEPTH_COMPONENT32F 0x8CAC
|
||||
#define GL_DEPTH32F_STENCIL8 0x8CAD
|
||||
#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
|
||||
#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
|
||||
#define GL_FRAMEBUFFER_DEFAULT 0x8218
|
||||
#define GL_FRAMEBUFFER_UNDEFINED 0x8219
|
||||
#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
|
||||
#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
|
||||
#define GL_DEPTH_STENCIL 0x84F9
|
||||
#define GL_UNSIGNED_INT_24_8 0x84FA
|
||||
#define GL_DEPTH24_STENCIL8 0x88F0
|
||||
#define GL_TEXTURE_STENCIL_SIZE 0x88F1
|
||||
#define GL_TEXTURE_RED_TYPE 0x8C10
|
||||
#define GL_TEXTURE_GREEN_TYPE 0x8C11
|
||||
#define GL_TEXTURE_BLUE_TYPE 0x8C12
|
||||
#define GL_TEXTURE_ALPHA_TYPE 0x8C13
|
||||
#define GL_TEXTURE_DEPTH_TYPE 0x8C16
|
||||
#define GL_UNSIGNED_NORMALIZED 0x8C17
|
||||
#define GL_FRAMEBUFFER_BINDING 0x8CA6
|
||||
#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
|
||||
#define GL_RENDERBUFFER_BINDING 0x8CA7
|
||||
#define GL_READ_FRAMEBUFFER 0x8CA8
|
||||
#define GL_DRAW_FRAMEBUFFER 0x8CA9
|
||||
#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
|
||||
#define GL_RENDERBUFFER_SAMPLES 0x8CAB
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
|
||||
#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
|
||||
#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
||||
#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
|
||||
#define GL_COLOR_ATTACHMENT0 0x8CE0
|
||||
#define GL_COLOR_ATTACHMENT1 0x8CE1
|
||||
#define GL_COLOR_ATTACHMENT2 0x8CE2
|
||||
#define GL_COLOR_ATTACHMENT3 0x8CE3
|
||||
#define GL_COLOR_ATTACHMENT4 0x8CE4
|
||||
#define GL_COLOR_ATTACHMENT5 0x8CE5
|
||||
#define GL_COLOR_ATTACHMENT6 0x8CE6
|
||||
#define GL_COLOR_ATTACHMENT7 0x8CE7
|
||||
#define GL_COLOR_ATTACHMENT8 0x8CE8
|
||||
#define GL_COLOR_ATTACHMENT9 0x8CE9
|
||||
#define GL_COLOR_ATTACHMENT10 0x8CEA
|
||||
#define GL_COLOR_ATTACHMENT11 0x8CEB
|
||||
#define GL_COLOR_ATTACHMENT12 0x8CEC
|
||||
#define GL_COLOR_ATTACHMENT13 0x8CED
|
||||
#define GL_COLOR_ATTACHMENT14 0x8CEE
|
||||
#define GL_COLOR_ATTACHMENT15 0x8CEF
|
||||
#define GL_COLOR_ATTACHMENT16 0x8CF0
|
||||
#define GL_COLOR_ATTACHMENT17 0x8CF1
|
||||
#define GL_COLOR_ATTACHMENT18 0x8CF2
|
||||
#define GL_COLOR_ATTACHMENT19 0x8CF3
|
||||
#define GL_COLOR_ATTACHMENT20 0x8CF4
|
||||
#define GL_COLOR_ATTACHMENT21 0x8CF5
|
||||
#define GL_COLOR_ATTACHMENT22 0x8CF6
|
||||
#define GL_COLOR_ATTACHMENT23 0x8CF7
|
||||
#define GL_COLOR_ATTACHMENT24 0x8CF8
|
||||
#define GL_COLOR_ATTACHMENT25 0x8CF9
|
||||
#define GL_COLOR_ATTACHMENT26 0x8CFA
|
||||
#define GL_COLOR_ATTACHMENT27 0x8CFB
|
||||
#define GL_COLOR_ATTACHMENT28 0x8CFC
|
||||
#define GL_COLOR_ATTACHMENT29 0x8CFD
|
||||
#define GL_COLOR_ATTACHMENT30 0x8CFE
|
||||
#define GL_COLOR_ATTACHMENT31 0x8CFF
|
||||
#define GL_DEPTH_ATTACHMENT 0x8D00
|
||||
#define GL_STENCIL_ATTACHMENT 0x8D20
|
||||
#define GL_FRAMEBUFFER 0x8D40
|
||||
#define GL_RENDERBUFFER 0x8D41
|
||||
#define GL_RENDERBUFFER_WIDTH 0x8D42
|
||||
#define GL_RENDERBUFFER_HEIGHT 0x8D43
|
||||
#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
|
||||
#define GL_STENCIL_INDEX1 0x8D46
|
||||
#define GL_STENCIL_INDEX4 0x8D47
|
||||
#define GL_STENCIL_INDEX8 0x8D48
|
||||
#define GL_STENCIL_INDEX16 0x8D49
|
||||
#define GL_RENDERBUFFER_RED_SIZE 0x8D50
|
||||
#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
|
||||
#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
|
||||
#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
|
||||
#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
|
||||
#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
|
||||
#define GL_MAX_SAMPLES 0x8D57
|
||||
#define GL_INDEX 0x8222
|
||||
#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
|
||||
#define GL_TEXTURE_INTENSITY_TYPE 0x8C15
|
||||
#define GL_FRAMEBUFFER_SRGB 0x8DB9
|
||||
#define GL_HALF_FLOAT 0x140B
|
||||
#define GL_MAP_READ_BIT 0x0001
|
||||
#define GL_MAP_WRITE_BIT 0x0002
|
||||
#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
|
||||
#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
|
||||
#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
|
||||
#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
|
||||
#define GL_COMPRESSED_RED_RGTC1 0x8DBB
|
||||
#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
|
||||
#define GL_COMPRESSED_RG_RGTC2 0x8DBD
|
||||
#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
|
||||
#define GL_RG 0x8227
|
||||
#define GL_RG_INTEGER 0x8228
|
||||
#define GL_R8 0x8229
|
||||
#define GL_R16 0x822A
|
||||
#define GL_RG8 0x822B
|
||||
#define GL_RG16 0x822C
|
||||
#define GL_R16F 0x822D
|
||||
#define GL_R32F 0x822E
|
||||
#define GL_RG16F 0x822F
|
||||
#define GL_RG32F 0x8230
|
||||
#define GL_R8I 0x8231
|
||||
#define GL_R8UI 0x8232
|
||||
#define GL_R16I 0x8233
|
||||
#define GL_R16UI 0x8234
|
||||
#define GL_R32I 0x8235
|
||||
#define GL_R32UI 0x8236
|
||||
#define GL_RG8I 0x8237
|
||||
#define GL_RG8UI 0x8238
|
||||
#define GL_RG16I 0x8239
|
||||
#define GL_RG16UI 0x823A
|
||||
#define GL_RG32I 0x823B
|
||||
#define GL_RG32UI 0x823C
|
||||
#define GL_VERTEX_ARRAY_BINDING 0x85B5
|
||||
#define GL_CLAMP_VERTEX_COLOR 0x891A
|
||||
#define GL_CLAMP_FRAGMENT_COLOR 0x891B
|
||||
#define GL_ALPHA_INTEGER 0x8D97
|
||||
|
||||
typedef void (APIENTRYP PFNDOLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
|
||||
typedef void (APIENTRYP PFNDOLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
|
||||
typedef void (APIENTRYP PFNDOLENABLEIPROC) (GLenum target, GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLDISABLEIPROC) (GLenum target, GLuint index);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISENABLEDIPROC) (GLenum target, GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
|
||||
typedef void (APIENTRYP PFNDOLENDTRANSFORMFEEDBACKPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
|
||||
typedef void (APIENTRYP PFNDOLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
|
||||
typedef void (APIENTRYP PFNDOLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
|
||||
typedef void (APIENTRYP PFNDOLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
|
||||
typedef void (APIENTRYP PFNDOLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
|
||||
typedef void (APIENTRYP PFNDOLENDCONDITIONALRENDERPROC) (void);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNDOLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
|
||||
typedef void (APIENTRYP PFNDOLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
|
||||
typedef void (APIENTRYP PFNDOLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
|
||||
typedef GLint (APIENTRYP PFNDOLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1UIPROC) (GLint location, GLuint v0);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
|
||||
typedef void (APIENTRYP PFNDOLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
|
||||
typedef void (APIENTRYP PFNDOLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
|
||||
typedef void (APIENTRYP PFNDOLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
|
||||
typedef void (APIENTRYP PFNDOLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNDOLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
|
||||
typedef const GLubyte *(APIENTRYP PFNDOLGETSTRINGIPROC) (GLenum name, GLuint index);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISRENDERBUFFERPROC) (GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
|
||||
typedef void (APIENTRYP PFNDOLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
|
||||
typedef void (APIENTRYP PFNDOLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRYP PFNDOLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISFRAMEBUFFERPROC) (GLuint framebuffer);
|
||||
typedef void (APIENTRYP PFNDOLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
|
||||
typedef void (APIENTRYP PFNDOLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
|
||||
typedef void (APIENTRYP PFNDOLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
|
||||
typedef GLenum (APIENTRYP PFNDOLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||
typedef void (APIENTRYP PFNDOLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGENERATEMIPMAPPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNDOLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
|
||||
typedef void (APIENTRYP PFNDOLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
|
||||
typedef void *(APIENTRYP PFNDOLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
|
||||
typedef void (APIENTRYP PFNDOLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
|
||||
typedef void (APIENTRYP PFNDOLBINDVERTEXARRAYPROC) (GLuint array);
|
||||
typedef void (APIENTRYP PFNDOLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
|
||||
typedef void (APIENTRYP PFNDOLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISVERTEXARRAYPROC) (GLuint array);
|
||||
|
||||
extern PFNDOLBEGINCONDITIONALRENDERPROC dolBeginConditionalRender;
|
||||
extern PFNDOLBEGINTRANSFORMFEEDBACKPROC dolBeginTransformFeedback;
|
||||
extern PFNDOLBINDFRAGDATALOCATIONPROC dolBindFragDataLocation;
|
||||
extern PFNDOLCLAMPCOLORPROC dolClampColor;
|
||||
extern PFNDOLCLEARBUFFERFIPROC dolClearBufferfi;
|
||||
extern PFNDOLCLEARBUFFERFVPROC dolClearBufferfv;
|
||||
extern PFNDOLCLEARBUFFERIVPROC dolClearBufferiv;
|
||||
extern PFNDOLCLEARBUFFERUIVPROC dolClearBufferuiv;
|
||||
extern PFNDOLCOLORMASKIPROC dolColorMaski;
|
||||
extern PFNDOLDISABLEIPROC dolDisablei;
|
||||
extern PFNDOLENABLEIPROC dolEnablei;
|
||||
extern PFNDOLENDCONDITIONALRENDERPROC dolEndConditionalRender;
|
||||
extern PFNDOLENDTRANSFORMFEEDBACKPROC dolEndTransformFeedback;
|
||||
extern PFNDOLGETBOOLEANI_VPROC dolGetBooleani_v;
|
||||
extern PFNDOLGETFRAGDATALOCATIONPROC dolGetFragDataLocation;
|
||||
extern PFNDOLGETSTRINGIPROC dolGetStringi;
|
||||
extern PFNDOLGETTEXPARAMETERIIVPROC dolGetTexParameterIiv;
|
||||
extern PFNDOLGETTEXPARAMETERIUIVPROC dolGetTexParameterIuiv;
|
||||
extern PFNDOLGETTRANSFORMFEEDBACKVARYINGPROC dolGetTransformFeedbackVarying;
|
||||
extern PFNDOLGETUNIFORMUIVPROC dolGetUniformuiv;
|
||||
extern PFNDOLGETVERTEXATTRIBIIVPROC dolGetVertexAttribIiv;
|
||||
extern PFNDOLGETVERTEXATTRIBIUIVPROC dolGetVertexAttribIuiv;
|
||||
extern PFNDOLISENABLEDIPROC dolIsEnabledi;
|
||||
extern PFNDOLTEXPARAMETERIIVPROC dolTexParameterIiv;
|
||||
extern PFNDOLTEXPARAMETERIUIVPROC dolTexParameterIuiv;
|
||||
extern PFNDOLTRANSFORMFEEDBACKVARYINGSPROC dolTransformFeedbackVaryings;
|
||||
extern PFNDOLUNIFORM1UIPROC dolUniform1ui;
|
||||
extern PFNDOLUNIFORM1UIVPROC dolUniform1uiv;
|
||||
extern PFNDOLUNIFORM2UIPROC dolUniform2ui;
|
||||
extern PFNDOLUNIFORM2UIVPROC dolUniform2uiv;
|
||||
extern PFNDOLUNIFORM3UIPROC dolUniform3ui;
|
||||
extern PFNDOLUNIFORM3UIVPROC dolUniform3uiv;
|
||||
extern PFNDOLUNIFORM4UIPROC dolUniform4ui;
|
||||
extern PFNDOLUNIFORM4UIVPROC dolUniform4uiv;
|
||||
extern PFNDOLVERTEXATTRIBI1IPROC dolVertexAttribI1i;
|
||||
extern PFNDOLVERTEXATTRIBI1IVPROC dolVertexAttribI1iv;
|
||||
extern PFNDOLVERTEXATTRIBI1UIPROC dolVertexAttribI1ui;
|
||||
extern PFNDOLVERTEXATTRIBI1UIVPROC dolVertexAttribI1uiv;
|
||||
extern PFNDOLVERTEXATTRIBI2IPROC dolVertexAttribI2i;
|
||||
extern PFNDOLVERTEXATTRIBI2IVPROC dolVertexAttribI2iv;
|
||||
extern PFNDOLVERTEXATTRIBI2UIPROC dolVertexAttribI2ui;
|
||||
extern PFNDOLVERTEXATTRIBI2UIVPROC dolVertexAttribI2uiv;
|
||||
extern PFNDOLVERTEXATTRIBI3IPROC dolVertexAttribI3i;
|
||||
extern PFNDOLVERTEXATTRIBI3IVPROC dolVertexAttribI3iv;
|
||||
extern PFNDOLVERTEXATTRIBI3UIPROC dolVertexAttribI3ui;
|
||||
extern PFNDOLVERTEXATTRIBI3UIVPROC dolVertexAttribI3uiv;
|
||||
extern PFNDOLVERTEXATTRIBI4BVPROC dolVertexAttribI4bv;
|
||||
extern PFNDOLVERTEXATTRIBI4IPROC dolVertexAttribI4i;
|
||||
extern PFNDOLVERTEXATTRIBI4IVPROC dolVertexAttribI4iv;
|
||||
extern PFNDOLVERTEXATTRIBI4SVPROC dolVertexAttribI4sv;
|
||||
extern PFNDOLVERTEXATTRIBI4UBVPROC dolVertexAttribI4ubv;
|
||||
extern PFNDOLVERTEXATTRIBI4UIPROC dolVertexAttribI4ui;
|
||||
extern PFNDOLVERTEXATTRIBI4UIVPROC dolVertexAttribI4uiv;
|
||||
extern PFNDOLVERTEXATTRIBI4USVPROC dolVertexAttribI4usv;
|
||||
extern PFNDOLVERTEXATTRIBIPOINTERPROC dolVertexAttribIPointer;
|
||||
|
||||
#define glBeginConditionalRender dolBeginConditionalRender
|
||||
#define glBeginTransformFeedback dolBeginTransformFeedback
|
||||
#define glBindFragDataLocation dolBindFragDataLocation
|
||||
#define glClampColor dolClampColor
|
||||
#define glClearBufferfi dolClearBufferfi
|
||||
#define glClearBufferfv dolClearBufferfv
|
||||
#define glClearBufferiv dolClearBufferiv
|
||||
#define glClearBufferuiv dolClearBufferuiv
|
||||
#define glColorMaski dolColorMaski
|
||||
#define glDisablei dolDisablei
|
||||
#define glEnablei dolEnablei
|
||||
#define glEndConditionalRender dolEndConditionalRender
|
||||
#define glEndTransformFeedback dolEndTransformFeedback
|
||||
#define glGetBooleani_v dolGetBooleani_v
|
||||
#define glGetFragDataLocation dolGetFragDataLocation
|
||||
#define glGetStringi dolGetStringi
|
||||
#define glGetTexParameterIiv dolGetTexParameterIiv
|
||||
#define glGetTexParameterIuiv dolGetTexParameterIuiv
|
||||
#define glGetTransformFeedbackVarying dolGetTransformFeedbackVarying
|
||||
#define glGetUniformuiv dolGetUniformuiv
|
||||
#define glGetVertexAttribIiv dolGetVertexAttribIiv
|
||||
#define glGetVertexAttribIuiv dolGetVertexAttribIuiv
|
||||
#define glIsEnabledi dolIsEnabledi
|
||||
#define glTexParameterIiv dolTexParameterIiv
|
||||
#define glTexParameterIuiv dolTexParameterIuiv
|
||||
#define glTransformFeedbackVaryings dolTransformFeedbackVaryings
|
||||
#define glUniform1ui dolUniform1ui
|
||||
#define glUniform1uiv dolUniform1uiv
|
||||
#define glUniform2ui dolUniform2ui
|
||||
#define glUniform2uiv dolUniform2uiv
|
||||
#define glUniform3ui dolUniform3ui
|
||||
#define glUniform3uiv dolUniform3uiv
|
||||
#define glUniform4ui dolUniform4ui
|
||||
#define glUniform4uiv dolUniform4uiv
|
||||
#define glVertexAttribI1i dolVertexAttribI1i
|
||||
#define glVertexAttribI1iv dolVertexAttribI1iv
|
||||
#define glVertexAttribI1ui dolVertexAttribI1ui
|
||||
#define glVertexAttribI1uiv dolVertexAttribI1uiv
|
||||
#define glVertexAttribI2i dolVertexAttribI2i
|
||||
#define glVertexAttribI2iv dolVertexAttribI2iv
|
||||
#define glVertexAttribI2ui dolVertexAttribI2ui
|
||||
#define glVertexAttribI2uiv dolVertexAttribI2uiv
|
||||
#define glVertexAttribI3i dolVertexAttribI3i
|
||||
#define glVertexAttribI3iv dolVertexAttribI3iv
|
||||
#define glVertexAttribI3ui dolVertexAttribI3ui
|
||||
#define glVertexAttribI3uiv dolVertexAttribI3uiv
|
||||
#define glVertexAttribI4bv dolVertexAttribI4bv
|
||||
#define glVertexAttribI4i dolVertexAttribI4i
|
||||
#define glVertexAttribI4iv dolVertexAttribI4iv
|
||||
#define glVertexAttribI4sv dolVertexAttribI4sv
|
||||
#define glVertexAttribI4ubv dolVertexAttribI4ubv
|
||||
#define glVertexAttribI4ui dolVertexAttribI4ui
|
||||
#define glVertexAttribI4uiv dolVertexAttribI4uiv
|
||||
#define glVertexAttribI4usv dolVertexAttribI4usv
|
||||
#define glVertexAttribIPointer dolVertexAttribIPointer
|
||||
|
@ -1,11 +1,109 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced;
|
||||
extern PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced;
|
||||
extern PFNGLPRIMITIVERESTARTINDEXPROC glPrimitiveRestartIndex;
|
||||
extern PFNGLTEXBUFFERPROC glTexBuffer;
|
||||
#define GL_SAMPLER_2D_RECT 0x8B63
|
||||
#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
|
||||
#define GL_SAMPLER_BUFFER 0x8DC2
|
||||
#define GL_INT_SAMPLER_2D_RECT 0x8DCD
|
||||
#define GL_INT_SAMPLER_BUFFER 0x8DD0
|
||||
#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
|
||||
#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
|
||||
#define GL_TEXTURE_BUFFER 0x8C2A
|
||||
#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
|
||||
#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
|
||||
#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
|
||||
#define GL_TEXTURE_RECTANGLE 0x84F5
|
||||
#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
|
||||
#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
|
||||
#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
|
||||
#define GL_R8_SNORM 0x8F94
|
||||
#define GL_RG8_SNORM 0x8F95
|
||||
#define GL_RGB8_SNORM 0x8F96
|
||||
#define GL_RGBA8_SNORM 0x8F97
|
||||
#define GL_R16_SNORM 0x8F98
|
||||
#define GL_RG16_SNORM 0x8F99
|
||||
#define GL_RGB16_SNORM 0x8F9A
|
||||
#define GL_RGBA16_SNORM 0x8F9B
|
||||
#define GL_SIGNED_NORMALIZED 0x8F9C
|
||||
#define GL_PRIMITIVE_RESTART 0x8F9D
|
||||
#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
|
||||
#define GL_COPY_READ_BUFFER 0x8F36
|
||||
#define GL_COPY_WRITE_BUFFER 0x8F37
|
||||
#define GL_UNIFORM_BUFFER 0x8A11
|
||||
#define GL_UNIFORM_BUFFER_BINDING 0x8A28
|
||||
#define GL_UNIFORM_BUFFER_START 0x8A29
|
||||
#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
|
||||
#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
|
||||
#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
|
||||
#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
|
||||
#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
|
||||
#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
|
||||
#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
|
||||
#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
|
||||
#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
|
||||
#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
|
||||
#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
|
||||
#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
|
||||
#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
|
||||
#define GL_UNIFORM_TYPE 0x8A37
|
||||
#define GL_UNIFORM_SIZE 0x8A38
|
||||
#define GL_UNIFORM_NAME_LENGTH 0x8A39
|
||||
#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
|
||||
#define GL_UNIFORM_OFFSET 0x8A3B
|
||||
#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
|
||||
#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
|
||||
#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
|
||||
#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
|
||||
#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
|
||||
#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
|
||||
#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
|
||||
#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
|
||||
#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
|
||||
#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
|
||||
#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
|
||||
#define GL_INVALID_INDEX 0xFFFFFFFFu
|
||||
|
||||
typedef void (APIENTRYP PFNDOLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
|
||||
typedef void (APIENTRYP PFNDOLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
|
||||
typedef void (APIENTRYP PFNDOLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
|
||||
typedef void (APIENTRYP PFNDOLPRIMITIVERESTARTINDEXPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNDOLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
|
||||
typedef void (APIENTRYP PFNDOLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
|
||||
typedef GLuint (APIENTRYP PFNDOLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNDOLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
|
||||
typedef void (APIENTRYP PFNDOLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
|
||||
|
||||
extern PFNDOLDRAWARRAYSINSTANCEDPROC dolDrawArraysInstanced;
|
||||
extern PFNDOLDRAWELEMENTSINSTANCEDPROC dolDrawElementsInstanced;
|
||||
extern PFNDOLPRIMITIVERESTARTINDEXPROC dolPrimitiveRestartIndex;
|
||||
extern PFNDOLTEXBUFFERPROC dolTexBuffer;
|
||||
|
||||
#define glDrawArraysInstanced dolDrawArraysInstanced
|
||||
#define glDrawElementsInstanced dolDrawElementsInstanced
|
||||
#define glPrimitiveRestartIndex dolPrimitiveRestartIndex
|
||||
#define glTexBuffer dolTexBuffer
|
||||
|
@ -1,10 +1,117 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include "Common/GL/GLExtensions/gl_common.h"
|
||||
|
||||
extern PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture;
|
||||
extern PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v;
|
||||
extern PFNGLGETINTEGER64I_VPROC glGetInteger64i_v;
|
||||
#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
|
||||
#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
|
||||
#define GL_LINES_ADJACENCY 0x000A
|
||||
#define GL_LINE_STRIP_ADJACENCY 0x000B
|
||||
#define GL_TRIANGLES_ADJACENCY 0x000C
|
||||
#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
|
||||
#define GL_PROGRAM_POINT_SIZE 0x8642
|
||||
#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
|
||||
#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
|
||||
#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
|
||||
#define GL_GEOMETRY_SHADER 0x8DD9
|
||||
#define GL_GEOMETRY_VERTICES_OUT 0x8916
|
||||
#define GL_GEOMETRY_INPUT_TYPE 0x8917
|
||||
#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
|
||||
#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
|
||||
#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
|
||||
#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
|
||||
#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
|
||||
#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
|
||||
#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
|
||||
#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
|
||||
#define GL_CONTEXT_PROFILE_MASK 0x9126
|
||||
#define GL_DEPTH_CLAMP 0x864F
|
||||
#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
|
||||
#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
|
||||
#define GL_LAST_VERTEX_CONVENTION 0x8E4E
|
||||
#define GL_PROVOKING_VERTEX 0x8E4F
|
||||
#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
|
||||
#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
|
||||
#define GL_OBJECT_TYPE 0x9112
|
||||
#define GL_SYNC_CONDITION 0x9113
|
||||
#define GL_SYNC_STATUS 0x9114
|
||||
#define GL_SYNC_FLAGS 0x9115
|
||||
#define GL_SYNC_FENCE 0x9116
|
||||
#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
|
||||
#define GL_UNSIGNALED 0x9118
|
||||
#define GL_SIGNALED 0x9119
|
||||
#define GL_ALREADY_SIGNALED 0x911A
|
||||
#define GL_TIMEOUT_EXPIRED 0x911B
|
||||
#define GL_CONDITION_SATISFIED 0x911C
|
||||
#define GL_WAIT_FAILED 0x911D
|
||||
#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
|
||||
#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
|
||||
#define GL_SAMPLE_POSITION 0x8E50
|
||||
#define GL_SAMPLE_MASK 0x8E51
|
||||
#define GL_SAMPLE_MASK_VALUE 0x8E52
|
||||
#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
|
||||
#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
|
||||
#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
|
||||
#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
|
||||
#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
|
||||
#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
|
||||
#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
|
||||
#define GL_TEXTURE_SAMPLES 0x9106
|
||||
#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
|
||||
#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
|
||||
#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
|
||||
#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
|
||||
#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
|
||||
#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
|
||||
#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
|
||||
#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
|
||||
#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
|
||||
#define GL_MAX_INTEGER_SAMPLES 0x9110
|
||||
|
||||
typedef void (APIENTRYP PFNDOLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
|
||||
typedef void (APIENTRYP PFNDOLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
|
||||
typedef void (APIENTRYP PFNDOLPROVOKINGVERTEXPROC) (GLenum mode);
|
||||
typedef GLsync (APIENTRYP PFNDOLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
|
||||
typedef GLboolean (APIENTRYP PFNDOLISSYNCPROC) (GLsync sync);
|
||||
typedef void (APIENTRYP PFNDOLDELETESYNCPROC) (GLsync sync);
|
||||
typedef GLenum (APIENTRYP PFNDOLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
|
||||
typedef void (APIENTRYP PFNDOLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
|
||||
typedef void (APIENTRYP PFNDOLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
|
||||
typedef void (APIENTRYP PFNDOLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
|
||||
typedef void (APIENTRYP PFNDOLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
|
||||
typedef void (APIENTRYP PFNDOLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
|
||||
typedef void (APIENTRYP PFNDOLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
|
||||
typedef void (APIENTRYP PFNDOLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
|
||||
typedef void (APIENTRYP PFNDOLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
|
||||
typedef void (APIENTRYP PFNDOLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
|
||||
|
||||
extern PFNDOLFRAMEBUFFERTEXTUREPROC dolFramebufferTexture;
|
||||
extern PFNDOLGETBUFFERPARAMETERI64VPROC dolGetBufferParameteri64v;
|
||||
extern PFNDOLGETINTEGER64I_VPROC dolGetInteger64i_v;
|
||||
|
||||
#define glFramebufferTexture dolFramebufferTexture
|
||||
#define glGetBufferParameteri64v dolGetBufferParameteri64v
|
||||
#define glGetInteger64i_v dolGetInteger64i_v
|
||||
|
@ -1,7 +1,104 @@
|
||||
// Copyright 2008 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
/*
|
||||
** Copyright (c) 2013-2015 The Khronos Group Inc.
|
||||
**
|
||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
** copy of this software and/or associated documentation files (the
|
||||
** "Materials"), to deal in the Materials without restriction, including
|
||||
** without limitation the rights to use, copy, modify, merge, publish,
|
||||
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
** permit persons to whom the Materials are furnished to do so, subject to
|
||||
** the following conditions:
|
||||
**
|
||||
** The above copyright notice and this permission notice shall be included
|
||||
** in all copies or substantial portions of the Materials.
|
||||
**
|
||||
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
*/
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef APIENTRY
|
||||
#define APIENTRY
|
||||
#endif
|
||||
#ifndef APIENTRYP
|
||||
#define APIENTRYP APIENTRY *
|
||||
#endif
|
||||
#ifndef GLAPI
|
||||
#define GLAPI extern
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Datatypes
|
||||
*/
|
||||
#include <stddef.h>
|
||||
typedef unsigned int GLenum;
|
||||
typedef unsigned char GLboolean;
|
||||
typedef unsigned int GLbitfield;
|
||||
typedef void GLvoid;
|
||||
typedef signed char GLbyte; /* 1-byte signed */
|
||||
typedef short GLshort; /* 2-byte signed */
|
||||
typedef int GLint; /* 4-byte signed */
|
||||
typedef unsigned char GLubyte; /* 1-byte unsigned */
|
||||
typedef unsigned short GLushort; /* 2-byte unsigned */
|
||||
typedef unsigned int GLuint; /* 4-byte unsigned */
|
||||
typedef int GLsizei; /* 4-byte signed */
|
||||
typedef float GLfloat; /* single precision float */
|
||||
typedef float GLclampf; /* single precision float in [0,1] */
|
||||
typedef double GLdouble; /* double precision float */
|
||||
typedef double GLclampd; /* double precision float in [0,1] */
|
||||
typedef char GLchar;
|
||||
typedef unsigned short GLhalf;
|
||||
typedef ptrdiff_t GLsizeiptr;
|
||||
typedef ptrdiff_t GLintptr;
|
||||
|
||||
typedef struct __GLsync *GLsync;
|
||||
#ifndef GLEXT_64_TYPES_DEFINED
|
||||
/* This code block is duplicated in glxext.h, so must be protected */
|
||||
#define GLEXT_64_TYPES_DEFINED
|
||||
/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
|
||||
/* (as used in the GL_EXT_timer_query extension). */
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#include <inttypes.h>
|
||||
#elif defined(__sun__) || defined(__digital__)
|
||||
#include <inttypes.h>
|
||||
#if defined(__STDC__)
|
||||
#if defined(__arch64__) || defined(_LP64)
|
||||
typedef long int int64_t;
|
||||
typedef unsigned long int uint64_t;
|
||||
#else
|
||||
typedef long long int int64_t;
|
||||
typedef unsigned long long int uint64_t;
|
||||
#endif /* __arch64__ */
|
||||
#endif /* __STDC__ */
|
||||
#elif defined( __VMS ) || defined(__sgi)
|
||||
#include <inttypes.h>
|
||||
#elif defined(__SCO__) || defined(__USLC__)
|
||||
#include <stdint.h>
|
||||
#elif defined(__UNIXOS2__) || defined(__SOL64__)
|
||||
typedef long int int32_t;
|
||||
typedef long long int int64_t;
|
||||
typedef unsigned long long int uint64_t;
|
||||
#elif defined(_WIN32) && defined(__GNUC__)
|
||||
#include <stdint.h>
|
||||
#elif defined(_WIN32)
|
||||
typedef __int32 int32_t;
|
||||
typedef __int64 int64_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#else
|
||||
/* Fallback if nothing above works */
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
#endif
|
||||
typedef uint64_t GLuint64;
|
||||
typedef int64_t GLint64;
|
||||
|
@ -81,7 +81,7 @@ static bool s_efbCacheValid[2][EFB_CACHE_WIDTH * EFB_CACHE_HEIGHT];
|
||||
static bool s_efbCacheIsCleared = false;
|
||||
static std::vector<u32> s_efbCache[2][EFB_CACHE_WIDTH * EFB_CACHE_HEIGHT]; // 2 for PEEK_Z and PEEK_COLOR
|
||||
|
||||
static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, const void* userParam)
|
||||
static void APIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, const void* userParam)
|
||||
{
|
||||
const char *s_source;
|
||||
const char *s_type;
|
||||
@ -117,11 +117,11 @@ static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLe
|
||||
}
|
||||
|
||||
// Two small Fallbacks to avoid GL_ARB_ES2_compatibility
|
||||
static void GLAPIENTRY DepthRangef(GLfloat neardepth, GLfloat fardepth)
|
||||
static void APIENTRY DepthRangef(GLfloat neardepth, GLfloat fardepth)
|
||||
{
|
||||
glDepthRange(neardepth, fardepth);
|
||||
}
|
||||
static void GLAPIENTRY ClearDepthf(GLfloat depthval)
|
||||
static void APIENTRY ClearDepthf(GLfloat depthval)
|
||||
{
|
||||
glClearDepth(depthval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user