-
Notifications
You must be signed in to change notification settings - Fork 11
/
movies.h
55 lines (49 loc) · 1.67 KB
/
movies.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* ff7_opengl - Complete OpenGL replacement of the Direct3D renderer used in
* the original ports of Final Fantasy VII and Final Fantasy VIII for the PC.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* movies.h - FMV player definitions
*/
#ifndef _MOVIES_H_
#define _MOVIES_H_
#include "types.h"
struct movie_plugin
{
void (*movie_init)(void *, void *, void *, void *, void *, void *, void **, bool, bool);
uint (*prepare_movie)(char *);
void (*release_movie_objects)();
bool (*update_movie_sample)();
void (*draw_current_frame)();
void (*loop)();
void (*stop_movie)();
uint (*get_movie_frame)();
};
void movie_init();
bool ff7_prepare_movie(char *, uint, struct dddevice **, uint);
void ff7_release_movie_objects();
bool ff7_start_movie();
bool ff7_update_movie_sample(LPDIRECTDRAWSURFACE);
bool ff7_stop_movie();
uint ff7_get_movie_frame();
void draw_current_frame();
void ff8_prepare_movie(uint disc, uint movie);
void ff8_release_movie_objects();
void ff8_start_movie();
void ff8_update_movie_sample();
void ff8_stop_movie();
uint ff8_get_movie_frame();
#endif