World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
11 #define MAX_LOD_TEXTURES 1000
12 #define MAX_LOD_SPRITES 1500
66 void *
LoadRaw(
const String &pContainer,
size_t *data_size =
nullptr);
101 unsigned int Write(
const String &file_name,
const void *pDirData,
size_t size,
int a4);
136 const char *pContainer,
145 void SetupPalettes(
unsigned int uTargetRBits,
unsigned int uTargetGBits,
146 unsigned int uTargetBBits);
176 #pragma pack(push, 1)
196 #pragma pack(push, 1)
unsigned __int16 uint16_t
void DeleteSpritesRange(int uStartIndex, int uStopIndex)
int FixDirectoryOffsets()
bool LoadFile(const String &pFilename, bool bWriting)
size_t GetSubNodesCount() const
void AllocSubIndicesAndIO(unsigned int uNumSubIndices, unsigned int uBufferSize)
virtual void ResetSubIndices()
unsigned int uNumLoadedFiles
LODFile_Sprites * pSprites_LOD_mm6
unsigned int FindTextureByName(const char *pName)
virtual void ResetSubIndices()
struct Texture_MM7 * LoadTexturePtr(const char *pContainer, enum TEXTURE_TYPE uTextureType=TEXTURE_DEFAULT)
void * LoadCompressedTexture(const String &pContainer, size_t *data_size=nullptr)
LODFile_Sprites * pSprites_LOD_mm8
bool DoesContainerExist(const String &filename)
void SyncLoadedFilesCount()
std::vector< Directory > pRoot
int ReloadTexture(struct Texture_MM7 *pDst, const char *pContainer, int mode)
virtual ~LODFile_IconsBitmaps()
int _011BA4_debug_paletted_pixels_uncompressed
LODFile_IconsBitmaps * pBitmaps_LOD
uint32_t uOfsetFromSubindicesStart
int LoadSprite(const char *pContainerName, unsigned int uPaletteID)
unsigned int uLODDataSize
int LoadTextureFromLOD(struct Texture_MM7 *pOutTex, const char *pContainer, enum TEXTURE_TYPE eTextureType)
void ReleaseLostHardwareTextures()
int CreateNewLod(LOD::FileHeader *pHeader, const String &root_name, const String &Source)
unsigned int uOffsetToSubIndex
virtual ~LODFile_Sprites()
FILE * FindContainer(const String &filename, size_t *data_size=nullptr)
int LoadSpriteFromFile(LODSprite *pSpriteHeader, const String &pContainer)
bool Load(const String &pFilename, const String &pFolderName)
struct IDirect3DTexture2 ** pHardwareTextures
void SetupPalettes(unsigned int uTargetRBits, unsigned int uTargetGBits, unsigned int uTargetBBits)
unsigned int LoadTexture(const char *pContainer, enum TEXTURE_TYPE uTextureType=TEXTURE_DEFAULT)
bool LoadSubIndices(const String &sFolder)
struct Directory * pSubIndices
void MoveSpritesToVideoMemory()
int GetSubNodeIndex(const String &name) const
unsigned int uNumLoadedSprites
struct IDirectDrawSurface ** pHardwareSurfaces
int _4AD2D1_overlays(struct SoftwareBillboard *a2, int a3)
LODFile_IconsBitmaps * pIcons_LOD
unsigned int Write(const String &file_name, const void *pDirData, size_t size, int a4)
LODFile_Sprites * pSprites_LOD
unsigned int uIOBufferSize
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
void ReleaseLostHardwareSprites()
LODFile_IconsBitmaps * pEvents_LOD
void RemoveTexturesPackFromTextureList()
Texture_MM7 * GetTexture(int idx)
void * LoadCompressed(const String &pContainer, size_t *data_size=nullptr)
EGLImageKHR EGLint * name
LODFile_IconsBitmaps * pIcons_LOD_mm8
bool AppendDirectory(const String &file_name, const void *pData, size_t data_size)
LODFile_IconsBitmaps * pIcons_LOD_mm6
bool Open(const String &pFilename)
void DeleteSomeOtherSprites()
LODFile_IconsBitmaps * pBitmaps_LOD_mm6
String GetSubNodeName(size_t index) const
Sprite * pHardwareSprites
virtual bool OpenFile(const String &sFilename)
void ReleaseHardwareTextures()
Texture_MM7 pTextures[MAX_LOD_TEXTURES]
unsigned __int32 uint32_t
void * LoadRaw(const String &pContainer, size_t *data_size=nullptr)
bool LoadSprites(const String &pFilename)
void RemoveTexturesFromTextureList()
LOD::WriteableFile * pNew_LOD
LODFile_IconsBitmaps * pBitmaps_LOD_mm8