From 08b4d062e9b6c43cb43e3edf74afefd3faf66b48 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Fri, 1 Jun 2018 23:10:22 -0700 Subject: [PATCH] Added todo comment --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index 5f6d0a5..0f1139f 100644 --- a/main.cpp +++ b/main.cpp @@ -1081,6 +1081,8 @@ void Demo::onGraphics(RenderDevice* rd) { fntdominant->draw2D(rd, message, Vector2((rd->getWidth()/2)-(fntdominant->get2DStringBounds(message, 20).x/2),(rd->getHeight()/2)-(fntdominant->get2DStringBounds(message, 20).y/2)), 20, Color3::yellow(), Color3::black()); } + //TODO--Move these to their own instance + std::stringstream stream; stream << std::fixed << std::setprecision(1) << dataModel->getWorkspace()->timer; fntdominant->draw2D(rd, "Timer: " + stream.str(), Vector2(rd->getWidth() - 120, 25), 20, Color3::fromARGB(0x81C518), Color3::black()); @@ -1099,6 +1101,7 @@ void Demo::onGraphics(RenderDevice* rd) { drawButtons(rd); + dataModel->drawMessage(rd); rd->pushState(); rd->beforePrimitive();