changed copyright years in source files
[fegdk.git] / core / code / video / sdl / f_sdlrendererdata.h
blob9bef81fbdf830d1c494d7e5e809db4bb6c322f40
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 class sdlRendererData : public baseObject
33 friend class sdlRenderer;
35 protected:
37 struct vidMode_t
39 int w, h, bpp;
42 size_t getCurrentVidMode (void) const;
43 void setCurrentVidMode (size_t mode);
44 const vidMode_t& getVidModeDescr (int mode) const;
45 void setWindowed (bool windowed);
46 size_t numVidModes (void) const;
48 void reset (void);
50 private:
52 bool mbWindowed;
53 size_t mCurrentMode;
54 std::vector <vidMode_t> mVidModes;
55 void addModes (SDL_Rect **modes, int bpp);
57 public:
59 sdlRendererData (void);
60 ~sdlRendererData (void);
62 /* const displayMode& getDisplayModeDescr( ulong adapter, ulong device, ulong mode ) const;
63 const sdlRenderDeviceInfo& getDeviceDescr( ulong adapter, ulong device ) const;
64 const displayAdapterInfo& getAdapterDescr( ulong adapter ) const;
66 displayMode& getDisplayModeDescr( ulong adapter, ulong device, ulong mode );
67 sdlRenderDeviceInfo& getDeviceDescr( ulong adapter, ulong device );
68 displayAdapterInfo& getAdapterDescr( ulong adapter );*/
73 #endif // __F_SDLRENDERERDATA_H