anaglym/Video.h
Josh Holtrop f8e918526e F1 toggles fullscreen, F2 toggles mouse cursor grabbing
git-svn-id: svn://anubis/anaglym/trunk@113 99a6e188-d820-4881-8870-2d33a10e2619
2009-10-20 00:11:58 +00:00

28 lines
631 B
C++

#ifndef VIDEO_H
#define VIDEO_H
#include <SDL.h>
class Video
{
public:
Video();
void start(int width = 0, int height = 0,
bool fullscreen = true, bool grab_input = true,
int samples = 4);
void stop();
int getDefaultWidth() { return m_defaultWidth; }
int getDefaultHeight() { return m_defaultHeight; }
void toggleFullScreen() { SDL_WM_ToggleFullScreen(m_surface); }
protected:
int m_defaultWidth;
int m_defaultHeight;
SDL_Surface * m_surface;
bool m_fullscreen;
bool m_inputGrabbed;
};
#endif