#include <stlplus/portability/file_system.hpp>
#include <stlplus/portability/subprocesses.hpp>
+#include <moof/image.hh>
#include <moof/log.hh>
#include <moof/modal_dialog.hh>
#include <moof/opengl.hh>
#include <moof/string.hh>
#include <moof/video.hh>
-#include "GameLayer.hh"
#include "Main.hh"
-#include "TitleLayer.hh"
#include "version.h"
void Main::update(moof::scalar t, moof::scalar dt)
{
+ yoink.update(t, dt);
}
void Main::draw(moof::scalar alpha) const
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+
+ yoink.draw(alpha);
}
void Main::handle_event(const moof::event& event)
{
+ if (yoink.handle_event(event)) return;
+
switch (event.type)
{
case SDL_KEYUP:
void Main::setup_opengl()
{
- //glEnable(GL_TEXTURE_2D);
+ glEnable(GL_TEXTURE_2D);
glEnable(GL_DEPTH_TEST);
//glEnable(GL_CULL_FACE);
#else
print_option("debug", false);
#endif
+#if ENABLE_DOUBLE_PRECISION
+ print_option("double", true);
+#else
+ print_option("double", false);
+#endif
#if WITH_GTK
print_option("gtk", true);
#else
class moof::video::attributes attributes(settings);
moof::video video(PACKAGE_STRING, attributes);
+ video.show_fps(true);
Main app(settings);
return app.run();