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

Function GameRenderWorld

Engine/source/T3D/gameFunctions.cpp:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421void GameRenderWorld()
422{
423 PROFILE_START(GameRenderWorld);
424 FrameAllocator::setWaterMark(0);
425
426 gClientSceneGraph->renderScene( SPT_Diffuse );
427
428 // renderScene leaves some states dirty, which causes problems if GameTSCtrl is the last Gui object rendered
429 GFX->updateStates();
430
431 AssertFatal(FrameAllocator::getWaterMark() == 0,
432 "Error, someone didn't reset the water mark on the frame allocator!");
433 FrameAllocator::setWaterMark(0);
434 PROFILE_END();
435}
436
437//================================================================================================
438//Render a full frame from a given transform and frustum, and render out to a target

Callers 2

renderWorldMethod · 0.85
renderWorldMethod · 0.85

Calls 2

updateStatesMethod · 0.80
renderSceneMethod · 0.45

Tested by

no test coverage detected