MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / begin

Method begin

Engine/source/gfx/gl/gfxGLOcclusionQuery.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool GFXGLOcclusionQuery::begin()
41{
42 if (GFXDevice::getDisableOcclusionQuery())
43 return true;
44
45 if (!glIsQuery(mQuery))
46 glGenQueries(1, &mQuery);
47
48 if (!mTesting)
49 {
50 glBeginQuery(GL_SAMPLES_PASSED, mQuery);
51 mTesting = true;
52 }
53 return true;
54}
55
56void GFXGLOcclusionQuery::end()
57{

Callers 7

getStatusMethod · 0.95
~GFXGLShaderMethod · 0.45
_initMethod · 0.45
initHandlesMethod · 0.45
enumerateAdaptersMethod · 0.45
enumerateVideoModesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected