Public Member Functions | |
PtOcclusionQuery () | |
void | Clear () |
void | StartQuery () |
void | EndQuery () |
void | PrepareResult () |
void | ToConsole () |
void | ToConsole (String name) |
void | ToConsole (String name, long numOverallFragments) |
Properties | |
bool | QuerySupported [get] |
int | NumSamplesPassed [get] |
String | NumSamplesPassedStr [get] |
Powertek.OpenGl.PtOcclusionQuery.PtOcclusionQuery | ( | ) |
Helper Class for Getting Occlusion Query Results Note: on ATI this may only work on a 32 bit Rendertarget.
void Powertek.OpenGl.PtOcclusionQuery.Clear | ( | ) |
Clear Query.
void Powertek.OpenGl.PtOcclusionQuery.EndQuery | ( | ) |
EndQuery.
void Powertek.OpenGl.PtOcclusionQuery.PrepareResult | ( | ) |
get the result from the query, note: this may impact render performance, therefore call this after some other render calls
void Powertek.OpenGl.PtOcclusionQuery.StartQuery | ( | ) |
Start the query note: for measuring fbo rendering, fbo must be active !
void Powertek.OpenGl.PtOcclusionQuery.ToConsole | ( | String | name, | |
long | numOverallFragments | |||
) |
Output Fragmentcount to Console.
name | ||
numOverallFragments |
void Powertek.OpenGl.PtOcclusionQuery.ToConsole | ( | String | name | ) |
Output Fragmentcount to Console.
name |
void Powertek.OpenGl.PtOcclusionQuery.ToConsole | ( | ) |
Output Fragmentcount to Console.
int Powertek.OpenGl.PtOcclusionQuery.NumSamplesPassed [get] |
Return the number of samples passed.
String Powertek.OpenGl.PtOcclusionQuery.NumSamplesPassedStr [get] |
Return the number of samples passed as string.
bool Powertek.OpenGl.PtOcclusionQuery.QuerySupported [get] |
Return Query supported status.