This commit is contained in:
parent
6be41872bf
commit
5b944146d8
24 changed files with 1107 additions and 219 deletions
|
@ -15,8 +15,9 @@
|
|||
|
||||
struct sRGBData
|
||||
{
|
||||
int Width;
|
||||
int Height;
|
||||
int OldW,OldH;
|
||||
int TexW,TexH;
|
||||
float ScaleU,ScaleV;
|
||||
u8 *RGB;
|
||||
};
|
||||
|
||||
|
@ -25,7 +26,8 @@ struct sTex
|
|||
GString Filename;
|
||||
GString Name;
|
||||
GLuint TexID;
|
||||
int TexWidth,TexHeight;
|
||||
int OldW,OldH;
|
||||
int TexW,TexH;
|
||||
float ScaleU,ScaleV; // For wrong size textures
|
||||
bool Loaded;
|
||||
|
||||
|
@ -37,6 +39,7 @@ const RGBQUAD BlankRGB={255,0,255};
|
|||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
class Frame;
|
||||
class CTexCache
|
||||
{
|
||||
public:
|
||||
|
@ -47,10 +50,10 @@ public:
|
|||
void Purge();
|
||||
|
||||
bool LoadBMP(const char *Filename,sRGBData &RGBData);
|
||||
void CreateAlignTex(Frame &ThisFrame,sRGBData &RGBData);
|
||||
void FreeBMP(sRGBData &RGBData);
|
||||
void FixBMP(sRGBData &RGBData);
|
||||
bool IsSizeOk(int Size);
|
||||
int AlignSize(int Size);
|
||||
|
||||
void LoadTex(sTex &ThisTex,sRGBData *TexData);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue