SBSPSS/source/gfx/animtex.h

64 lines
1.2 KiB
C
Raw Normal View History

2000-08-29 21:54:56 +02:00
/**************************/
/*** Anim Texture Stuph ***/
/**************************/
#ifndef _ANIMTEX_HEADER_
#define _ANIMTEX_HEADER_
#include "gfx\tpage.h"
2001-01-30 18:38:31 +01:00
#include <DStructs.h>
2000-08-29 21:54:56 +02:00
/*****************************************************************************/
class CAnimTex
{
public:
2000-09-11 17:34:59 +02:00
CAnimTex();
~CAnimTex();
2001-06-13 20:32:53 +02:00
static void AddAnimTex(sFrameHdr *Frame,int Frame,FileEquate Filename);
2000-08-29 21:54:56 +02:00
static void AnimateTex();
static void GetTexData();
static void DumpThisTPage(FileEquate TexName);
2001-07-11 20:15:41 +02:00
static void SetSpeed(int Speed);
static int GetSpeed();
2000-08-29 21:54:56 +02:00
private:
2001-01-30 21:54:27 +01:00
CAnimTex *NextTex;
RECT Rect;
s16 Speed,Count;
s16 PixPerWord;
u32 *TexData;
FileEquate TexName;
2001-06-13 20:32:53 +02:00
int FrameNo;
2001-01-30 21:54:27 +01:00
u8 TPage;
2000-08-29 21:54:56 +02:00
};
2001-01-30 18:38:31 +01:00
/*****************************************************************************/
2001-05-14 21:40:30 +02:00
class CPakTex
2001-01-30 18:38:31 +01:00
{
public:
2001-01-30 21:54:27 +01:00
enum
{
2001-05-14 21:40:30 +02:00
PAKTEX_MAX=16,
2001-01-30 21:54:27 +01:00
};
2001-05-14 21:40:30 +02:00
CPakTex();
2001-01-30 18:38:31 +01:00
2001-05-14 21:40:30 +02:00
static void Init(int MaxSize);
static void Shutdown();
static void Add(u8 *PakSpr,RECT *DstRect);
static void DMAPakTex();
protected:
u8 *PakSpr;
RECT *DstRect;
2001-01-30 18:38:31 +01:00
private:
2001-05-14 21:40:30 +02:00
static CPakTex PakTexList[];
static int PakTexCount;
static u8 *UnpackBuffer;
2001-01-30 18:38:31 +01:00
};
2000-08-29 21:54:56 +02:00
/*****************************************************************************/
#endif