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

#include <RE_OcclusionQuery.h>

+ Inheritance diagram for RE_OcclusionQuery:

Public Types

enum  RE_OcclusionResult { BOOLEAN, NUM_SAMPLES }
 

Public Member Functions

 RE_OcclusionQuery (RE_OcclusionResult result=NUM_SAMPLES)
 
 ~RE_OcclusionQuery () override
 
bool begin (RE_Render *r) override
 
void end (RE_Render *r) override
 
bool getAnySamplesDrawn (RE_Render *r)
 
int getNumDrawn (RE_Render *r)
 
- Public Member Functions inherited from RE_OGLQuery
 ~RE_OGLQuery () override
 
bool init (RE_Render *r) override
 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...
 
- 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

Examples:
DM/DM_OverdrawHook.C.

Definition at line 29 of file RE_OcclusionQuery.h.

Member Enumeration Documentation

Enumerator
BOOLEAN 
NUM_SAMPLES 

Definition at line 32 of file RE_OcclusionQuery.h.

Constructor & Destructor Documentation

RE_OcclusionQuery::RE_OcclusionQuery ( RE_OcclusionResult  result = NUM_SAMPLES)
RE_OcclusionQuery::~RE_OcclusionQuery ( )
inlineoverride

Definition at line 39 of file RE_OcclusionQuery.h.

Member Function Documentation

bool RE_OcclusionQuery::begin ( RE_Render r)
overridevirtual

Bracket the draw calls to measure with begin and end.

Reimplemented from RE_OGLQuery.

void RE_OcclusionQuery::end ( RE_Render r)
overridevirtual

Bracket the draw calls to measure with begin and end.

Reimplemented from RE_OGLQuery.

bool RE_OcclusionQuery::getAnySamplesDrawn ( RE_Render r)
inline

Definition at line 44 of file RE_OcclusionQuery.h.

int RE_OcclusionQuery::getNumDrawn ( RE_Render r)
inline

Definition at line 47 of file RE_OcclusionQuery.h.


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