Developer Documentation
ACG::QueryObject Class Reference

Public Member Functions

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

Private Attributes

GLuint id_
 
int state_
 
GLenum type_
 

Detailed Description

Definition at line 800 of file globjects.hh.

Constructor & Destructor Documentation

◆ QueryObject()

ACG::QueryObject::QueryObject ( GLenum  _type = GL_SAMPLES_PASSED)

Definition at line 1141 of file globjects.cc.

◆ ~QueryObject()

ACG::QueryObject::~QueryObject ( )
virtual

Definition at line 1147 of file globjects.cc.

Member Function Documentation

◆ available()

bool ACG::QueryObject::available ( ) const

check if the result is available (does not wait for gpu to finish)

Definition at line 1171 of file globjects.cc.

◆ begin()

void ACG::QueryObject::begin ( )

begin measuring the query

Definition at line 1153 of file globjects.cc.

◆ end()

void ACG::QueryObject::end ( )

stop measuring the query

Definition at line 1162 of file globjects.cc.

◆ result()

GLuint ACG::QueryObject::result ( ) const

get the measurement of the query between the begin() end() calls (waits for the gpu)

Definition at line 1179 of file globjects.cc.

Member Data Documentation

◆ id_

GLuint ACG::QueryObject::id_
private

Definition at line 827 of file globjects.hh.

◆ state_

int ACG::QueryObject::state_
private

Definition at line 828 of file globjects.hh.

◆ type_

GLenum ACG::QueryObject::type_
private

Definition at line 829 of file globjects.hh.


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