25 lines
466 B
C++
25 lines
466 B
C++
|
|
#ifndef VIDEO_H
|
|
#define VIDEO_H
|
|
|
|
#include <SDL/SDL.h>
|
|
|
|
class Video
|
|
{
|
|
public:
|
|
Video();
|
|
void start(int width = 0,
|
|
int height = 0,
|
|
bool fullscreen = true);
|
|
void stop();
|
|
int getDefaultWidth() { return m_defaultWidth; }
|
|
int getDefaultHeight() { return m_defaultHeight; }
|
|
|
|
protected:
|
|
int m_defaultWidth;
|
|
int m_defaultHeight;
|
|
SDL_Surface * m_surface;
|
|
};
|
|
|
|
#endif
|