Window.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 #ifndef WINDOW_H_
00012 #define WINDOW_H_
00013 
00014 #include "SDL.h"
00015 
00021 namespace Graphics
00022 {
00023 
00024 class Window
00025 {
00026     public:
00027         static Window & get_instance();
00028         virtual ~Window();
00029         
00030         void swap_buffers();
00032         void set_ortho_projection();
00033         unsigned int get_width() const;
00034         unsigned int get_height() const;
00035         void set_size(unsigned int width, unsigned int height, bool fullscreen = false);
00036     private:
00037         Window();
00038         bool created;
00039         unsigned int width;
00040         unsigned int height;
00041         bool fullscreen;
00042         int bpp;
00043         int flags;
00044 };
00045 
00046 }
00047 
00048 #endif /*WINDOW_H_*/

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.