Adding support for controlling visual settings via environmental variables

and command line paramters.  Including support for stereo and stencil buffer.
This commit is contained in:
Robert Osfield
2001-12-19 00:38:23 +00:00
parent a3fe8ebb18
commit 296865e250
24 changed files with 825 additions and 300 deletions

22
src/osg/ColorMatrix.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include <osg/GL>
#include <osg/ColorMatrix>
using namespace osg;
ColorMatrix::ColorMatrix()
{
}
ColorMatrix::~ColorMatrix()
{
}
void ColorMatrix::apply(State&) const
{
// std::cout<<"applying matrix"<<_matrix<<std::endl;
glMatrixMode( GL_COLOR );
glLoadMatrixf( _matrix.ptr() );
glMatrixMode( GL_MODELVIEW );
}