comparison Texture.cpp @ 710:735dab8d3c9a

Town portal screen + misc gui const replacements
author Nomad
date Thu, 21 Mar 2013 20:30:17 +0200
parents c0bfb386b15f
children e7c86528a2b3
comparison
equal deleted inserted replaced
709:af08fc9e29c8 710:735dab8d3c9a
40 Texture *pTexture_506394; 40 Texture *pTexture_506394;
41 Texture *pTex_tab_an_7a__zoot_off; 41 Texture *pTex_tab_an_7a__zoot_off;
42 Texture *pTex_tab_an_6a__zoom_off; 42 Texture *pTex_tab_an_6a__zoom_off;
43 Texture *pTex_tab_an_7b__zoot_on; 43 Texture *pTex_tab_an_7b__zoot_on;
44 Texture *pTex_tab_an_6b__zoom_on; 44 Texture *pTex_tab_an_6b__zoom_on;
45 Texture *pTexture_TownPortalHarmn; 45 Texture *pTexture_TownPortalIcons[6]; // [0]Harmonale, [1]Pierpont, [2]Nighon, [3]Evenmorn Island, [4]Celestia, [5]The Pit
46 Texture *pTexture_TownPortalElf; 46 //Texture *pTexture_TownPortalElf;
47 Texture *pTexture_TownPortalWarlock; 47 //Texture *pTexture_TownPortalWarlock;
48 Texture *pTexture_TownPortalIsland; 48 //Texture *pTexture_TownPortalIsland;
49 Texture *pTexture_TownPortalHeaven; 49 //Texture *pTexture_TownPortalHeaven;
50 Texture *pTexture_TownPortalHell; 50 //Texture *pTexture_TownPortalHell;
51 Texture *dword_5063D8[12]; 51 Texture *dword_5063D8[12];
52 Texture *dword_506408[12]; 52 Texture *dword_506408[12];
53 Texture *pTexture_50643C; // idb 53 Texture *pTexture_50643C; // idb
54 Texture *ptr_506440; 54 Texture *ptr_506440;
55 Texture *pTexture_506444; 55 Texture *pTexture_506444;
382 Texture *pSource; // [sp+0h] [bp-4h]@1 382 Texture *pSource; // [sp+0h] [bp-4h]@1
383 383
384 pSource = this; 384 pSource = this;
385 v1 = this; 385 v1 = this;
386 v2 = malloc(this->uDecompressedSize); 386 v2 = malloc(this->uDecompressedSize);
387 zlib::MemUnzip(v2, (unsigned int *)&pSource, v1->pLevelOfDetail0, v1->uTextureSize); 387 zlib::MemUnzip(v2, (unsigned int *)&pSource, v1->pLevelOfDetail0_prolly_alpha_mask, v1->uTextureSize);
388 return v2; 388 return v2;
389 } 389 }
390 390
391 //----- (0040F77C) -------------------------------------------------------- 391 //----- (0040F77C) --------------------------------------------------------
392 void Texture::Release() 392 void Texture::Release()
395 { 395 {
396 pName[0] = 0; 396 pName[0] = 0;
397 397
398 if (pBits & 0x0400) 398 if (pBits & 0x0400)
399 { 399 {
400 pAllocator->FreeChunk(pLevelOfDetail0); 400 pAllocator->FreeChunk(pLevelOfDetail0_prolly_alpha_mask);
401 pAllocator->FreeChunk(pPalette16); 401 pAllocator->FreeChunk(pPalette16);
402 pAllocator->FreeChunk(pPalette24); 402 pAllocator->FreeChunk(pPalette24);
403 } 403 }
404 404
405 pLevelOfDetail0 = nullptr; 405 pLevelOfDetail0_prolly_alpha_mask = nullptr;
406 pLevelOfDetail1 = nullptr; 406 pLevelOfDetail1 = nullptr;
407 pLevelOfDetail2 = nullptr; 407 pLevelOfDetail2 = nullptr;
408 pLevelOfDetail3 = nullptr; 408 pLevelOfDetail3 = nullptr;
409 409
410 pPalette16 = nullptr; 410 pPalette16 = nullptr;
502 uTextureWidth = 0; 502 uTextureWidth = 0;
503 uHeightLn2 = 0; 503 uHeightLn2 = 0;
504 uWidthLn2 = 0; 504 uWidthLn2 = 0;
505 palette_id1 = 0; 505 palette_id1 = 0;
506 palette_id2 = 0; 506 palette_id2 = 0;
507 pLevelOfDetail0 = 0; 507 pLevelOfDetail0_prolly_alpha_mask = 0;
508 pLevelOfDetail3 = 0; 508 pLevelOfDetail3 = 0;
509 pLevelOfDetail2 = 0; 509 pLevelOfDetail2 = 0;
510 pLevelOfDetail1 = 0; 510 pLevelOfDetail1 = 0;
511 pPalette16 = 0; 511 pPalette16 = 0;
512 pPalette24 = 0; 512 pPalette24 = 0;