More clean up for synch with 0.8.42
This commit is contained in:
25
src/osg/Depth.cpp
Normal file
25
src/osg/Depth.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <osg/Depth>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
Depth::Depth()
|
||||
{
|
||||
_func = LESS;
|
||||
_depthWriteMask = true;
|
||||
|
||||
_zNear = 0.0;
|
||||
_zFar = 1.0;
|
||||
}
|
||||
|
||||
|
||||
Depth::~Depth()
|
||||
{
|
||||
}
|
||||
|
||||
void Depth::apply(State&) const
|
||||
{
|
||||
glDepthFunc((GLenum)_func);
|
||||
glDepthMask((GLboolean)_depthWriteMask);
|
||||
glDepthRange(_zNear,_zFar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user