Gel2D - The free/open source game creation suite

gelWindow.h
Go to the documentation of this file.
00001 /*
00002 Gel2D Game Engine - Cross-platform 2D gaming middleware
00003 Copyright (C) 2010-2011 Mark D. Procarione
00004 
00005 Gel2D is free software: you can redistribute it and/or modify
00006 it under the terms of the GNU General Public License as published by
00007 the Free Software Foundation, either version 3 of the License, or
00008 (at your option) any later version.
00009 
00010 Gel2D is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013 GNU General Public License for more details.
00014 */
00015 
00016 #ifndef __GELWINDOW_H__
00017 #define __GELWINDOW_H__
00018 
00019 #include "gelNamespace.h"
00020 #include "gelVideo.h"
00021 #include "gelSize.h"
00022 #include "gelString.h"
00023 
00024 namespace gel
00025 {
00028 
00029 
00031     class GelWindow
00032     {
00033         public:
00035 
00052             static bool createWindow( const char *title = "Gel2D Game Engine",
00053                                                                 int width = 800, int height = 600, int bpp = 32,
00054                                                                 int mode = GEL_WINDOWED, int flags = 0 );
00055 
00057 
00101             static void destroyWindow();
00102 
00104 
00112             static void setMode( int width, int height, int mode, int flags );
00113 
00115 
00118             static void setMode( GelVideoMode videoMode );
00119 
00121 
00122             static GelString getTitle();
00123 
00125 
00126             static void setTitle( const GelString &title );
00127 
00129 
00130             static void setIcon( const GelString &filename );
00131 
00133 
00135             static bool setSize( int width, int height );
00136 
00138 
00140             static void getSize( int *width, int *height );
00141 
00143 
00144             static GelSize getSize();
00145 
00147 
00148             static int getWidth();
00149 
00151 
00152             static int getHeight();
00153 
00155 
00162             static void setPos(int x, int y);
00163 
00165 
00167             static void minimize();
00168 
00170             static void restore();
00171 
00173 
00178             static int getParam( int param );
00179 
00181 
00183             static void pollEvents();
00184     };
00186 }
00187 
00188 #endif // __GELWINDOW_H__