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

#include <RE_OGLQuery.h>

+ Inheritance diagram for RE_OGLQuery:

Public Member Functions

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 ()
 

Protected Member Functions

 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

Definition at line 16 of file RE_OGLQuery.h.

Constructor & Destructor Documentation

virtual RE_OGLQuery::~RE_OGLQuery ( )
virtual
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 
)
protected

Member Function Documentation

virtual bool RE_OGLQuery::begin ( RE_Render r)
virtual

Bracket the draw calls to measure with begin and end.

Reimplemented in RE_OcclusionQuery.

void RE_OGLQuery::destroy ( )

Deletes the query ID. init() must be called again.

virtual void RE_OGLQuery::end ( RE_Render r)
virtual

Bracket the draw calls to measure with begin and end.

Reimplemented in RE_OcclusionQuery.

int RE_OGLQuery::getID ( ) const
inline

Get Raw GL ID of the query object.

Definition at line 37 of file RE_OGLQuery.h.

int RE_OGLQuery::getIntResult ( RE_Render r)
protected
int64 RE_OGLQuery::getLongResult ( RE_Render r)
protected
virtual bool RE_OGLQuery::init ( RE_Render r)
virtual

Create the query. A query cannot be created if another query is active.

Implements RE_ContextSpecificObject.

bool RE_OGLQuery::isQueryBlockDone ( ) const
inline

returns true if a query block has been executed in the past.

Definition at line 34 of file RE_OGLQuery.h.

bool RE_OGLQuery::isResultAvailable ( RE_Render r) const

Returns true if the query result is available from the GL server.

bool RE_OGLQuery::queryCounter ( RE_Render r)
protected
void RE_OGLQuery::reset ( )

resets the query object so that isQueryBlockDone() returns false, as if a query had never been performed.

Member Data Documentation

int RE_OGLQuery::myInt

Definition at line 71 of file RE_OGLQuery.h.

int64 RE_OGLQuery::myInt64

Definition at line 72 of file RE_OGLQuery.h.


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