Added support for optimization of Uniforms

This commit is contained in:
Robert Osfield
2005-05-02 10:18:37 +00:00
parent 938d13ecc7
commit b85d4d4e7e
3 changed files with 132 additions and 62 deletions

View File

@@ -30,12 +30,15 @@ using namespace osg;
Uniform::Uniform() :
_name(""), _type(UNDEFINED)
{
setDataVariance(STATIC);
}
Uniform::Uniform( const char* name, Type type ) :
_name(name), _type(type)
{
setDataVariance(STATIC);
switch( _type )
{
case FLOAT: set( 0.0f ); break;