X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fclient.hh;fp=src%2Fclient.hh;h=32ca715d50b88b10e9a022c256fd9caed80764bb;hp=0000000000000000000000000000000000000000;hb=b7bb13579fa86907a8c221a9dc6285f26942ad44;hpb=62f3ceaff75a6b08cb1aec9a465773bb81a2d79d diff --git a/src/client.hh b/src/client.hh new file mode 100644 index 0000000..32ca715 --- /dev/null +++ b/src/client.hh @@ -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 +#include + +#include + +#include +#include +#include +#include + +#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_ +