Developer Documentation
ACG::QueryObject Class Reference

Public Member Functions

 QueryObject (GLenum _type=GL_SAMPLES_PASSED)
 
void begin ()
 begin measuring the query
 
void end ()
 stop measuring the query
 
bool available () const
 check if the result is available (does not wait for gpu to finish)
 
GLuint result () const
 get the measurement of the query between the begin() end() calls (waits for the gpu)
 

Private Attributes

GLuint id_
 
int state_
 
GLenum type_
 

Detailed Description

Definition at line 809 of file globjects.hh.


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