22 lines
360 B
C++
22 lines
360 B
C++
#ifndef _CAMERA_H_
|
|
#define _CAMERA_H_
|
|
|
|
#include <SDL/SDL.h>
|
|
|
|
class Camera
|
|
{
|
|
public:
|
|
Camera( int width, int height );
|
|
virtual ~Camera(void);
|
|
virtual void update( void ) = 0;
|
|
SDL_Surface* getSurface ( void ) { return pixels; }
|
|
|
|
protected:
|
|
Camera( void );
|
|
SDL_Surface *pixels;
|
|
void init(int width, int height);
|
|
|
|
};
|
|
|
|
#endif /* ifndef _CAMERA_H_ */
|