Developer Documentation
|
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_ |
Definition at line 800 of file globjects.hh.
ACG::QueryObject::QueryObject | ( | GLenum | _type = GL_SAMPLES_PASSED | ) |
Definition at line 1141 of file globjects.cc.
|
virtual |
Definition at line 1147 of file globjects.cc.
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.
void ACG::QueryObject::begin | ( | ) |
begin measuring the query
Definition at line 1153 of file globjects.cc.
void ACG::QueryObject::end | ( | ) |
stop measuring the query
Definition at line 1162 of file globjects.cc.
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.
|
private |
Definition at line 827 of file globjects.hh.
|
private |
Definition at line 828 of file globjects.hh.
|
private |
Definition at line 829 of file globjects.hh.