dwscr/ss/SSMain.h
josh 2019bad104 updated include path for SDL.h
git-svn-id: svn://anubis/dwscr/trunk@116 5bef9df8-b654-44bb-925b-0ff18baa8f8c
2009-09-22 16:05:57 +00:00

42 lines
809 B
C++

/* Author: Josh Holtrop
* DornerWorks screensaver
* The main screensaver module
*/
#ifndef SSMAIN_H
#define SSMAIN_H
#include <GL/gl.h>
#include <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