From 6b3d7fc02a1033731ce77ffe876d586b06078942 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 5 Nov 2014 17:09:48 +0000 Subject: [PATCH] updated comment --- .../BinaryData/jucer_OpenglComponentTemplate.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp b/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp index bb256a7967..538867c096 100644 --- a/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp +++ b/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp @@ -27,6 +27,8 @@ public: ~MainContentComponent() { + // (Your class must call this in its destructor to stop the + // rendering callbacks happening after your class has been deleted) shutdownOpenGL(); } @@ -40,15 +42,13 @@ public: void render() override { + OpenGLHelpers::clear (Colours::lightblue); } void paint (Graphics& g) override { - // (Our component is opaque, so we must completely fill the background with a solid colour) - g.fillAll (Colours::black); - - - // You can add your drawing code here! + // You can add normal 2D drawing code here, which will be + // drawn over the GL content. } void resized() override