Initial clone in from local subversion server

This commit is contained in:
2011-05-26 02:24:33 +00:00
commit ccca81e04e
87 changed files with 20290 additions and 0 deletions

29
Display2D.h Executable file
View File

@@ -0,0 +1,29 @@
#ifndef __DISPLAY2D_H__
#define __DISPLAY2D_H__
#include "Display.h"
#include "Common.h"
#define LAYER_BACKGROUND 0
#define LAYER_SPRITE1 1
#define LAYER_SPRITE2 2
#define LAYER_SPRITE3 3
#define LAYER_EFFECTS 4
#define LAYER_HUDOVERLAY 5
#define LAYER_MENUOVERLAY 6
#define MAX_LAYERS 6
class Display2D : public Display
{
protected:
int blitSprite(SDL_Surface *srcframe, int x, int y);
std::vector<Actor *> layers[MAX_LAYERS];
public:
Display2D();
int addActor(Actor *actor, int layer = LAYER_BACKGROUND);
void update(int logicOnly = 0);
void setTransparentBG();
};
#endif // __Display2D_H__