* Add a plasma effect on the cards back
This commit is contained in:
jean.chalard
2009-05-30 14:06:52 +00:00
parent 5de26cc509
commit b4d040b263
13 changed files with 145 additions and 51 deletions

View File

@@ -0,0 +1,26 @@
#ifndef _CARDEFFECT_H_
#define _CARDEFFECT_H_
#include <JGE.h>
#include "Effects.h"
class CardEffect : public Effect
{
public:
CardEffect();
~CardEffect();
private:
static PIXEL_TYPE surface[MTG_IMAGE_WIDTH*MTG_IMAGE_HEIGHT];
unsigned char sineTable1[256];
unsigned char sineTable2[256];
PIXEL_TYPE palette[256];
JTexture * backTexture;
JTexture * backThumbTexture;
public:
void UpdateSmall(float dt);
void UpdateBig(float dt);
};
#endif // _CARDEFFECT_H_