This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2007-02-23 18:10:32 +01:00
|
|
|
#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:
|
2007-03-14 18:02:22 +01:00
|
|
|
Camera( void );
|
2007-02-23 18:10:32 +01:00
|
|
|
SDL_Surface *pixels;
|
2007-03-14 18:02:22 +01:00
|
|
|
void init(int width, int height);
|
2007-02-23 18:10:32 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ifndef _CAMERA_H_ */
|