Mercurial > mm7
comparison Engine/Engine.cpp @ 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 |
---|---|
844 | 844 |
845 //----- (0042FBDD) -------------------------------------------------------- | 845 //----- (0042FBDD) -------------------------------------------------------- |
846 void sub_42FBDD() | 846 void sub_42FBDD() |
847 { | 847 { |
848 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); | 848 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); |
849 pRenderer->DrawTextureIndexedAlpha(pBtn_YES->uX, pBtn_YES->uY, pBtn_YES->pTextures[0]); | 849 pRenderer->DrawTextureAlphaNew(pBtn_YES->uX/640.0f, pBtn_YES->uY/480.0f, pBtn_YES->pTextures[0]); |
850 pRenderer->Present(); | 850 pRenderer->Present(); |
851 } | 851 } |
852 | 852 |
853 //----- (0042FC15) -------------------------------------------------------- | 853 //----- (0042FC15) -------------------------------------------------------- |
854 void CloseWindowBackground() | 854 void CloseWindowBackground() |
855 { | 855 { |
856 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, -2, 0, -1, 0, 0, 0, 0); | 856 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, -2, 0, -1, 0, 0, 0, 0); |
857 pRenderer->DrawTextureIndexedAlpha(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pBtn_ExitCancel->pTextures[0]); | 857 pRenderer->DrawTextureAlphaNew(pBtn_ExitCancel->uX/640.0f, pBtn_ExitCancel->uY/480.0f, pBtn_ExitCancel->pTextures[0]); |
858 pRenderer->Present(); | 858 pRenderer->Present(); |
859 } | 859 } |
860 | 860 |
861 | 861 |
862 //----- (0046BDC0) -------------------------------------------------------- | 862 //----- (0046BDC0) -------------------------------------------------------- |
965 static_assert(sizeof(PlayerFrame) == 10, "Wrong type size"); | 965 static_assert(sizeof(PlayerFrame) == 10, "Wrong type size"); |
966 static_assert(sizeof(TextureFrame) == 20, "Wrong type size"); | 966 static_assert(sizeof(TextureFrame) == 20, "Wrong type size"); |
967 static_assert(sizeof(SpriteFrame) == 60, "Wrong type size"); | 967 static_assert(sizeof(SpriteFrame) == 60, "Wrong type size"); |
968 static_assert(sizeof(RenderVertexSoft) == 0x30, "Wrong type size"); | 968 static_assert(sizeof(RenderVertexSoft) == 0x30, "Wrong type size"); |
969 static_assert(sizeof(RenderBillboard) == 0x34, "Wrong type size"); | 969 static_assert(sizeof(RenderBillboard) == 0x34, "Wrong type size"); |
970 static_assert(sizeof(Texture) == 0x48, "Wrong type size"); | 970 static_assert(sizeof(Texture_MM7) == 0x48, "Wrong type size"); |
971 //static_assert(sizeof(RGBTexture) == 0x28, "Wrong type size"); | 971 //static_assert(sizeof(RGBTexture) == 0x28, "Wrong type size"); |
972 //static_assert(sizeof(LODFile_IconsBitmaps) == 0x11BB8 + 4, "Wrong type size"); // + virtual dtor ptr | 972 //static_assert(sizeof(LODFile_IconsBitmaps) == 0x11BB8 + 4, "Wrong type size"); // + virtual dtor ptr |
973 static_assert(sizeof(AudioPlayer) == 0xC84, "Wrong type size"); | 973 static_assert(sizeof(AudioPlayer) == 0xC84, "Wrong type size"); |
974 static_assert(sizeof(SoundDesc) == 0x78, "Wrong type size"); | 974 static_assert(sizeof(SoundDesc) == 0x78, "Wrong type size"); |
975 static_assert(sizeof(stru339_spell_sound) == 0xAFD8, "Wrong type size"); | 975 static_assert(sizeof(stru339_spell_sound) == 0xAFD8, "Wrong type size"); |