Mercurial > mm7
comparison UI/Books/UISpellBook.cpp @ 2212:e18200fcfb50
LoadTextureFromLOD
author | Ritor1 |
---|---|
date | Thu, 13 Feb 2014 01:02:04 +0600 |
parents | 42c8807225a2 |
children | aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
2211:b4bb8296ecfa | 2212:e18200fcfb50 |
---|---|
101 pTexture = SBPageSSpellsTextureList[i]; | 101 pTexture = SBPageSSpellsTextureList[i]; |
102 if ( pTexture->pLevelOfDetail0_prolly_alpha_mask ) | 102 if ( pTexture->pLevelOfDetail0_prolly_alpha_mask ) |
103 { | 103 { |
104 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos; | 104 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos; |
105 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos; | 105 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos; |
106 if ( BYTE1(pTexture->pBits) & 2 ) | 106 if ( pTexture->pBits & 0x200 ) |
107 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pTexture); | 107 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pTexture); |
108 else | 108 else |
109 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); | 109 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); |
110 pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, | 110 pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, |
111 pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i); | 111 pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i); |
121 { | 121 { |
122 if ( SBPageCSpellsTextureList[v10]->pLevelOfDetail0_prolly_alpha_mask ) | 122 if ( SBPageCSpellsTextureList[v10]->pLevelOfDetail0_prolly_alpha_mask ) |
123 { | 123 { |
124 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos; | 124 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos; |
125 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos; | 125 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos; |
126 if ( BYTE1(SBPageCSpellsTextureList[v10]->pBits) & 2 ) | 126 if ( SBPageCSpellsTextureList[v10]->pBits & 0x200 ) |
127 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); | 127 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); |
128 else | 128 else |
129 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); | 129 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); |
130 } | 130 } |
131 } | 131 } |