*/
#include <msp/core/application.h>
-#include <msp/gbase/simplewindow.h>
+#include <msp/graphics/simplewindow.h>
#include <msp/gl/blend.h>
#include <msp/gl/matrix.h>
#include <msp/gltk/button.h>
using namespace Msp;
// Application class. Because it's so much nicer than global variables.
-class HelloWorld: public Msp::Application
+class HelloWorld: public Msp::RegisteredApplication<HelloWorld>
{
private:
// An OpenGL window to display our widgets in
GLtk::Entry *ent_name;
GLtk::Label *lbl_hello;
- // Indicate our main class to the core library
- static Application::RegApp<HelloWorld> reg;
-
public:
HelloWorld(int, char **);
private:
};
-Application::RegApp<HelloWorld> HelloWorld::reg;
-
HelloWorld::HelloWorld(int, char **):
wnd(200, 200),
// Load resources. This must be done before the root widget is created.
#include <msp/gl/immediate.h>
#include <msp/gl/matrix.h>
#include <msp/gl/transform.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
#include "container.h"
#include "resources.h"
#include "root.h"