Made lua run under MSWin with Dev-Cpp 4.9.9.2
[sdlbotor.git] / SDLVideoOut.h
blobc394f508382feb862a2d41a86dc1964c11cbfb1e
1 #ifndef SDLVIDEOOUT_H
2 #define SDLVIDEOOUT_H
4 #include "sdlinclude.h"
6 namespace botor
9 class SDLVideoOut
12 SDL_Surface *screen;
14 public:
16 SDLVideoOut( int width, int height, int bpp, Uint32 flags = SDL_HWSURFACE | SDL_DOUBLEBUF );
18 Uint32 MapRGBA( Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255 );
19 Uint32 MapRGB( Uint8 r, Uint8 g, Uint8 b );
21 void Clear( Uint32 color = 0 );
23 void Flip( );
25 void Blit( SDL_Surface *src, Sint16 x, Sint16 y );
26 void Blit( SDL_Surface *src, SDL_Rect *srcRect, Sint16 x, Sint16 y );
28 void DrawString( const char *string, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255 );
30 int GetWidth();
31 int GetHeight();
36 #endif