comparison Engine/LOD.h @ 2574:dd36326a9994

More texture refactoring GetLeather -> DrawTextureCustomHeight
author a.parshin
date Mon, 07 Mar 2016 03:48:40 +0200
parents d87bfbd3bb3b
children a76d408c5132
comparison
equal deleted inserted replaced
2573:0c67be4ec900 2574:dd36326a9994
151 void SyncLoadedFilesCount(); 151 void SyncLoadedFilesCount();
152 unsigned int FindTextureByName(const char *pName); 152 unsigned int FindTextureByName(const char *pName);
153 bool Load(const char *pFilename, const char *pFolderName); 153 bool Load(const char *pFilename, const char *pFolderName);
154 void ReleaseAll(); 154 void ReleaseAll();
155 unsigned int LoadTexture(const char *pContainer, enum TEXTURE_TYPE uTextureType = TEXTURE_DEFAULT); 155 unsigned int LoadTexture(const char *pContainer, enum TEXTURE_TYPE uTextureType = TEXTURE_DEFAULT);
156 struct Texture *LoadTexturePtr(const char *pContainer, enum TEXTURE_TYPE uTextureType = TEXTURE_DEFAULT); 156 struct Texture_MM7 *LoadTexturePtr(const char *pContainer, enum TEXTURE_TYPE uTextureType = TEXTURE_DEFAULT);
157 int LoadTextureFromLOD(struct Texture *pOutTex, const char *pContainer, enum TEXTURE_TYPE eTextureType); 157 int LoadTextureFromLOD(struct Texture_MM7 *pOutTex, const char *pContainer, enum TEXTURE_TYPE eTextureType);
158 int ReloadTexture(struct Texture *pDst, const char *pContainer, int mode); 158 int ReloadTexture(struct Texture_MM7 *pDst, const char *pContainer, int mode);
159 void ReleaseHardwareTextures(); 159 void ReleaseHardwareTextures();
160 void ReleaseLostHardwareTextures(); 160 void ReleaseLostHardwareTextures();
161 void _410423_move_textures_to_device(); 161 void _410423_move_textures_to_device();
162 int _410522(struct Texture *pDst, const char *pContainer, unsigned int uTextureType); 162 int _410522(struct Texture_MM7 *pDst, const char *pContainer, unsigned int uTextureType);
163 void SetupPalettes(unsigned int uTargetRBits, unsigned int uTargetGBits, unsigned int uTargetBBits); 163 void SetupPalettes(unsigned int uTargetRBits, unsigned int uTargetGBits, unsigned int uTargetBBits);
164 void ReleaseAll2(); 164 void ReleaseAll2();
165 void RemoveTexturesPackFromTextureList(); 165 void RemoveTexturesPackFromTextureList();
166 void RemoveTexturesFromTextureList(); 166 void RemoveTexturesFromTextureList();
167 void _inlined_sub0(); 167 void _inlined_sub0();
168 void _inlined_sub1(); 168 void _inlined_sub1();
169 void _inlined_sub2(); 169 void _inlined_sub2();
170 170
171 int LoadDummyTexture(); 171 int LoadDummyTexture();
172 172
173 Texture *GetTexture(int idx); 173 Texture_MM7 *GetTexture(int idx);
174 174
175 175
176 /*FILE *pFile; 176 /*FILE *pFile;
177 unsigned __int8 pLODName[256]; 177 unsigned __int8 pLODName[256];
178 unsigned int isFileOpened; 178 unsigned int isFileOpened;
185 unsigned int uLODDataSize; 185 unsigned int uLODDataSize;
186 unsigned int uNumSubIndices; 186 unsigned int uNumSubIndices;
187 struct LOD::Directory *pSubIndices; 187 struct LOD::Directory *pSubIndices;
188 unsigned int uOffsetToSubIndex; 188 unsigned int uOffsetToSubIndex;
189 FILE *pOutputFileHandle;*/ 189 FILE *pOutputFileHandle;*/
190 Texture pTextures[MAX_LOD_TEXTURES]; 190 Texture_MM7 pTextures[MAX_LOD_TEXTURES];
191 unsigned int uNumLoadedFiles; 191 unsigned int uNumLoadedFiles;
192 int dword_11B80; 192 int dword_11B80;
193 int dword_11B84; 193 int dword_11B84;
194 int dword_11B88; 194 int dword_11B88;
195 int uTextureRedBits; 195 int uTextureRedBits;