Added beginnings of shader composition with the shells of the ShaderComposer and ShaderAttribute classes. This aren't

functional yet, but a useful placeholders for future fucntionality.
This commit is contained in:
Robert Osfield
2010-06-24 17:15:27 +00:00
parent 83ea076d8b
commit 5cac233764
7 changed files with 268 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ namespace osg {
// forward declare NodeVisitor, State & StateSet
class NodeVisitor;
class State;
class ShaderComposer;
class StateSet;
class Texture;
@@ -315,6 +316,9 @@ class OSG_EXPORT StateAttribute : public Object
*/
virtual void apply(State&) const {}
/* compose associated shaders via the ShaderComposer. */
virtual void compose(ShaderComposer& composer) const {}
/** Default to nothing to compile - all state is applied immediately. */
virtual void compileGLObjects(State&) const {}