MCPcopy Create free account
hub / github.com/axmolengine/axmol / onBeforeDraw

Method onBeforeDraw

tests/lua-tests/Source/lua_test_bindings.cpp:284–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void DrawNode3D::onBeforeDraw()
285{
286 auto* renderer = Director::getInstance()->getRenderer();
287 _rendererDepthTestEnabled = renderer->getDepthTest();
288 renderer->setDepthTest(true);
289}
290
291void DrawNode3D::onAfterDraw()
292{

Callers

nothing calls this directly

Calls 4

getInstanceFunction · 0.85
getRendererMethod · 0.80
getDepthTestMethod · 0.80
setDepthTestMethod · 0.45

Tested by

no test coverage detected