dwscr/ss/SSMain.h
josh 68d41e9c63 moved files to trunk directory
git-svn-id: svn://anubis/dwscr/trunk@83 5bef9df8-b654-44bb-925b-0ff18baa8f8c
2008-09-22 17:27:40 +00:00

42 lines
813 B
C++

/* Author: Josh Holtrop
* DornerWorks screensaver
* The main screensaver module
*/
#ifndef SSMAIN_H
#define SSMAIN_H
#include <GL/gl.h>
#include <SDL/SDL.h>
class SSMode;
#include "SSMode.h"
class SSMain
{
public:
SSMain(int width, int height, int numMonitors, SDL_Surface * sdlSurface);
void run();
int getWidth() { return m_width; }
int getHeight() { return m_height; }
int getNumMonitors() { return m_numMonitors; }
SDL_Surface * getSurface() { return m_sdlSurface; }
Uint32 updateCallback(Uint32 interval);
protected:
static Uint32 updateCallback(Uint32 interval, void * param);
void update();
SSMode * startMode();
int m_width;
int m_height;
int m_numMonitors;
SDL_Surface * m_sdlSurface;
SSMode * m_mode;
bool m_drawing;
};
#endif