nOcclusionQuery Class Reference
#include <nocclusionquery.h>
Inheritance diagram for nOcclusionQuery:

Detailed Description
Runs a sequence of occlusion queries. Will render bounding boxes and check how many pixels pass the z test. If none of the pixels pass the test, the rectangle is occluded. Try to issue as many queries as possible before getting the query results, this maximizes GPU/CPU parallelization.This class should be subclassed by an graphics API-specific implementation.
(C) 2005 Radon Labs GmbH
Definition at line 24 of file nocclusionquery.h.
Public Member Functions | |
| virtual void | Begin () |
| begin issuing occlusion queries | |
| virtual void | AddShapeQuery (nGfxServer2::ShapeType type, const matrix44 &modelMatrix, const void *userData) |
| add a bounding box query | |
| virtual void | End () |
| finish issuing queries | |
| virtual int | GetNumQueries () const |
| get number of issued queries | |
| virtual const void * | GetUserData (int queryIndex) |
| get user data associated with a query | |
| virtual bool | GetOcclusionStatus (int queryIndex) |
| get occlusion status for a issued query (true is occluded) | |
| virtual void | Clear () |
| clear all queries | |
Protected Member Functions | |
| nOcclusionQuery () | |
| constructor | |
| virtual | ~nOcclusionQuery () |
| destructor | |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 10 of file nocclusionquery.cc. |
|
|
destructor
Definition at line 18 of file nocclusionquery.cc. |
Member Function Documentation
|
|
begin issuing occlusion queries
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 36 of file nocclusionquery.cc. |
|
||||||||||||||||
|
add a bounding box query
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 45 of file nocclusionquery.cc. |
|
|
finish issuing queries
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 54 of file nocclusionquery.cc. |
|
|
get number of issued queries
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 63 of file nocclusionquery.cc. |
|
|
get user data associated with a query
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 72 of file nocclusionquery.cc. |
|
|
get occlusion status for a issued query (true is occluded)
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 81 of file nocclusionquery.cc. |
|
|
clear all queries
Reimplemented in nD3D9OcclusionQuery, and nGLOcclusionQuery. Definition at line 27 of file nocclusionquery.cc. |
The documentation for this class was generated from the following files: