2024-02-23 10:06:16 -05:00
|
|
|
#ifndef LEGOTEXTUREINFO_H
|
|
|
|
#define LEGOTEXTUREINFO_H
|
|
|
|
|
2024-03-09 10:49:13 -05:00
|
|
|
#include "misc/legotypes.h"
|
|
|
|
#include "tgl/tgl.h"
|
|
|
|
|
2024-02-23 10:06:16 -05:00
|
|
|
#include <d3drmobj.h>
|
|
|
|
#include <ddraw.h>
|
|
|
|
|
|
|
|
class LegoTexture;
|
|
|
|
|
|
|
|
// SIZE 0x10
|
2024-03-09 10:49:13 -05:00
|
|
|
class LegoTextureInfo {
|
2024-02-23 10:06:16 -05:00
|
|
|
public:
|
|
|
|
LegoTextureInfo();
|
|
|
|
~LegoTextureInfo();
|
|
|
|
|
|
|
|
static LegoTextureInfo* Create(const char* p_name, LegoTexture* p_texture);
|
2024-03-09 10:49:13 -05:00
|
|
|
static BOOL SetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo* p_textureInfo);
|
|
|
|
|
|
|
|
LegoResult FUN_10066010(LegoU8* p_bits);
|
2024-02-23 10:06:16 -05:00
|
|
|
|
2024-03-09 10:49:13 -05:00
|
|
|
// private:
|
2024-02-23 10:06:16 -05:00
|
|
|
char* m_name; // 0x00
|
|
|
|
LPDIRECTDRAWSURFACE m_surface; // 0x04
|
|
|
|
LPDIRECTDRAWPALETTE m_palette; // 0x08
|
|
|
|
LPDIRECT3DRMTEXTURE2 m_texture; // 0x0c
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOTEXTUREINFO_H
|