MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ScriptDebugRender

Method ScriptDebugRender

ogsr_engine/xrGame/Level.cpp:676–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674float CLevel::GetEnvironmentGameDayTimeSec() { return (float(s64(GetEnvironmentGameTime() % (24 * 60 * 60 * 1000))) / 1000.f); }
675
676void CLevel::ScriptDebugRender()
677{
678 if (m_debug_render_queue.empty())
679 return;
680
681 bool hasVisibleObj = false;
682
683 xr_map<u16, DBG_ScriptObject*>::iterator it = m_debug_render_queue.begin();
684 xr_map<u16, DBG_ScriptObject*>::iterator it_e = m_debug_render_queue.end();
685 for (; it != it_e; ++it)
686 {
687 DBG_ScriptObject* obj = (*it).second;
688 if (obj->m_visible)
689 {
690 obj->Render();
691 hasVisibleObj = true;
692 }
693 }
694
695 // demonized: fix of showing console window when there are no visible gizmos
696 if (hasVisibleObj)
697 DRender->OnFrameEnd();
698}
699
700void CLevel::GetGameDateTime(u32& year, u32& month, u32& day, u32& hours, u32& mins, u32& secs, u32& milisecs)
701{

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
RenderMethod · 0.45
OnFrameEndMethod · 0.45

Tested by

no test coverage detected