30 lines
772 B
C++
Executable File
30 lines
772 B
C++
Executable File
#ifndef __DISPLAY_H__
|
|
#define __DISPLAY_H__
|
|
|
|
#include "Actor.h"
|
|
#include "Renderable.h"
|
|
#include "FontRenderer.h"
|
|
#include <SDL.h>
|
|
|
|
class Display : public Renderable, public SharedCanvas2D
|
|
{
|
|
protected:
|
|
ActorList actors;
|
|
int active;
|
|
public:
|
|
Display();
|
|
virtual ~Display();
|
|
virtual int isActive();
|
|
virtual void setActive(int active);
|
|
virtual int initVideo(Vector pos, int w, int h, int depth, int flags);
|
|
virtual SDL_Surface *nextFrame();
|
|
virtual int addActor(Actor *actor = NULL);
|
|
virtual Actor *getActor(unsigned int index);
|
|
virtual int removeActor(Actor *actor);
|
|
virtual void update(int logicOnly = 0) {};
|
|
SDL_PixelFormat *pixelFormat();
|
|
virtual int objectsOfType(unsigned int userType);
|
|
};
|
|
|
|
#endif // __DISPLAY_H__
|