14#ifndef OSG_SAMPLEMASKI
15#define OSG_SAMPLEMASKI 1
38 inline void setMask(
unsigned int mask,
unsigned int maskNumber = 0u ) {
_sampleMask[maskNumber] = mask; }
40 inline unsigned int getMask(
unsigned int maskNumber = 0u)
const {
return _sampleMask[maskNumber]; }
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
unsigned int getMask(unsigned int maskNumber=0u) const
Definition SampleMaski:40
SampleMaski(const SampleMaski &sampleMaski, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setMask(unsigned int mask, unsigned int maskNumber=0u)
Definition SampleMaski:38
virtual void apply(State &state) const
apply the OpenGL state attributes.
META_StateAttribute(osg, SampleMaski, SAMPLEMASKI) virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
unsigned int _sampleMask[2]
Definition SampleMaski:49
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
virtual int compare(const StateAttribute &sa) const =0
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
@ SAMPLEMASKI
Definition StateAttribute:167
#define OSG_EXPORT
Definition Export:39