X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=helloworld.cpp;h=4f85964d9d2c45e28aa90bae843237d92d657d47;hb=f0b600c3b1739f7e088da6ab8eb7c2e67adf592c;hp=8ff4d8ca2fd091af94408d9edf0f2671b03a0633;hpb=2b70e8801c43875ed3f4135bdd0141265cff0312;p=libs%2Fgltk.git diff --git a/helloworld.cpp b/helloworld.cpp index 8ff4d8c..4f85964 100644 --- a/helloworld.cpp +++ b/helloworld.cpp @@ -4,7 +4,7 @@ Demonstrates some of the most common widget types. */ #include -#include +#include #include #include #include @@ -17,7 +17,7 @@ Demonstrates some of the most common widget types. using namespace Msp; // Application class. Because it's so much nicer than global variables. -class HelloWorld: public Msp::Application +class HelloWorld: public Msp::RegisteredApplication { private: // An OpenGL window to display our widgets in @@ -29,9 +29,6 @@ private: GLtk::Entry *ent_name; GLtk::Label *lbl_hello; - // Indicate our main class to the core library - static Application::RegApp reg; - public: HelloWorld(int, char **); private: @@ -40,8 +37,6 @@ private: }; -Application::RegApp HelloWorld::reg; - HelloWorld::HelloWorld(int, char **): wnd(200, 200), // Load resources. This must be done before the root widget is created.