Changeset 13041 for OpenSceneGraph/trunk/include/osg/VertexProgram
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/VertexProgram (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/VertexProgram
r11808 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 151 151 } 152 152 153 153 154 154 /** Set the vertex program using a C style string. */ 155 inline void setVertexProgram( const char* program ) 156 { 157 _vertexProgram = program; 155 inline void setVertexProgram( const char* program ) 156 { 157 _vertexProgram = program; 158 158 dirtyVertexProgramObject(); 159 159 } … … 204 204 205 205 /** Force a recompile on next apply() of associated OpenGL vertex program objects. */ 206 void dirtyVertexProgramObject(); 206 void dirtyVertexProgramObject(); 207 207 208 208 /** Use deleteVertexProgramObject instead of glDeletePrograms to allow … … 239 239 240 240 /** Extensions class which encapsulates the querying of extensions and 241 * associated function pointers, and provide convenience wrappers to 241 * associated function pointers, and provide convenience wrappers to 242 242 * check for the extensions or use the associated functions. 243 243 */ … … 248 248 249 249 Extensions(const Extensions& rhs); 250 250 251 251 void lowestCommonDenominator(const Extensions& rhs); 252 252 253 253 void setupGLExtensions(unsigned int contextID); 254 254 … … 259 259 void glGenPrograms(GLsizei n, GLuint *programs) const; 260 260 void glDeletePrograms(GLsizei n, GLuint *programs) const; 261 void glProgramString(GLenum target, GLenum format, GLsizei len, const void *string) const; 261 void glProgramString(GLenum target, GLenum format, GLsizei len, const void *string) const; 262 262 void glProgramLocalParameter4fv(GLenum target, GLuint index, const GLfloat *params) const; 263 263 … … 265 265 266 266 ~Extensions() {} 267 267 268 268 bool _isVertexProgramSupported; 269 269 270 270 typedef void (GL_APIENTRY * BindProgramProc) (GLenum target, GLuint id); 271 271 typedef void (GL_APIENTRY * GenProgramsProc) (GLsizei n, GLuint *programs); 272 272 typedef void (GL_APIENTRY * DeleteProgramsProc) (GLsizei n, GLuint *programs); 273 typedef void (GL_APIENTRY * ProgramStringProc) (GLenum target, GLenum format, GLsizei len, const void *string); 273 typedef void (GL_APIENTRY * ProgramStringProc) (GLenum target, GLenum format, GLsizei len, const void *string); 274 274 typedef void (GL_APIENTRY * ProgramLocalParameter4fvProc) (GLenum target, GLuint index, const GLfloat *params); 275 275 … … 279 279 ProgramStringProc _glProgramString; 280 280 ProgramLocalParameter4fvProc _glProgramLocalParameter4fv; 281 281 282 282 }; 283 283 284 284 /** Function to call to get the extension of a specified context. 285 285 * If the Extension object for that context has not yet been created
