Developer Documentation
ACG::QueryCounter Class Reference

Public Member Functions

void restart ()
 
void stop ()
 
GLuint64 elapsedNs ()
 elapsed gpu time since restart() in nanosecs More...
 
GLuint64 elapsedMs ()
 elapsed gpu time in millisecs More...
 
float elapsedSecs ()
 elapsed gpu time in seconds More...
 

Static Public Member Functions

static bool isSupported ()
 check hw support More...
 

Private Attributes

GLuint queryObjects_ [2]
 
int state_
 

Static Private Attributes

static int supportStatus_ = -1
 

Detailed Description

Definition at line 850 of file globjects.hh.

Constructor & Destructor Documentation

◆ QueryCounter()

ACG::QueryCounter::QueryCounter ( )

Definition at line 1192 of file globjects.cc.

◆ ~QueryCounter()

ACG::QueryCounter::~QueryCounter ( )
virtual

Definition at line 1198 of file globjects.cc.

Member Function Documentation

◆ elapsedMs()

GLuint64 ACG::QueryCounter::elapsedMs ( )

elapsed gpu time in millisecs

Definition at line 1252 of file globjects.cc.

◆ elapsedNs()

GLuint64 ACG::QueryCounter::elapsedNs ( )

elapsed gpu time since restart() in nanosecs

Definition at line 1231 of file globjects.cc.

◆ elapsedSecs()

float ACG::QueryCounter::elapsedSecs ( )

elapsed gpu time in seconds

Definition at line 1257 of file globjects.cc.

◆ isSupported()

bool ACG::QueryCounter::isSupported ( )
static

check hw support

Definition at line 1264 of file globjects.cc.

◆ restart()

void ACG::QueryCounter::restart ( )

Definition at line 1205 of file globjects.cc.

◆ stop()

void ACG::QueryCounter::stop ( )

Definition at line 1220 of file globjects.cc.

Member Data Documentation

◆ queryObjects_

GLuint ACG::QueryCounter::queryObjects_[2]
private

Definition at line 873 of file globjects.hh.

◆ state_

int ACG::QueryCounter::state_
private

Definition at line 874 of file globjects.hh.

◆ supportStatus_

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

Definition at line 876 of file globjects.hh.


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