Mercurial > mm7
comparison Engine/MMT.cpp @ 2518:3a1b56ab8749
d3d11 accepts RGBTexture
author | a.parshin |
---|---|
date | Thu, 09 Oct 2014 00:06:47 +0300 |
parents | fb1c61a82a55 |
children | b36b858a5175 |
comparison
equal
deleted
inserted
replaced
2517:09c3114c6e4e | 2518:3a1b56ab8749 |
---|---|
55 if (!use_MMT) | 55 if (!use_MMT) |
56 pMediaPlayer->PlayFullscreenMovie(MOVIE_Intro, true); | 56 pMediaPlayer->PlayFullscreenMovie(MOVIE_Intro, true); |
57 } | 57 } |
58 } | 58 } |
59 } | 59 } |
60 char pContainerName[64]; | |
61 | 60 |
62 if (use_MMT) | 61 if (use_MMT) |
63 { | 62 tex.LoadPCXFile("data/New_Icons/MMTTITLE.pcx", 0); |
64 sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx"); | |
65 tex.LoadPCXFile(pContainerName, 0); | |
66 } | |
67 else | 63 else |
68 tex.Load("mm6title.pcx", 2); | 64 tex.Load("mm6title.pcx", 2); |
69 | 65 |
70 pRenderer->BeginScene(); | 66 pRenderer->BeginScene(); |
71 pRenderer->DrawTextureRGB(0, 0, &tex); | 67 pRenderer->DrawTextureNew(0, 0, &tex); |
72 free(tex.pPixels); | 68 Sleep(5000); |
73 tex.pPixels = 0; | 69 |
70 tex.Release(); | |
71 | |
74 MainMenuUI_LoadFontsAndSomeStuff(); | 72 MainMenuUI_LoadFontsAndSomeStuff(); |
75 | 73 |
76 if (use_MMT) | 74 if (use_MMT) |
77 DrawMMTCopyrightWindow();//Text message in ÌÌÒ menu | 75 DrawMMTCopyrightWindow(); |
78 else | 76 else |
79 DrawMM7CopyrightWindow(); | 77 DrawMM7CopyrightWindow(); |
80 | 78 |
81 pRenderer->EndScene(); | 79 pRenderer->EndScene(); |
82 pRenderer->Present(); | 80 pRenderer->Present(); |