| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include "Common/GL/GLExtensions/gl_common.h" |
| 7 |
|
| 8 |
#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 |
| 9 |
#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 |
| 10 |
#define GL_TEXTURE_BUFFER_BINDING 0x8C2A |
| 11 |
#define GL_DYNAMIC_STORAGE_BIT 0x0100 |
| 12 |
#define GL_CLIENT_STORAGE_BIT 0x0200 |
| 13 |
#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 |
| 14 |
#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F |
| 15 |
#define GL_BUFFER_STORAGE_FLAGS 0x8220 |
| 16 |
#define GL_CLEAR_TEXTURE 0x9365 |
| 17 |
#define GL_LOCATION_COMPONENT 0x934A |
| 18 |
#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B |
| 19 |
#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C |
| 20 |
#define GL_QUERY_BUFFER 0x9192 |
| 21 |
#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 |
| 22 |
#define GL_QUERY_BUFFER_BINDING 0x9193 |
| 23 |
#define GL_QUERY_RESULT_NO_WAIT 0x9194 |
| 24 |
#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 |
| 25 |
|
| 26 |
typedef void(APIENTRYP PFNDOLBUFFERSTORAGEPROC)(GLenum target, GLsizeiptr size, const void* data, |
| 27 |
GLbitfield flags); |
| 28 |
typedef void(APIENTRYP PFNDOLCLEARTEXIMAGEPROC)(GLuint texture, GLint level, GLenum format, |
| 29 |
GLenum type, const void* data); |
| 30 |
typedef void(APIENTRYP PFNDOLCLEARTEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, |
| 31 |
GLint yoffset, GLint zoffset, GLsizei width, |
| 32 |
GLsizei height, GLsizei depth, GLenum format, |
| 33 |
GLenum type, const void* data); |
| 34 |
typedef void(APIENTRYP PFNDOLBINDBUFFERSBASEPROC)(GLenum target, GLuint first, GLsizei count, |
| 35 |
const GLuint* buffers); |
| 36 |
typedef void(APIENTRYP PFNDOLBINDBUFFERSRANGEPROC)(GLenum target, GLuint first, GLsizei count, |
| 37 |
const GLuint* buffers, const GLintptr* offsets, |
| 38 |
const GLsizeiptr* sizes); |
| 39 |
typedef void(APIENTRYP PFNDOLBINDTEXTURESPROC)(GLuint first, GLsizei count, const GLuint* textures); |
| 40 |
typedef void(APIENTRYP PFNDOLBINDSAMPLERSPROC)(GLuint first, GLsizei count, const GLuint* samplers); |
| 41 |
typedef void(APIENTRYP PFNDOLBINDIMAGETEXTURESPROC)(GLuint first, GLsizei count, |
| 42 |
const GLuint* textures); |
| 43 |
typedef void(APIENTRYP PFNDOLBINDVERTEXBUFFERSPROC)(GLuint first, GLsizei count, |
| 44 |
const GLuint* buffers, const GLintptr* offsets, |
| 45 |
const GLsizei* strides); |
| 46 |
|
| 47 |
extern PFNDOLCLEARTEXIMAGEPROC dolClearTexImage; |
| 48 |
extern PFNDOLCLEARTEXSUBIMAGEPROC dolClearTexSubImage; |
| 49 |
extern PFNDOLBINDBUFFERSBASEPROC dolBindBuffersBase; |
| 50 |
extern PFNDOLBINDBUFFERSRANGEPROC dolBindBuffersRange; |
| 51 |
extern PFNDOLBINDTEXTURESPROC dolBindTextures; |
| 52 |
extern PFNDOLBINDSAMPLERSPROC dolBindSamplers; |
| 53 |
extern PFNDOLBINDIMAGETEXTURESPROC dolBindImageTextures; |
| 54 |
extern PFNDOLBINDVERTEXBUFFERSPROC dolBindVertexBuffers; |
| 55 |
|
| 56 |
#define glClearTexImage dolClearTexImage |
| 57 |
#define glClearTexSubImage dolClearTexSubImage |
| 58 |
#define glBindBuffersBase dolBindBuffersBase |
| 59 |
#define glBindBuffersRange dolBindBuffersRange |
| 60 |
#define glBindTextures dolBindTextures |
| 61 |
#define glBindSamplers dolBindSamplers |
| 62 |
#define glBindImageTextures dolBindImageTextures |
| 63 |
#define glBindVertexBuffers dolBindVertexBuffers |