public

Inheritance Graph

graph BT
	OcclusionQuery
	OcclusionQuery --> QueryObject
	click OcclusionQuery "classRendering_1_1OcclusionQuery"
	click QueryObject "classRendering_1_1QueryObject"

Description

Wrapper class for OpenGL occlusion queries.

Author: Benjamin Eikel, Claudius Jähn

Date: 2009-12-10

Public Static Functions

   
   
void enableTestMode( RenderingContext & renderingContext)
   
void disableTestMode( RenderingContext & renderingContext)

Public Functions

   
   
  OcclusionQuery()
   
  OcclusionQuery( OcclusionQuery && void)

Documentation

function
Rendering::OcclusionQuery::enableTestMode

public static
     
     
void enableTestMode( RenderingContext & renderingContext )

Pushes the current gl state, disables lighting, color writes and depth writes.

Note: After calling enableTestMode() you always have to call disableTestMode(context.getRenderingContext()) eventually (as internally glPushAttrib() / popAttrib() is used).

Defined in Rendering/OcclusionQuery.h:31


function
Rendering::OcclusionQuery::disableTestMode

public static
     
     
void disableTestMode( RenderingContext & renderingContext )

Restores the old gl state.

Defined in Rendering/OcclusionQuery.h:34


function
Rendering::OcclusionQuery::OcclusionQuery

public
   
   
OcclusionQuery( )

Defined in Rendering/OcclusionQuery.h:36


function
Rendering::OcclusionQuery::OcclusionQuery

public
     
     
OcclusionQuery( OcclusionQuery && void )

Defined in Rendering/OcclusionQuery.h:37