anaglym/Video.h
Josh Holtrop 3f429be13b added getScreenSize()
git-svn-id: svn://anubis/anaglym/trunk@159 99a6e188-d820-4881-8870-2d33a10e2619
2009-11-08 03:48:45 +00:00

32 lines
762 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); }
int getWidth() { return m_width; }
int getHeight() { return m_height; }
protected:
int m_defaultWidth;
int m_defaultHeight;
int m_width;
int m_height;
SDL_Surface * m_surface;
bool m_fullscreen;
bool m_inputGrabbed;
};
#endif