Initial revision
This commit is contained in:
25
src/osg/TexMat.cpp
Normal file
25
src/osg/TexMat.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "osg/GL"
|
||||
#include "osg/TexMat"
|
||||
|
||||
using namespace osg;
|
||||
|
||||
TexMat::TexMat( void )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
TexMat::~TexMat( void )
|
||||
{
|
||||
}
|
||||
|
||||
TexMat* TexMat::instance()
|
||||
{
|
||||
static ref_ptr<TexMat> s_texmat(new TexMat);
|
||||
return s_texmat.get();
|
||||
}
|
||||
|
||||
void TexMat::apply( void )
|
||||
{
|
||||
glMatrixMode( GL_TEXTURE );
|
||||
glLoadMatrixf( (GLfloat *)_mat );
|
||||
}
|
||||
Reference in New Issue
Block a user