00001 /* 00002 Gel2D Game Engine - Cross-platform 2D gaming middleware 00003 Copyright (C) 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 __GELVIDEO_H__ 00017 #define __GELVIDEO_H__ 00018 00019 #include "gelSize.h" 00020 00021 namespace gel 00022 { 00025 00026 struct GelVideoMode 00027 { 00029 GelVideoMode() : width(0), height(0), bpp(0) {} 00030 00032 00035 GelVideoMode(int w, int h, int b) : width(w), height(h), bpp(b) {} 00036 00038 int width; 00040 int height; 00042 int bpp; 00043 }; 00044 00046 class GelVideo 00047 { 00048 public: 00050 00051 static GelSize getScreenRes(); 00052 00054 00055 static int getScreenWidth(); 00056 00058 00059 static int getScreenHeight(); 00060 00062 00067 static int getVideoModes( GelVideoMode *list, int maxcount ); 00068 }; 00070 } 00071 00072 #endif // __GELVIDEO_H__
API Documentation by Mark D. Procarione | Generated by |