openal and fontft memleak fixes from keltar
[fegdk.git] / core / code / video / sdl / f_sdlrendererdata.h
blob50cc7832b330f7278da08d089e617eda988a05e3
1 /*
2 fegdk: FE Game Development Kit
3 Copyright (C) 2001-2008 Alexey "waker" Yakovenko
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 Alexey Yakovenko
20 waker@users.sourceforge.net
23 #ifndef __F_SDLRENDERERDATA_H
24 #define __F_SDLRENDERERDATA_H
26 #include <SDL/SDL.h>
28 namespace fe
31 const int SDL_MAX_VIDMODES = 256;
32 class sdlRendererData : public baseObject
34 friend class sdlRenderer;
36 protected:
38 struct vidMode_t
40 int w, h, bpp;
43 size_t getCurrentVidMode (void) const;
44 void setCurrentVidMode (size_t mode);
45 const vidMode_t& getVidModeDescr (int mode) const;
46 void setWindowed (bool windowed);
47 size_t numVidModes (void) const;
49 void reset (void);
51 private:
53 bool mbWindowed;
54 size_t mCurrentMode;
55 vidMode_t mVidModes[SDL_MAX_VIDMODES];
56 int mNumVidModes;
57 void addModes (SDL_Rect **modes, int bpp);
59 public:
61 sdlRendererData (void);
62 ~sdlRendererData (void);
64 /* const displayMode& getDisplayModeDescr( ulong adapter, ulong device, ulong mode ) const;
65 const sdlRenderDeviceInfo& getDeviceDescr( ulong adapter, ulong device ) const;
66 const displayAdapterInfo& getAdapterDescr( ulong adapter ) const;
68 displayMode& getDisplayModeDescr( ulong adapter, ulong device, ulong mode );
69 sdlRenderDeviceInfo& getDeviceDescr( ulong adapter, ulong device );
70 displayAdapterInfo& getAdapterDescr( ulong adapter );*/
75 #endif // __F_SDLRENDERERDATA_H