Developer Documentation
ACG::AtomicCounter Class Reference

Public Member Functions

 AtomicCounter (int _numCounters=1)
 
void init ()
 
void set (unsigned int _value=0)
 
void get (unsigned int *_out)
 
void bind ()
 
void bind (GLuint _index)
 
void unbind ()
 
bool isValid () const
 
GLuint getBufferId () const
 
int getNumCounters () const
 

Static Public Member Functions

static bool isSupported ()
 

Private Attributes

int numCounters_
 
GLuint buffer_
 

Static Private Attributes

static int supportStatus_ = -1
 

Detailed Description

Definition at line 739 of file globjects.hh.

Constructor & Destructor Documentation

◆ AtomicCounter()

ACG::AtomicCounter::AtomicCounter ( int  _numCounters = 1)

Definition at line 1016 of file globjects.cc.

◆ ~AtomicCounter()

ACG::AtomicCounter::~AtomicCounter ( )
virtual

Definition at line 1021 of file globjects.cc.

Member Function Documentation

◆ bind() [1/2]

void ACG::AtomicCounter::bind ( )

Definition at line 1044 of file globjects.cc.

◆ bind() [2/2]

void ACG::AtomicCounter::bind ( GLuint  _index)

Definition at line 1056 of file globjects.cc.

◆ get()

void ACG::AtomicCounter::get ( unsigned int *  _out)

Definition at line 1099 of file globjects.cc.

◆ getBufferId()

GLuint ACG::AtomicCounter::getBufferId ( ) const
inline

Definition at line 771 of file globjects.hh.

◆ getNumCounters()

int ACG::AtomicCounter::getNumCounters ( ) const
inline

Definition at line 772 of file globjects.hh.

◆ init()

void ACG::AtomicCounter::init ( )

Definition at line 1027 of file globjects.cc.

◆ isSupported()

bool ACG::AtomicCounter::isSupported ( )
static

Definition at line 1120 of file globjects.cc.

◆ isValid()

bool ACG::AtomicCounter::isValid ( ) const

Definition at line 1134 of file globjects.cc.

◆ set()

void ACG::AtomicCounter::set ( unsigned int  _value = 0)

Definition at line 1075 of file globjects.cc.

◆ unbind()

void ACG::AtomicCounter::unbind ( )

Definition at line 1068 of file globjects.cc.

Member Data Documentation

◆ buffer_

GLuint ACG::AtomicCounter::buffer_
private

Definition at line 777 of file globjects.hh.

◆ numCounters_

int ACG::AtomicCounter::numCounters_
private

Definition at line 776 of file globjects.hh.

◆ supportStatus_

int ACG::AtomicCounter::supportStatus_ = -1
staticprivate

Definition at line 779 of file globjects.hh.


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