void Test2D::OnRender(Renderer2D& renderer) { m_DebugInfo[0]->SetText(String("Target: ") + (renderer.GetRenderTarget() == RenderTarget::SCREEN ? "Screen" : "Buffer")); m_DebugInfo[1]->SetText(String("PostFX: ") + (renderer.GetPostEffects() ? "On" : "Off")); }
void TestLayer::OnRender(Renderer2D& renderer) { debugInfo[0]->text = String("Target: ") + (renderer.GetRenderTarget() == RenderTarget::SCREEN ? "Screen" : "Buffer"); debugInfo[1]->text = String("PostFX: ") + (renderer.GetPostEffects() ? "On" : "Off"); }