Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

video_sdl.h

00001 //FILE:         video_sdl.h
00002 //AUTHOR:       Nathan Cournia <nathan@cournia.com>
00003 
00004 #ifndef COURNIA_VIDEO_SDL_H
00005 #define COURNIA_VIDEO_SDL_H 1
00006 
00007 #include <string>
00008 #include "SDL.h"
00009 #include "video_base.h"
00010 
00012 
00015 class video_sdl: public video_base
00016 {
00017 protected:
00018         SDL_Surface *m_screen; 
00019         bool m_shutdown; 
00020 
00021 public:
00023         video_sdl( void );
00024         
00026         virtual ~video_sdl( void );
00027 
00029 
00039         virtual bool init( unsigned int w, unsigned int h, unsigned int bpp, 
00040                 bool fs );
00041         
00043         virtual void set_title( const std::string& title );
00044         
00046         virtual void resize( unsigned int width, unsigned int height );
00047         
00049 
00052         virtual void start_frame( void );
00053         
00055 
00058         virtual void end_frame( void );
00059         
00061         virtual void toggle_fullscreen( void );
00062         
00064 
00068         virtual void shutdown( void );
00069 };
00070 
00071 #endif

Generated on Tue Feb 11 18:49:42 2003 for uber by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002