comparison MediaPlayer.h @ 2454:16f0278279a5

removed CShow.cpp/.h files
author Ritor1
date Fri, 25 Jul 2014 15:47:11 +0600
parents 2a8010d99cf8
children 51d4f38aca6c
comparison
equal deleted inserted replaced
2453:2a8010d99cf8 2454:16f0278279a5
1 #pragma once 1 #pragma once
2 #include "OSWindow.h" 2 #include "OSWindow.h"
3 #include "Texture.h" 3 #include "Texture.h"
4 #include "ErrorHandling.h"
4 5
5 #pragma pack(push, 1) 6 #pragma pack(push, 1)
6 7
7 #pragma pack(pop) 8 #pragma pack(pop)
8 9
35 36
36 struct MovieHeader 37 struct MovieHeader
37 { 38 {
38 char pVideoName[40]; 39 char pVideoName[40];
39 unsigned int uFileOffset; 40 unsigned int uFileOffset;
41 };
42
43 enum MovieType
44 {
45 MOVIE_Invalid = 0x0,
46 MOVIE_3DOLogo = 0x1,
47 MOVIE_NWCLogo = 0x2,
48 MOVIE_JVC = 0x3,
49 MOVIE_Emerald = 0x4,
50 MOVIE_Intro = 0x5,
51 MOVIE_Death = 0x6,
52 MOVIE_Outro = 0x7,
40 }; 53 };
41 54
42 namespace Media 55 namespace Media
43 { 56 {
44 class ITrack 57 class ITrack
98 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop); 111 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop);
99 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1); 112 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1);
100 113
101 void LoadMovie(const char *); 114 void LoadMovie(const char *);
102 void SelectMovieType(); 115 void SelectMovieType();
116 inline void PlayFullscreenMovie(MovieType movie_type, bool bShowMouseAfterPlayback)
117 {
118 extern unsigned int bNoVideo;
119 if (bNoVideo) return;
120
121 switch (movie_type)
122 {
123 case MOVIE_3DOLogo: GlobalMovieLoop("3dologo", 0); break;
124 case MOVIE_NWCLogo: GlobalMovieLoop("new world logo", 0); break;
125 case MOVIE_JVC: GlobalMovieLoop("jvc", 0); break;
126 case MOVIE_Intro: GlobalMovieLoop("Intro", 0); break;
127 case MOVIE_Emerald: GlobalMovieLoop("Intro Post", 0); break;
128 case MOVIE_Death: GlobalMovieLoop("losegame", 2); break;
129 case MOVIE_Outro: GlobalMovieLoop("end_seq1", 20); break;
130
131 default:
132 Error("Invalid movie requested: %u", movie_type);
133 break;
134 }
135 }
103 136
104 void GlobalMovieLoop(const char *pMovieName, int a2); 137 void GlobalMovieLoop(const char *pMovieName, int a2);
105 void HouseMovieLoop(); 138 void HouseMovieLoop();
106 139
107 void ShowMM7IntroVideo_and_LoadingScreen(); 140 void ShowMM7IntroVideo_and_LoadingScreen();