SLProject 4.0.000
SLDrawBits Class Reference

Drawing states stored in the bits of an unsigned int. More...

#include <SLDrawBits.h>

Public Member Functions

 SLDrawBits ()
 
 ~SLDrawBits ()
 
void allOff ()
 Turns all bits off. More...
 
void on (SLuint bit)
 Turns the specified bit on. More...
 
void off (SLuint bit)
 Turns the specified bit off. More...
 
void set (SLuint bit, SLbool state)
 Sets the specified bit to the passed state. More...
 
void toggle (SLuint bit)
 Toggles the specified bit. More...
 
SLbool get (SLuint bit)
 Returns the specified bit. More...
 
SLuint bits ()
 Returns the all bits. More...
 
void bits (SLuint b)
 Set all bits. More...
 

Private Attributes

SLuint _bits
 Drawing flags as a unsigned 32-bit register. More...
 

Detailed Description

Drawing states stored in the bits of an unsigned int.

The drawing bits can be applied to the entire scene, a group or a mesh. The default value is 0 signifying the default state. See the defines above for the different drawing bit flags.

Constructor & Destructor Documentation

◆ SLDrawBits()

SLDrawBits::SLDrawBits ( )
inline

◆ ~SLDrawBits()

SLDrawBits::~SLDrawBits ( )
inline

Member Function Documentation

◆ allOff()

void SLDrawBits::allOff ( )
inline

Turns all bits off.

◆ bits() [1/2]

SLuint SLDrawBits::bits ( )
inline

Returns the all bits.

◆ bits() [2/2]

void SLDrawBits::bits ( SLuint  b)
inline

Set all bits.

◆ get()

SLbool SLDrawBits::get ( SLuint  bit)
inline

Returns the specified bit.

◆ off()

void SLDrawBits::off ( SLuint  bit)
inline

Turns the specified bit off.

◆ on()

void SLDrawBits::on ( SLuint  bit)
inline

Turns the specified bit on.

◆ set()

void SLDrawBits::set ( SLuint  bit,
SLbool  state 
)
inline

Sets the specified bit to the passed state.

◆ toggle()

void SLDrawBits::toggle ( SLuint  bit)
inline

Toggles the specified bit.

Member Data Documentation

◆ _bits

SLuint SLDrawBits::_bits
private

Drawing flags as a unsigned 32-bit register.


The documentation for this class was generated from the following file: