Research on GL_EXT_bindable_uniform for future experimentation. trunk
authorRyan C. Gordon <icculus@icculus.org>
Fri, 02 May 2008 23:25:05 -0400
branchtrunk
changeset 271 a9f0f4a1d9a9
parent 270 f39b9bd67122
child 272 951e5cecbd99
Research on GL_EXT_bindable_uniform for future experimentation.
glcaps.c
--- a/glcaps.c	Fri May 02 20:33:36 2008 -0400
+++ b/glcaps.c	Fri May 02 23:25:05 2008 -0400
@@ -12,6 +12,20 @@
 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
 
+#ifndef GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT
+#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
+#endif
+#ifndef GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT
+#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
+#endif
+#ifndef GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT
+#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
+#endif
+#ifndef GL_MAX_BINDABLE_UNIFORM_SIZE_EXT
+#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED
+#endif
+
+
 int main(int argc, char **argv)
 {
     GLint val = 0;
@@ -92,6 +106,13 @@
 	getval(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB);
 	getval(GL_MAX_TEXTURE_COORDS_ARB);
 
+    printf("\nGL_EXT_bindable_uniform values...\n\n");
+
+    getval(GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT);
+    getval(GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT);
+    getval(GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT);
+    getval(GL_MAX_BINDABLE_UNIFORM_SIZE_EXT);
+
     #undef getval
 
     SDL_Quit();