2006-03-20 17:12:09 +00:00
|
|
|
/*
|
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Header for movie.c
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MOVIE_H
|
|
|
|
#define _MOVIE_H
|
|
|
|
|
|
|
|
#define MOVIE_ABORT_ON 1
|
|
|
|
#define MOVIE_ABORT_OFF 0
|
|
|
|
|
|
|
|
#define MOVIE_NOT_PLAYED 0 // movie wasn't present
|
|
|
|
#define MOVIE_PLAYED_FULL 1 // movie was played all the way through
|
|
|
|
#define MOVIE_ABORTED 2 // movie started by was aborted
|
|
|
|
|
2007-02-08 15:36:56 +00:00
|
|
|
#ifdef OGL
|
2007-07-15 15:23:45 +00:00
|
|
|
#define MOVIE_WIDTH (GameArg.GfxMovieHires&&grd_curscreen->sc_w<640?640:grd_curscreen->sc_w)
|
|
|
|
#define MOVIE_HEIGHT (GameArg.GfxMovieHires&&grd_curscreen->sc_h<480?480:grd_curscreen->sc_h)
|
2007-02-08 15:36:56 +00:00
|
|
|
#else
|
2007-07-15 15:23:45 +00:00
|
|
|
#define MOVIE_WIDTH (GameArg.GfxMovieHires?640:320)
|
|
|
|
#define MOVIE_HEIGHT (GameArg.GfxMovieHires?480:200)
|
2007-02-08 15:36:56 +00:00
|
|
|
#endif
|
|
|
|
|
2006-03-20 17:12:09 +00:00
|
|
|
extern int PlayMovie(const char *filename, int allow_abort);
|
|
|
|
extern int PlayMovies(int num_files, const char *filename[], int graphmode, int allow_abort);
|
|
|
|
extern int InitRobotMovie(char *filename);
|
|
|
|
extern int RotateRobot();
|
|
|
|
extern void DeInitRobotMovie(void);
|
|
|
|
|
|
|
|
// find and initialize the movie libraries
|
|
|
|
void init_movies();
|
|
|
|
|
2013-09-02 23:21:13 +00:00
|
|
|
int init_subtitles(const char *filename);
|
2006-03-20 17:12:09 +00:00
|
|
|
void close_subtitles();
|
|
|
|
|
|
|
|
extern int MovieHires; // specifies whether movies use low or high res
|
|
|
|
|
|
|
|
#endif /* _MOVIE_H */
|