From f9621be331757287dfd907bda933ddfc6b6aba72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 13 Sep 2013 12:33:34 +0200 Subject: [PATCH] doc: updated Getting Started Guide to reflect changes in magnum-bootstrap. --- doc/getting-started.dox | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/getting-started.dox b/doc/getting-started.dox index e5d2e9fb8..bb9f4366a 100644 --- a/doc/getting-started.dox +++ b/doc/getting-started.dox @@ -99,7 +99,9 @@ class MyApplication: public Platform::Application { void drawEvent() override; }; -MyApplication::MyApplication(const Arguments& arguments): Platform::Application(arguments) {} +MyApplication::MyApplication(const Arguments& arguments): Platform::Application(arguments) { + // TODO: Add your initialization code here +} void MyApplication::viewportEvent(const Vector2i& size) { defaultFramebuffer.setViewport({{}, size}); @@ -107,6 +109,9 @@ void MyApplication::viewportEvent(const Vector2i& size) { void MyApplication::drawEvent() { defaultFramebuffer.clear(FramebufferClear::Color); + + // TODO: Add your drawing code here + swapBuffers(); }