17 #include <osg/StateAttribute>
35 NOTEQUAL = GL_NOTEQUAL,
41 Depth(Function func=LESS,
double zNear=0.0,
double zFar=1.0,
bool writeMask=
true);
49 _depthWriteMask(dp._depthWriteMask) {}
80 inline void setRange(
double zNear,
double zFar)
86 inline void setZNear(
double zNear) { _zNear=zNear; }
87 inline double getZNear()
const {
return _zNear; }
89 inline void setZFar(
double zFar) { _zFar=zFar; }
90 inline double getZFar()
const {
return _zFar; }
96 virtual void apply(
State& state)
const;
Depth(const Depth &dp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
void setRange(double zNear, double zFar)
virtual void usesMode(GLMode mode)=0
void setZFar(double zFar)
virtual int compare(const StateAttribute &sa) const
bool getWriteMask() const
void setWriteMask(bool mask)
void setZNear(double zNear)
Function getFunction() const
void setFunction(Function func)
#define META_StateAttribute(library, name, type)
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
#define COMPARE_StateAttribute_Parameter(parameter)