glcaps.c
branchtrunk
changeset 271 a9f0f4a1d9a9
parent 269 fbc4e1843809
child 272 951e5cecbd99
equal deleted inserted replaced
270:f39b9bd67122 271:a9f0f4a1d9a9
     9 #include "GL/glext.h"
     9 #include "GL/glext.h"
    10 #include "SDL.h"
    10 #include "SDL.h"
    11 
    11 
    12 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
    12 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
    13 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
    13 typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
       
    14 
       
    15 #ifndef GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT
       
    16 #define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
       
    17 #endif
       
    18 #ifndef GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT
       
    19 #define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
       
    20 #endif
       
    21 #ifndef GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT
       
    22 #define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
       
    23 #endif
       
    24 #ifndef GL_MAX_BINDABLE_UNIFORM_SIZE_EXT
       
    25 #define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED
       
    26 #endif
       
    27 
    14 
    28 
    15 int main(int argc, char **argv)
    29 int main(int argc, char **argv)
    16 {
    30 {
    17     GLint val = 0;
    31     GLint val = 0;
    18 
    32 
    90 	getval(GL_MAX_TEXTURE_IMAGE_UNITS_ARB);
   104 	getval(GL_MAX_TEXTURE_IMAGE_UNITS_ARB);
    91 	getval(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB);
   105 	getval(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB);
    92 	getval(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB);
   106 	getval(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB);
    93 	getval(GL_MAX_TEXTURE_COORDS_ARB);
   107 	getval(GL_MAX_TEXTURE_COORDS_ARB);
    94 
   108 
       
   109     printf("\nGL_EXT_bindable_uniform values...\n\n");
       
   110 
       
   111     getval(GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT);
       
   112     getval(GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT);
       
   113     getval(GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT);
       
   114     getval(GL_MAX_BINDABLE_UNIFORM_SIZE_EXT);
       
   115 
    95     #undef getval
   116     #undef getval
    96 
   117 
    97     SDL_Quit();
   118     SDL_Quit();
    98     printf("\n");
   119     printf("\n");
    99 
   120