Mercurial > mm7
comparison Engine/LOD.h @ 2572:d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
author | a.parshin |
---|---|
date | Sat, 05 Mar 2016 01:51:54 +0200 |
parents | 68cdef6879a0 |
children | dd36326a9994 |
comparison
equal
deleted
inserted
replaced
2571:cf29f444ddd7 | 2572:d87bfbd3bb3b |
---|---|
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 inline int LoadDummyTexture() | 171 int LoadDummyTexture(); |
172 { | |
173 for (unsigned int i = 0; i < uNumLoadedFiles; ++i) | |
174 if (!strcmp(pTextures[i].pName, "pending")) | |
175 return i; | |
176 return LoadTextureFromLOD(&pTextures[uNumLoadedFiles], "pending", TEXTURE_16BIT_PALETTE); | |
177 } | |
178 | 172 |
179 Texture *GetTexture(int idx); | 173 Texture *GetTexture(int idx); |
180 | 174 |
181 | 175 |
182 /*FILE *pFile; | 176 /*FILE *pFile; |
202 int uTextureGreenBits; | 196 int uTextureGreenBits; |
203 int uTextureBlueBits; | 197 int uTextureBlueBits; |
204 int uNumPrevLoadedFiles; | 198 int uNumPrevLoadedFiles; |
205 int uTexturePacksCount; | 199 int uTexturePacksCount; |
206 int pFacesLock; | 200 int pFacesLock; |
207 int dword_011BA4; | 201 int _011BA4_debug_paletted_pixels_uncompressed; |
208 //int can_load_hardware_sprites; | 202 //int can_load_hardware_sprites; |
209 struct IDirectDrawSurface **pHardwareSurfaces; | 203 struct IDirectDrawSurface **pHardwareSurfaces; |
210 struct IDirect3DTexture2 **pHardwareTextures; | 204 struct IDirect3DTexture2 **pHardwareTextures; |
211 char *ptr_011BB4; | 205 char *ptr_011BB4; |
212 }; | 206 }; |