Panda3D
|
Public Member Functions | |
DXOcclusionQueryContext9 (IDirect3DQuery9 *query) | |
virtual TypeHandle | force_init_type () |
virtual int | get_num_fragments () const |
Returns the number of fragments (pixels) of the specified geometry that passed the depth test. | |
virtual TypeHandle | get_type () const |
virtual bool | is_answer_ready () const |
Returns true if the query's answer is ready, false otherwise. | |
virtual void | waiting_for_answer () |
Requests the graphics engine to expedite the pending answer--the application is now waiting until the answer is ready. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
IDirect3DQuery9 * | _query |
Definition at line 28 of file dxOcclusionQueryContext9.h.
int DXOcclusionQueryContext9::get_num_fragments | ( | ) | const [virtual] |
Returns the number of fragments (pixels) of the specified geometry that passed the depth test.
If is_answer_ready() did not return true, this function may block before it returns.
It is only valid to call this from the draw thread.
Implements OcclusionQueryContext.
Definition at line 75 of file dxOcclusionQueryContext9.cxx.
Referenced by waiting_for_answer().
static void DXOcclusionQueryContext9::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from OcclusionQueryContext.
Definition at line 44 of file dxOcclusionQueryContext9.h.
References OcclusionQueryContext::init_type().
bool DXOcclusionQueryContext9::is_answer_ready | ( | ) | const [virtual] |
Returns true if the query's answer is ready, false otherwise.
If this returns false, the application must continue to poll until it returns true.
It is only valid to call this from the draw thread.
Implements QueryContext.
Definition at line 44 of file dxOcclusionQueryContext9.cxx.
void DXOcclusionQueryContext9::waiting_for_answer | ( | ) | [virtual] |
Requests the graphics engine to expedite the pending answer--the application is now waiting until the answer is ready.
It is only valid to call this from the draw thread.
Reimplemented from QueryContext.
Definition at line 60 of file dxOcclusionQueryContext9.cxx.
References get_num_fragments().