World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
MediaPlayer.h
См. документацию.
1
#pragma once
2
3
#include <string>
4
5
#include "
Media/Media.h
"
6
7
// MOVIE_3DOLogo "3dologo"
8
// MOVIE_NWCLogo "new world logo"
9
// MOVIE_JVC "jvc"
10
// MOVIE_Intro "Intro"
11
// MOVIE_Emerald "Intro Post"
12
// MOVIE_Death "losegame"
13
// MOVIE_Outro "end_seq1"
14
15
class
VideoList
;
16
17
class
MPlayer
{
18
public
:
19
MPlayer
();
20
virtual
~MPlayer
();
21
22
void
Initialize
();
23
void
Unload
();
24
25
void
PlayFullscreenMovie
(
const
std::string
&pMovieName);
26
27
void
OpenHouseMovie
(
const
std::string
&pMovieName,
bool
bLoop);
28
void
HouseMovieLoop
();
29
30
bool
IsMoviePlaying
()
const
;
31
bool
StopMovie
();
32
33
protected
:
34
VideoList
*
might_list
;
35
VideoList
*
magic_list
;
36
std::string
sInHouseMovie
;
37
38
FILE *
LoadMovie
(
const
std::string
&video_name,
size_t
&
size
,
39
size_t
&
offset
);
40
};
41
42
extern
MPlayer
*
pMediaPlayer
;
43
extern
PMovie
pMovie_Track
;
MPlayer::sInHouseMovie
std::string sInHouseMovie
Definition:
MediaPlayer.h:36
MPlayer::PlayFullscreenMovie
void PlayFullscreenMovie(const std::string &pMovieName)
Definition:
MediaPlayer.cpp:705
MPlayer::StopMovie
bool StopMovie()
Definition:
MediaPlayer.cpp:785
MPlayer::MPlayer
MPlayer()
Definition:
MediaPlayer.cpp:846
VideoList
Definition:
MediaPlayer.cpp:530
MPlayer::might_list
VideoList * might_list
Definition:
MediaPlayer.h:34
MPlayer::~MPlayer
virtual ~MPlayer()
Definition:
MediaPlayer.cpp:868
MPlayer::OpenHouseMovie
void OpenHouseMovie(const std::string &pMovieName, bool bLoop)
Definition:
MediaPlayer.cpp:633
MPlayer::LoadMovie
FILE * LoadMovie(const std::string &video_name, size_t &size, size_t &offset)
Definition:
MediaPlayer.cpp:792
MPlayer::Unload
void Unload()
Definition:
MediaPlayer.cpp:826
pMovie_Track
PMovie pMovie_Track
Definition:
MediaPlayer.cpp:44
Media.h
MPlayer::HouseMovieLoop
void HouseMovieLoop()
Definition:
MediaPlayer.cpp:653
MPlayer::magic_list
VideoList * magic_list
Definition:
MediaPlayer.h:35
MPlayer
Definition:
MediaPlayer.h:17
MPlayer::Initialize
void Initialize()
Definition:
MediaPlayer.cpp:623
PMovie
std::shared_ptr< IMovie > PMovie
Definition:
Media.h:89
string
GLsizei const GLchar *const * string
Definition:
SDL_opengl_glext.h:691
size
GLsizeiptr size
Definition:
SDL_opengl_glext.h:540
offset
GLintptr offset
Definition:
SDL_opengl_glext.h:541
MPlayer::IsMoviePlaying
bool IsMoviePlaying() const
Definition:
MediaPlayer.cpp:777
pMediaPlayer
MPlayer * pMediaPlayer
Definition:
MediaPlayer.cpp:43
Media
MediaPlayer.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:44. Создано системой
1.8.17