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:
22
src/osg/ColorMatrix.cpp
Normal file
22
src/osg/ColorMatrix.cpp
Normal 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 );
|
||||
}
|
||||
Reference in New Issue
Block a user