]> Dogcows Code - chaz/yoink/blobdiff - src/client.hh
rename main class
[chaz/yoink] / src / client.hh
diff --git a/src/client.hh b/src/client.hh
new file mode 100644 (file)
index 0000000..32ca715
--- /dev/null
@@ -0,0 +1,56 @@
+
+/*]  Copyright (c) 2009-2011, Charles McGarvey  [*****************************
+**]  All rights reserved.
+*
+* Distributable under the terms and conditions of the 2-clause BSD license;
+* see the file COPYING for a complete text of the license.
+*
+*****************************************************************************/
+
+#ifndef _MAIN_HH_
+#define _MAIN_HH_
+
+#include <iostream>
+#include <string>
+
+#include <boost/shared_ptr.hpp>
+
+#include <moof/application.hh>
+#include <moof/dispatcher.hh>
+#include <moof/math.hh>
+#include <moof/timer.hh>
+
+#include "yoink.hh"
+
+
+/**
+ * \file Main.hh
+ * This is where all the fun begins.
+ */
+
+class Main : public moof::application
+{
+public:
+
+       explicit Main(moof::settings& settings);
+
+       void update(moof::scalar t, moof::scalar dt);
+       void draw(moof::scalar alpha) const;
+       void handle_event(const moof::event& event);
+
+private:
+
+       /**
+        * Set OpenGL to a state we can know and depend on.
+        */
+       static void setup_opengl();
+
+       moof::dispatcher::handle        video_reloaded_;
+       moof::timer                     hotload_timer_;
+
+       ::yoink yoink;
+};
+
+
+#endif // _MAIN_HH_
+
This page took 0.020036 seconds and 4 git commands to generate.