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; }
#define COMPARE_StateAttribute_Parameter(parameter)
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
Definition StateAttribute:57
virtual int compare(const StateAttribute &sa) const
Definition Depth:55
void setRange(double zNear, double zFar)
Definition Depth:80
virtual void apply(State &state) const
Function _func
Definition Depth:102
void setWriteMask(bool mask)
Definition Depth:92
void setFunction(Function func)
Definition Depth:76
void setZFar(double zFar)
Definition Depth:89
double getZFar() const
Definition Depth:90
double getZNear() const
Definition Depth:87
double _zFar
Definition Depth:105
META_StateAttribute(osg, Depth, DEPTH)
bool getWriteMask() const
Definition Depth:93
void setZNear(double zNear)
Definition Depth:86
Depth(const Depth &dp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Definition Depth:44
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Definition Depth:70
double _zNear
Definition Depth:104
bool _depthWriteMask
Definition Depth:107
Function getFunction() const
Definition Depth:77
Function
Definition Depth:29
Depth(Function func=LESS, double zNear=0.0, double zFar=1.0, bool writeMask=true)
Definition StateAttribute:77
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
@ ALWAYS
Definition Notify:31
#define OSG_EXPORT
Definition osg/Export:39
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0