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

Method onBeforeDraw

tests/cpp-tests/Source/MeshRendererTest/DrawNode3D.cpp:200–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void DrawNode3D::onBeforeDraw()
201{
202 auto* renderer = Director::getInstance()->getRenderer();
203 _rendererDepthTestEnabled = renderer->getDepthTest();
204 renderer->setDepthTest(true);
205}
206
207void DrawNode3D::onAfterDraw()
208{

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