80 inline void setRange(
double zNear,
double zFar)
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition Depth:55
void setRange(double zNear, double zFar)
Definition Depth:80
virtual void apply(State &state) const
apply the OpenGL state attributes.
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)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition Depth:44
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition Depth:70
double _zNear
Definition Depth:104
bool _depthWriteMask
Definition Depth:107
Function getFunction() const
Definition Depth:77
Function
Definition Depth:29
@ GREATER
Definition Depth:34
@ EQUAL
Definition Depth:32
@ LESS
Definition Depth:31
@ GEQUAL
Definition Depth:36
@ LEQUAL
Definition Depth:33
@ NOTEQUAL
Definition Depth:35
@ NEVER
Definition Depth:30
@ ALWAYS
Definition Depth:37
Depth(Function func=LESS, double zNear=0.0, double zFar=1.0, bool writeMask=true)
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ DEPTH
Definition StateAttribute:154
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39