1. yotis
  2. glxx

Commits

yotis  committed 3752a31

Updated library with new specs, fixed various extensions and versions,
new extensions added.

  • Participants
  • Parent commits 3d7bd9f
  • Branches default

Comments (0)

Files changed (32)

File .hgignore

View file
  • Ignore whitespace
 glob:*.pro.user*
 glob:*.directory
 glob:x86_64/*
+glob:generator/dump_*.txt

File include/glXxx/glXxx_all.h

View file
  • Ignore whitespace
 #include <glXxx/glx_amd_gpu_association.h>
 #include <glXxx/glx_ext_create_context_es2_profile.h>
 #include <glXxx/glx_ext_swap_control_tear.h>
+#include <glXxx/glx_ext_buffer_age.h>
 
 #endif

File include/glXxx/glx_ext_buffer_age.h

View file
  • Ignore whitespace
+#ifndef GLX_EXT_buffer_age
+#define GLX_EXT_buffer_age
+
+#include "private/glXxx.h"
+
+#define GLX_BACK_BUFFER_AGE_EXT 0x20F4
+
+GLXX_EXPORT bool has_glx_ext_buffer_age();
+
+#endif

File include/glxx/gl_amd_debug_output.h

View file
  • Ignore whitespace
 
 #include "private/glxx.h"
 
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143
 #define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144
 #define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145
 #define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146

File include/glxx/gl_amd_seamless_cubemap_per_texture.h

View file
  • Ignore whitespace
 
 #include "private/glxx.h"
 
+#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
+
 GLXX_EXPORT bool has_gl_amd_seamless_cubemap_per_texture();
 
 #endif

File include/glxx/gl_amd_sparse_texture.h

View file
  • Ignore whitespace
+#ifndef GL_AMD_sparse_texture
+#define GL_AMD_sparse_texture
+
+#include "private/glxx.h"
+
+#define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197
+#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
+#define GL_MIN_SPARSE_LEVEL_AMD 0x919B
+#define GL_MIN_LOD_WARNING_AMD 0x919C
+#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
+
+namespace gl_amd_sparse_texture
+{
+    GLXX_EXPORT void glTexStorageSparseAMD(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+    GLXX_EXPORT void glTextureStorageSparseAMD(GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
+}
+
+#ifdef GLXX_NAMESPACE_INJECTION
+using namespace gl_amd_sparse_texture;
+#endif
+
+GLXX_EXPORT bool has_gl_amd_sparse_texture();
+GLXX_EXPORT bool load_gl_amd_sparse_texture();
+
+#endif

File include/glxx/gl_arb_es2_compatibility.h

View file
  • Ignore whitespace
 #define GL_MEDIUM_INT 0x8DF4
 #define GL_HIGH_INT 0x8DF5
 #define GL_SHADER_COMPILER 0x8DFA
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
 #define GL_MAX_VARYING_VECTORS 0x8DFC

File include/glxx/gl_arb_fragment_program.h

View file
  • Ignore whitespace
 
 /* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
 
-namespace gl_arb_fragment_program
-{
-    GLXX_EXPORT void glVertexAttrib1dARB(GLuint index, GLdouble x);
-    GLXX_EXPORT void glVertexAttrib1dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib1fARB(GLuint index, GLfloat x);
-    GLXX_EXPORT void glVertexAttrib1fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib1sARB(GLuint index, GLshort x);
-    GLXX_EXPORT void glVertexAttrib1svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib2dARB(GLuint index, GLdouble x, GLdouble y);
-    GLXX_EXPORT void glVertexAttrib2dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y);
-    GLXX_EXPORT void glVertexAttrib2fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib2sARB(GLuint index, GLshort x, GLshort y);
-    GLXX_EXPORT void glVertexAttrib2svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib3dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z);
-    GLXX_EXPORT void glVertexAttrib3dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z);
-    GLXX_EXPORT void glVertexAttrib3fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib3sARB(GLuint index, GLshort x, GLshort y, GLshort z);
-    GLXX_EXPORT void glVertexAttrib3svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4NbvARB(GLuint index, const GLbyte* v);
-    GLXX_EXPORT void glVertexAttrib4NivARB(GLuint index, const GLint* v);
-    GLXX_EXPORT void glVertexAttrib4NsvARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-    GLXX_EXPORT void glVertexAttrib4NubvARB(GLuint index, const GLubyte* v);
-    GLXX_EXPORT void glVertexAttrib4NuivARB(GLuint index, const GLuint* v);
-    GLXX_EXPORT void glVertexAttrib4NusvARB(GLuint index, const GLushort* v);
-    GLXX_EXPORT void glVertexAttrib4bvARB(GLuint index, const GLbyte* v);
-    GLXX_EXPORT void glVertexAttrib4dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glVertexAttrib4dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glVertexAttrib4fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib4ivARB(GLuint index, const GLint* v);
-    GLXX_EXPORT void glVertexAttrib4sARB(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-    GLXX_EXPORT void glVertexAttrib4svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4ubvARB(GLuint index, const GLubyte* v);
-    GLXX_EXPORT void glVertexAttrib4uivARB(GLuint index, const GLuint* v);
-    GLXX_EXPORT void glVertexAttrib4usvARB(GLuint index, const GLushort* v);
-    GLXX_EXPORT void glVertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer);
-    GLXX_EXPORT void glEnableVertexAttribArrayARB(GLuint index);
-    GLXX_EXPORT void glDisableVertexAttribArrayARB(GLuint index);
-    GLXX_EXPORT void glProgramStringARB(GLenum target, GLenum format, GLsizei len, const GLvoid* string);
-    GLXX_EXPORT void glBindProgramARB(GLenum target, GLuint program);
-    GLXX_EXPORT void glDeleteProgramsARB(GLsizei n, const GLuint* programs);
-    GLXX_EXPORT void glGenProgramsARB(GLsizei n, GLuint* programs);
-    GLXX_EXPORT void glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glProgramEnvParameter4dvARB(GLenum target, GLuint index, const GLdouble* params);
-    GLXX_EXPORT void glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glProgramEnvParameter4fvARB(GLenum target, GLuint index, const GLfloat* params);
-    GLXX_EXPORT void glProgramLocalParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glProgramLocalParameter4dvARB(GLenum target, GLuint index, const GLdouble* params);
-    GLXX_EXPORT void glProgramLocalParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glProgramLocalParameter4fvARB(GLenum target, GLuint index, const GLfloat* params);
-    GLXX_EXPORT void glGetProgramEnvParameterdvARB(GLenum target, GLuint index, GLdouble* params);
-    GLXX_EXPORT void glGetProgramEnvParameterfvARB(GLenum target, GLuint index, GLfloat* params);
-    GLXX_EXPORT void glGetProgramLocalParameterdvARB(GLenum target, GLuint index, GLdouble* params);
-    GLXX_EXPORT void glGetProgramLocalParameterfvARB(GLenum target, GLuint index, GLfloat* params);
-    GLXX_EXPORT void glGetProgramivARB(GLenum target, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetProgramStringARB(GLenum target, GLenum pname, GLvoid* string);
-    GLXX_EXPORT void glGetVertexAttribdvARB(GLuint index, GLenum pname, GLdouble* params);
-    GLXX_EXPORT void glGetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat* params);
-    GLXX_EXPORT void glGetVertexAttribivARB(GLuint index, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid** pointer);
-    GLXX_EXPORT GLboolean glIsProgramARB(GLuint program);
-}
-
-#ifdef GLXX_NAMESPACE_INJECTION
-using namespace gl_arb_fragment_program;
-#endif
-
 GLXX_EXPORT bool has_gl_arb_fragment_program();
-GLXX_EXPORT bool load_gl_arb_fragment_program();
 
 #endif

File include/glxx/gl_arb_robustness_compatibility.h

View file
  • Ignore whitespace
+#ifndef GL_ARB_ROBUSTNESS_COMPATIBILITY
+#define GL_ARB_ROBUSTNESS_COMPATIBILITY
+
+#include "private/gl_arb_robustness.h"
+#include "private/gl_arb_robustness_deprecated.h"
+
+namespace gl_arb_robustness_compatibility
+{
+    using namespace gl_arb_robustness;
+    using namespace gl_arb_robustness_deprecated;
+}
+
+GLXX_EXPORT bool has_gl_arb_robustness_compatibility();
+GLXX_EXPORT bool load_gl_arb_robustness_compatibility();
+
+#endif

File include/glxx/gl_arb_robustness_core.h

View file
  • Ignore whitespace
+#ifndef GL_ARB_ROBUSTNESS_CORE
+#define GL_ARB_ROBUSTNESS_CORE
+
+#include "private/gl_arb_robustness.h"
+
+namespace gl_arb_robustness_core
+{
+    using namespace gl_arb_robustness;
+}
+
+GLXX_EXPORT bool has_gl_arb_robustness_core();
+GLXX_EXPORT bool load_gl_arb_robustness_core();
+
+#endif

File include/glxx/gl_arb_texture_gather.h

View file
  • Ignore whitespace
 
 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
+#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
 
 GLXX_EXPORT bool has_gl_arb_texture_gather();
 

File include/glxx/gl_ati_pixel_format_float.h

View file
  • Ignore whitespace
 
 #include "private/glxx.h"
 
-#define GL_TYPE_RGBA_FLOAT_ATI 0x8820
+#define GL_RGBA_FLOAT_MODE_ATI 0x8820
 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
 
 /* This is really a WGL extension, but defines some associated GL enums.

File include/glxx/gl_ext_pixel_transform.h

View file
  • Ignore whitespace
     GLXX_EXPORT void glPixelTransformParameterfEXT(GLenum target, GLenum pname, GLfloat param);
     GLXX_EXPORT void glPixelTransformParameterivEXT(GLenum target, GLenum pname, const GLint* params);
     GLXX_EXPORT void glPixelTransformParameterfvEXT(GLenum target, GLenum pname, const GLfloat* params);
+    GLXX_EXPORT void glGetPixelTransformParameterivEXT(GLenum target, GLenum pname, GLint* params);
+    GLXX_EXPORT void glGetPixelTransformParameterfvEXT(GLenum target, GLenum pname, GLfloat* params);
 }
 
 #ifdef GLXX_NAMESPACE_INJECTION

File include/glxx/gl_ext_vertex_weighting.h

View file
  • Ignore whitespace
 {
     GLXX_EXPORT void glVertexWeightfEXT(GLfloat weight);
     GLXX_EXPORT void glVertexWeightfvEXT(const GLfloat* weight);
-    GLXX_EXPORT void glVertexWeightPointerEXT(GLsizei size, GLenum type, GLsizei stride, const GLvoid* pointer);
+    GLXX_EXPORT void glVertexWeightPointerEXT(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
 }
 
 #ifdef GLXX_NAMESPACE_INJECTION

File include/glxx/gl_nv_fragment_program.h

View file
  • Ignore whitespace
 
 namespace gl_nv_fragment_program
 {
-    GLXX_EXPORT void glVertexAttrib1dARB(GLuint index, GLdouble x);
-    GLXX_EXPORT void glVertexAttrib1dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib1fARB(GLuint index, GLfloat x);
-    GLXX_EXPORT void glVertexAttrib1fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib1sARB(GLuint index, GLshort x);
-    GLXX_EXPORT void glVertexAttrib1svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib2dARB(GLuint index, GLdouble x, GLdouble y);
-    GLXX_EXPORT void glVertexAttrib2dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y);
-    GLXX_EXPORT void glVertexAttrib2fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib2sARB(GLuint index, GLshort x, GLshort y);
-    GLXX_EXPORT void glVertexAttrib2svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib3dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z);
-    GLXX_EXPORT void glVertexAttrib3dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z);
-    GLXX_EXPORT void glVertexAttrib3fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib3sARB(GLuint index, GLshort x, GLshort y, GLshort z);
-    GLXX_EXPORT void glVertexAttrib3svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4NbvARB(GLuint index, const GLbyte* v);
-    GLXX_EXPORT void glVertexAttrib4NivARB(GLuint index, const GLint* v);
-    GLXX_EXPORT void glVertexAttrib4NsvARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-    GLXX_EXPORT void glVertexAttrib4NubvARB(GLuint index, const GLubyte* v);
-    GLXX_EXPORT void glVertexAttrib4NuivARB(GLuint index, const GLuint* v);
-    GLXX_EXPORT void glVertexAttrib4NusvARB(GLuint index, const GLushort* v);
-    GLXX_EXPORT void glVertexAttrib4bvARB(GLuint index, const GLbyte* v);
-    GLXX_EXPORT void glVertexAttrib4dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glVertexAttrib4dvARB(GLuint index, const GLdouble* v);
-    GLXX_EXPORT void glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glVertexAttrib4fvARB(GLuint index, const GLfloat* v);
-    GLXX_EXPORT void glVertexAttrib4ivARB(GLuint index, const GLint* v);
-    GLXX_EXPORT void glVertexAttrib4sARB(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-    GLXX_EXPORT void glVertexAttrib4svARB(GLuint index, const GLshort* v);
-    GLXX_EXPORT void glVertexAttrib4ubvARB(GLuint index, const GLubyte* v);
-    GLXX_EXPORT void glVertexAttrib4uivARB(GLuint index, const GLuint* v);
-    GLXX_EXPORT void glVertexAttrib4usvARB(GLuint index, const GLushort* v);
-    GLXX_EXPORT void glVertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer);
-    GLXX_EXPORT void glEnableVertexAttribArrayARB(GLuint index);
-    GLXX_EXPORT void glDisableVertexAttribArrayARB(GLuint index);
-    GLXX_EXPORT void glProgramStringARB(GLenum target, GLenum format, GLsizei len, const GLvoid* string);
-    GLXX_EXPORT void glBindProgramARB(GLenum target, GLuint program);
-    GLXX_EXPORT void glDeleteProgramsARB(GLsizei n, const GLuint* programs);
-    GLXX_EXPORT void glGenProgramsARB(GLsizei n, GLuint* programs);
-    GLXX_EXPORT void glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glProgramEnvParameter4dvARB(GLenum target, GLuint index, const GLdouble* params);
-    GLXX_EXPORT void glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glProgramEnvParameter4fvARB(GLenum target, GLuint index, const GLfloat* params);
-    GLXX_EXPORT void glProgramLocalParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-    GLXX_EXPORT void glProgramLocalParameter4dvARB(GLenum target, GLuint index, const GLdouble* params);
-    GLXX_EXPORT void glProgramLocalParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-    GLXX_EXPORT void glProgramLocalParameter4fvARB(GLenum target, GLuint index, const GLfloat* params);
-    GLXX_EXPORT void glGetProgramEnvParameterdvARB(GLenum target, GLuint index, GLdouble* params);
-    GLXX_EXPORT void glGetProgramEnvParameterfvARB(GLenum target, GLuint index, GLfloat* params);
-    GLXX_EXPORT void glGetProgramLocalParameterdvARB(GLenum target, GLuint index, GLdouble* params);
-    GLXX_EXPORT void glGetProgramLocalParameterfvARB(GLenum target, GLuint index, GLfloat* params);
-    GLXX_EXPORT void glGetProgramivARB(GLenum target, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetProgramStringARB(GLenum target, GLenum pname, GLvoid* string);
-    GLXX_EXPORT void glGetVertexAttribdvARB(GLuint index, GLenum pname, GLdouble* params);
-    GLXX_EXPORT void glGetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat* params);
-    GLXX_EXPORT void glGetVertexAttribivARB(GLuint index, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid** pointer);
-    GLXX_EXPORT GLboolean glIsProgramARB(GLuint program);
     GLXX_EXPORT void glProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte* name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
     GLXX_EXPORT void glProgramNamedParameter4dNV(GLuint id, GLsizei len, const GLubyte* name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
     GLXX_EXPORT void glProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte* name, const GLfloat* v);

File include/glxx/gl_nv_transform_feedback.h

View file
  • Ignore whitespace
 #define GL_PRIMITIVES_GENERATED_NV 0x8C87
 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88
 #define GL_RASTERIZER_DISCARD_NV 0x8C89
-#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A
 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B
 #define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C
 #define GL_SEPARATE_ATTRIBS_NV 0x8C8D

File include/glxx/gl_nv_vdpau_interop.h

View file
  • Ignore whitespace
 {
     GLXX_EXPORT void glVDPAUInitNV(const GLvoid* vdpDevice, const GLvoid* getProcAddress);
     GLXX_EXPORT void glVDPAUFiniNV();
-    GLXX_EXPORT GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV(GLvoid* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames);
+    GLXX_EXPORT GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV(const GLvoid* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames);
     GLXX_EXPORT GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV(GLvoid* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames);
     GLXX_EXPORT void glVDPAUIsSurfaceNV(GLvdpauSurfaceNV surface);
     GLXX_EXPORT void glVDPAUUnregisterSurfaceNV(GLvdpauSurfaceNV surface);

File include/glxx/gl_s3_s3tc.h

View file
  • Ignore whitespace
 #define GL_RGB4_S3TC 0x83A1
 #define GL_RGBA_S3TC 0x83A2
 #define GL_RGBA4_S3TC 0x83A3
+#define GL_RGBA_DXT5_S3TC 0x83A4
+#define GL_RGBA4_DXT5_S3TC 0x83A5
 
 GLXX_EXPORT bool has_gl_s3_s3tc();
 

File include/glxx/glxx_all.h

View file
  • Ignore whitespace
 #include <glxx/gl_arb_viewport_array.h>
 #include <glxx/gl_arb_cl_event.h>
 #include <glxx/gl_arb_debug_output.h>
-#include <glxx/gl_arb_robustness.h>
+#include <glxx/private/gl_arb_robustness.h>
 #include <glxx/gl_arb_shader_stencil_export.h>
 #include <glxx/gl_arb_base_instance.h>
 #include <glxx/gl_arb_shading_language_420pack.h>
 #include <glxx/gl_nv_bindless_texture.h>
 #include <glxx/gl_nv_shader_atomic_float.h>
 #include <glxx/gl_amd_query_buffer_object.h>
+#include <glxx/gl_amd_sparse_texture.h>
+#include <glxx/private/gl_arb_robustness_deprecated.h>
 #include <glxx/gl_ingr_blend_func_separate.h>
 #include <glxx/gl_sgix_igloo_interface.h>
 

File include/glxx/private/gl_arb_robustness.h

View file
  • Ignore whitespace
+#ifndef GL_ARB_robustness
+#define GL_ARB_robustness
+
+#include "glxx.h"
+
+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
+#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
+#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
+#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
+#define GL_NO_RESET_NOTIFICATION_ARB 0x8261
+#define GL_NO_ERROR 0
+
+namespace gl_arb_robustness
+{
+    GLXX_EXPORT GLenum glGetGraphicsResetStatusARB();
+    GLXX_EXPORT void glGetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid* img);
+    GLXX_EXPORT void glReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid* data);
+    GLXX_EXPORT void glGetnCompressedTexImageARB(GLenum target, GLint lod, GLsizei bufSize, GLvoid* img);
+    GLXX_EXPORT void glGetnUniformfvARB(GLuint program, GLint location, GLsizei bufSize, GLfloat* params);
+    GLXX_EXPORT void glGetnUniformivARB(GLuint program, GLint location, GLsizei bufSize, GLint* params);
+    GLXX_EXPORT void glGetnUniformuivARB(GLuint program, GLint location, GLsizei bufSize, GLuint* params);
+    GLXX_EXPORT void glGetnUniformdvARB(GLuint program, GLint location, GLsizei bufSize, GLdouble* params);
+}
+
+#ifdef GLXX_NAMESPACE_INJECTION
+using namespace gl_arb_robustness;
+#endif
+
+#endif

File include/glxx/private/gl_arb_robustness_deprecated.h

View file
  • Ignore whitespace
+#ifndef GL_ARB_robustness_DEPRECATED
+#define GL_ARB_robustness_DEPRECATED
+
+namespace gl_arb_robustness_deprecated
+{
+    GLXX_EXPORT void glGetnMapdvARB(GLenum target, GLenum query, GLsizei bufSize, GLdouble* v);
+    GLXX_EXPORT void glGetnMapfvARB(GLenum target, GLenum query, GLsizei bufSize, GLfloat* v);
+    GLXX_EXPORT void glGetnMapivARB(GLenum target, GLenum query, GLsizei bufSize, GLint* v);
+    GLXX_EXPORT void glGetnPixelMapfvARB(GLenum map, GLsizei bufSize, GLfloat* values);
+    GLXX_EXPORT void glGetnPixelMapuivARB(GLenum map, GLsizei bufSize, GLuint* values);
+    GLXX_EXPORT void glGetnPixelMapusvARB(GLenum map, GLsizei bufSize, GLushort* values);
+    GLXX_EXPORT void glGetnPolygonStippleARB(GLsizei bufSize, GLubyte* pattern);
+    GLXX_EXPORT void glGetnColorTableARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid* table);
+    GLXX_EXPORT void glGetnConvolutionFilterARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid* image);
+    GLXX_EXPORT void glGetnSeparableFilterARB(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid* row, GLsizei columnBufSize, GLvoid* column, GLvoid* span);
+    GLXX_EXPORT void glGetnHistogramARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid* values);
+    GLXX_EXPORT void glGetnMinmaxARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid* values);
+}
+
+#ifdef GLXX_NAMESPACE_INJECTION
+using namespace gl_arb_robustness_deprecated;
+#endif
+
+#endif

File include/glxx/private/gl_version_1_1.h

View file
  • Ignore whitespace
 #define GL_TRIANGLES 0x0004
 #define GL_TRIANGLE_STRIP 0x0005
 #define GL_TRIANGLE_FAN 0x0006
+#define GL_QUADS 0x0007
 #define GL_NEVER 0x0200
 #define GL_LESS 0x0201
 #define GL_EQUAL 0x0202
 #define GL_LINE_WIDTH 0x0B21
 #define GL_LINE_WIDTH_RANGE 0x0B22
 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_POLYGON_MODE 0x0B40
 #define GL_POLYGON_SMOOTH 0x0B41
 #define GL_CULL_FACE 0x0B44
 #define GL_CULL_FACE_MODE 0x0B45

File include/glxx/private/gl_version_1_1_deprecated.h

View file
  • Ignore whitespace
 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
 #define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
-#define GL_QUADS 0x0007
 #define GL_QUAD_STRIP 0x0008
 #define GL_POLYGON 0x0009
 #define GL_ACCUM 0x0100
 #define GL_MAX_LIST_NESTING 0x0B31
 #define GL_LIST_BASE 0x0B32
 #define GL_LIST_INDEX 0x0B33
-#define GL_POLYGON_MODE 0x0B40
 #define GL_POLYGON_STIPPLE 0x0B42
 #define GL_EDGE_FLAG 0x0B43
 #define GL_LIGHTING 0x0B50

File include/glxx/private/gl_version_1_5.h

View file
  • Ignore whitespace
 #define GL_DYNAMIC_READ 0x88E9
 #define GL_DYNAMIC_COPY 0x88EA
 #define GL_SAMPLES_PASSED 0x8914
+#define GL_SRC1_ALPHA 0x8589
 
 namespace gl_version_1_5
 {

File include/glxx/private/gl_version_1_5_deprecated.h

View file
  • Ignore whitespace
 #define GL_SRC1_RGB 0x8581
 #define GL_SRC2_RGB 0x8582
 #define GL_SRC0_ALPHA 0x8588
-#define GL_SRC1_ALPHA 0x8589
 #define GL_SRC2_ALPHA 0x858A
 
 #endif

File include/glxx/private/gl_version_3_1.h

View file
  • Ignore whitespace
 #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
 #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
-#define GL_TEXTURE_BUFFER_FORMAT 0x8C2E
 #define GL_TEXTURE_RECTANGLE 0x84F5
 #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
 #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7

File include/glxx/private/gl_version_3_3.h

View file
  • Ignore whitespace
     GLXX_EXPORT void glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint* params);
     GLXX_EXPORT void glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params);
     GLXX_EXPORT void glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint* params);
-    GLXX_EXPORT void glGenQueriesARB(GLsizei n, GLuint* ids);
-    GLXX_EXPORT void glDeleteQueriesARB(GLsizei n, const GLuint* ids);
-    GLXX_EXPORT GLboolean glIsQueryARB(GLuint id);
-    GLXX_EXPORT void glBeginQueryARB(GLenum target, GLuint id);
-    GLXX_EXPORT void glEndQueryARB(GLenum target);
-    GLXX_EXPORT void glGetQueryivARB(GLenum target, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetQueryObjectivARB(GLuint id, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetQueryObjectuivARB(GLuint id, GLenum pname, GLuint* params);
     GLXX_EXPORT void glQueryCounter(GLuint id, GLenum target);
     GLXX_EXPORT void glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64* params);
     GLXX_EXPORT void glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64* params);

File include/glxx/private/gl_version_4_0.h

View file
  • Ignore whitespace
     GLXX_EXPORT void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint* values);
     GLXX_EXPORT void glPatchParameteri(GLenum pname, GLint value);
     GLXX_EXPORT void glPatchParameterfv(GLenum pname, const GLfloat* values);
-    GLXX_EXPORT void glTexBufferARB(GLenum target, GLenum internalformat, GLuint buffer);
     GLXX_EXPORT void glBindTransformFeedback(GLenum target, GLuint id);
     GLXX_EXPORT void glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids);
     GLXX_EXPORT void glGenTransformFeedbacks(GLsizei n, GLuint* ids);

File include/glxx/private/gl_version_4_1.h

View file
  • Ignore whitespace
 #define GL_MEDIUM_INT 0x8DF4
 #define GL_HIGH_INT 0x8DF5
 #define GL_SHADER_COMPILER 0x8DFA
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
 #define GL_MAX_VARYING_VECTORS 0x8DFC

File include/glxx/private/gl_version_4_3.h

View file
  • Ignore whitespace
     GLXX_EXPORT void glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
     GLXX_EXPORT void glDispatchComputeIndirect(GLintptr indirect);
     GLXX_EXPORT void glCopyImageSubData(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);
-    GLXX_EXPORT void glDebugMessageControlARB(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
-    GLXX_EXPORT void glDebugMessageInsertARB(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf);
-    GLXX_EXPORT void glDebugMessageCallbackARB(GLDEBUGPROCARB callback, const GLvoid* userParam);
-    GLXX_EXPORT GLuint glGetDebugMessageLogARB(GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog);
     GLXX_EXPORT void glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
     GLXX_EXPORT void glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf);
     GLXX_EXPORT void glDebugMessageCallback(GLDEBUGPROC callback, const void* userParam);
     GLXX_EXPORT void glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint* params);
     GLXX_EXPORT void glNamedFramebufferParameteriEXT(GLuint framebuffer, GLenum pname, GLint param);
     GLXX_EXPORT void glGetNamedFramebufferParameterivEXT(GLuint framebuffer, GLenum pname, GLint* params);
-    GLXX_EXPORT void glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params);
     GLXX_EXPORT void glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64* params);
     GLXX_EXPORT void glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
     GLXX_EXPORT void glInvalidateTexImage(GLuint texture, GLint level);
     GLXX_EXPORT void glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
     GLXX_EXPORT void glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
     GLXX_EXPORT void glTextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
-    GLXX_EXPORT void glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-    GLXX_EXPORT void glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-    GLXX_EXPORT void glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
-    GLXX_EXPORT void glTextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-    GLXX_EXPORT void glTextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-    GLXX_EXPORT void glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
     GLXX_EXPORT void glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
     GLXX_EXPORT void glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
     GLXX_EXPORT void glTextureStorage2DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);

File src/glXxx.cpp

View file
  • Ignore whitespace
 }
 
 
+
+
+GLXX_EXPORT bool load_glx_ext_buffer_age()
+{
+    assert(glXxxGetCurrentCtx() && "load_glx_ext_buffer_age() called without a current context");
+
+    if (glxxx_current_loader == 0) {
+        glxxx_loaders.push_back(std::tr1::shared_ptr<glxxxLoader>(new glxxxLoader));
+        glxxx_current_loader = glxxx_loaders[0].get();
+    }
+
+    bool is_loaded = true;
+
+        
+    return is_loaded;
+}
+
+GLXX_EXPORT bool has_glx_ext_buffer_age()
+{
+    return glXxxIsExtensionSupported("GLX_EXT_buffer_age");
+}
+
+
 bool has_glx_1_3() { return glXxxIsVersionSupported(1, 3); }
 bool has_glx_1_4() { return glXxxIsVersionSupported(1, 4); }