Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

SDLControl.h

Go to the documentation of this file.
00001 00006 /* 00007 Copyright (C) 2004 Anders Hedstrom 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 #ifndef _SDLCONTROL_H 00024 #define _SDLCONTROL_H 00025 00026 //#include "TimerThread.h" 00027 00028 00029 //using iotm::Mutex; 00030 00031 00032 namespace gui 00033 { 00034 //class TimerThread; 00035 00036 class SDLControl 00037 { 00038 public: 00039 SDLControl(int argc,char *argv[],int = 640,int = 480,int = 16); 00040 virtual ~SDLControl(); 00041 00042 virtual void Init_SDL(); 00043 00044 void Update8bitPalette(); 00045 void ToggleFullscreen(); 00046 void lockSurface(); //bool bClearRects = true); 00047 void unlockSurface(); //bool bUpdateRects = false); 00048 void LockMutex(); 00049 void UnlockMutex(); 00050 // void AddRect(SDL_Rect &); 00051 00052 SDL_Surface *GetScreen(); 00053 short GetBpp(); 00054 bool IsOK(); 00055 00056 void SetOK(bool); 00057 00058 void status(); 00059 // TimerThread *GetTimerThread(); 00060 00061 protected: 00062 00063 private: 00064 void read_config(int argc,char *argv[]); 00065 00066 // Mutex m_mutex; 00067 bool m_ok; 00068 SDL_Surface *m_screen; 00069 coord_t m_width; 00070 coord_t m_height; 00071 short m_bpp; 00072 bool m_hw; 00073 bool m_hwpalette; 00074 bool m_noframe; 00075 bool m_fullscreen; 00076 Uint32 m_videoflags; 00077 // rectvector_t m_rects; 00078 // TimerThread *m_timerThread; 00079 }; 00080 } // namespace 00081 00082 00083 #endif // _SDLCONTROL_H

Generated for My SDL C++ Gui by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström