HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RE_TimerQuery Class Reference

Basic GL timer query implementation. More...

#include <RE_TimerQuery.h>

+ Inheritance diagram for RE_TimerQuery:

Public Member Functions

 RE_TimerQuery ()
 
virtual ~RE_TimerQuery ()
 
int64 getElapsedTimeNS (RE_Render *r)
 Fetch elapsed render time between begin/end in nanoseconds. Returns the elapsed time in nanoseconds. If this extension is not supported, it will always return 0 and assert. Calling this without previously calling begin/end, or inside begin/end, will also assert. More...
 
bool recordTimestamp (RE_Render *r)
 
int64 getTimeStampNS (RE_Render *r)
 Fetch the timestamp recorded by recordTimestamp() More...
 
- Public Member Functions inherited from RE_OGLQuery
virtual ~RE_OGLQuery ()
 
virtual bool init (RE_Render *r)
 Create the query. A query cannot be created if another query is active. More...
 
bool isResultAvailable (RE_Render *r) const
 Returns true if the query result is available from the GL server. More...
 
bool isQueryBlockDone () const
 returns true if a query block has been executed in the past. More...
 
int getID () const
 Get Raw GL ID of the query object. More...
 
void reset ()
 
void destroy ()
 Deletes the query ID. init() must be called again. More...
 
virtual bool begin (RE_Render *r)
 
virtual void end (RE_Render *r)
 
- Public Member Functions inherited from RE_ContextSpecificObject
 RE_ContextSpecificObject ()
 
virtual ~RE_ContextSpecificObject ()
 
void initContext (RE_Render *r)
 
bool matchesContext (RE_Render *r) const
 
void clearContext ()
 

Additional Inherited Members

- Protected Member Functions inherited from RE_OGLQuery
 RE_OGLQuery (RE_Extension extension_type, int gl_query_type, int stream_num, RE_Extension alternate_extension=RE_EXT_INVALID, int alt_gl_query_type=0)
 
int getIntResult (RE_Render *r)
 
int64 getLongResult (RE_Render *r)
 
bool queryCounter (RE_Render *r)
 
- Protected Member Functions inherited from RE_ContextSpecificObject
RE_RendergetMyRender ()
 
bool initOrCheckRender (RE_Render *r)
 

Detailed Description

Basic GL timer query implementation.

Definition at line 26 of file RE_TimerQuery.h.

Constructor & Destructor Documentation

RE_TimerQuery::RE_TimerQuery ( )
virtual RE_TimerQuery::~RE_TimerQuery ( )
inlinevirtual

Definition at line 30 of file RE_TimerQuery.h.

Member Function Documentation

int64 RE_TimerQuery::getElapsedTimeNS ( RE_Render r)
inline

Fetch elapsed render time between begin/end in nanoseconds. Returns the elapsed time in nanoseconds. If this extension is not supported, it will always return 0 and assert. Calling this without previously calling begin/end, or inside begin/end, will also assert.

Definition at line 37 of file RE_TimerQuery.h.

int64 RE_TimerQuery::getTimeStampNS ( RE_Render r)
inline

Fetch the timestamp recorded by recordTimestamp()

Definition at line 46 of file RE_TimerQuery.h.

bool RE_TimerQuery::recordTimestamp ( RE_Render r)
inline

Alternate query - request the GPU timestamp. This is useful because timer queries cannot be nested, so higher level intervals can be computed by differencing 2 timestamps. RE_GPUTimer does this.

Definition at line 43 of file RE_TimerQuery.h.


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