From 2d916efa7963e6c247a451f3046f7bfce683737d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 28 Jan 2011 23:32:31 +0100 Subject: Added the Text class. --- application.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'application.cpp') diff --git a/application.cpp b/application.cpp index 8ef9197..a21b4e2 100644 --- a/application.cpp +++ b/application.cpp @@ -1,8 +1,11 @@ #include "application.h" +#include + #include extern const sf::Input* input_backend; +sf::RenderWindow *renderwindow; Application::Application() { please_quit = false; @@ -13,7 +16,8 @@ Application::~Application() { } void Application::init_window(unsigned int w, unsigned int h, bool fs) { - window = new sf::Window(sf::VideoMode(w, h, 32), "Foo"); + renderwindow = new sf::RenderWindow(sf::VideoMode(w, h, 32), "Foo"); + window = renderwindow; window->UseVerticalSync(true); @@ -62,4 +66,4 @@ void Application::event_keypress(sf::Key::Code key) { default: break; } -} \ No newline at end of file +} -- cgit v1.2.3