diff options
author | Ian Romanick <idr@us.ibm.com> | 2006-08-15 16:47:34 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2006-08-15 16:47:34 +0000 |
commit | 8c41c757fe8efa04df0dd5cdfb33a75b84891c19 (patch) | |
tree | 23d57eea7976a8594b7ee64b2a39a5c3738c1162 /include | |
parent | 5208d93a418c2d1f9db67e3760117ceb659b7f7c (diff) |
Add support for GL_EXT_gpu_program_parameters. Any driver that enables
either GL_ARB_vertex_program or GL_ARB_fragment_program should enable this
extension as well.
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/gl.h | 18 | ||||
-rw-r--r-- | include/GL/gl_mangle.h | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h index 25f90e3086..40f3b9da77 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -2312,6 +2312,24 @@ typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) #endif /* GL_EXT_packed_depth_stencil */ +#ifndef GL_EXT_gpu_program_parameters +#define GL_EXT_gpu_program_parameters 1 + +GLAPI void GLAPIENTRY glProgramEnvParameters4fvEXT(GLenum target, + GLuint index, GLsizei count, const GLfloat *params); + +GLAPI void GLAPIENTRY glProgramLocalParameters4fvEXT(GLenum target, + GLuint index, GLsizei count, const GLfloat *params); + +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) + (GLenum target, GLuint index, GLsizei count, const GLfloat *params); + +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) + (GLenum target, GLuint index, GLsizei count, const GLfloat *params); + +#endif /* GL_EXT_gpu_program_parameters */ + + #ifndef GL_EXT_texture_sRGB #define GL_EXT_texture_sRGB 1 diff --git a/include/GL/gl_mangle.h b/include/GL/gl_mangle.h index c8d2c42b46..2e6558def1 100644 --- a/include/GL/gl_mangle.h +++ b/include/GL/gl_mangle.h @@ -865,10 +865,12 @@ #define glProgramEnvParameter4dvARB MANGLE(ProgramEnvParameter4dvARB) #define glProgramEnvParameter4fARB MANGLE(ProgramEnvParameter4fARB) #define glProgramEnvParameter4fvARB MANGLE(ProgramEnvParameter4fvARB) +#define glProgramEnvParameters4fvEXT MANGLE(ProgramEnvParameters4fvEXT) #define glProgramLocalParameter4dARB MANGLE(ProgramLocalParameter4dARB) #define glProgramLocalParameter4dvARB MANGLE(ProgramLocalParameter4dvARB) #define glProgramLocalParameter4fARB MANGLE(ProgramLocalParameter4fARB) #define glProgramLocalParameter4fvARB MANGLE(ProgramLocalParameter4fvARB) +#define glProgramLocalParameters4fvEXT MANGLE(ProgramLocalParameters4fvEXT) #define glProgramNamedParameter4dNV MANGLE(ProgramNamedParameter4dNV) #define glProgramNamedParameter4dvNV MANGLE(ProgramNamedParameter4dvNV) #define glProgramNamedParameter4fNV MANGLE(ProgramNamedParameter4fNV) |