Changeset 13041 for OpenSceneGraph/trunk/include/osg/Shader
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Shader (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Shader
r11942 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 3 3 * Copyright (C) 2004-2005 Nathan Cournia … … 5 5 * Copyright (C) 2010 VIRES Simulationstechnologie GmbH 6 6 * 7 * This application is open source and may be redistributed and/or modified 7 * This application is open source and may be redistributed and/or modified 8 8 * freely and without restriction, both in commercial and non commercial 9 9 * applications, as long as this copyright notice is maintained. 10 * 10 * 11 11 * This application is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 34 34 class Program; 35 35 36 /** Simple class for wrapping up the data used in OpenGL ES 2's glShaderBinary calls. 36 /** Simple class for wrapping up the data used in OpenGL ES 2's glShaderBinary calls. 37 37 * ShaderBinary is set up with the binary data then assigned to one or more osg::Shader. */ 38 38 class OSG_EXPORT ShaderBinary : public osg::Object … … 115 115 /** Get the Shader type as a descriptive string. */ 116 116 const char* getTypename() const; 117 117 118 118 119 119 /** Set file name for the shader source code. */ … … 132 132 133 133 /** Set the Shader using a ShaderBinary. */ 134 void setShaderBinary(ShaderBinary* shaderBinary) { _shaderBinary = shaderBinary; } 135 134 void setShaderBinary(ShaderBinary* shaderBinary) { _shaderBinary = shaderBinary; } 135 136 136 /** Get the Shader's ShaderBinary, return NULL if none is assigned. */ 137 ShaderBinary* getShaderBinary() { return _shaderBinary.get(); } 137 ShaderBinary* getShaderBinary() { return _shaderBinary.get(); } 138 138 139 139 /** Get the const Shader's ShaderBinary, return NULL if none is assigned. */ 140 const ShaderBinary* getShaderBinary() const { return _shaderBinary.get(); } 140 const ShaderBinary* getShaderBinary() const { return _shaderBinary.get(); } 141 141 142 142 … … 178 178 /** Mark our PCSs as needing recompilation. 179 179 * Also mark Programs that depend on us as needing relink */ 180 void dirtyShader(); 180 void dirtyShader(); 181 181 182 182 /** If needed, compile the PCS's glShader */ … … 268 268 269 269 CodeInjectionMap _codeInjectionMap; 270 270 271 271 /** osg::Programs that this osg::Shader is attached to */ 272 272 typedef std::set< osg::Program* > ProgramSet;
