dxx-rebirth/d2x-rebirth/main/movie.h

64 lines
2.2 KiB
C
Raw Normal View History

2006-03-20 17:12:09 +00:00
/*
2014-06-01 17:55:23 +00:00
* Portions of this file are copyright Rebirth contributors and licensed as
* described in COPYING.txt.
* Portions of this file are copyright Parallax Software and licensed
* according to the Parallax license below.
* See COPYING.txt for license details.
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
#ifdef __cplusplus
2014-10-29 03:01:18 +00:00
#include "d2x-rebirth/libmve/mvelib.h"
2006-03-20 17:12:09 +00:00
#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
#ifdef OGL
2013-11-10 16:38:06 +00:00
#define MOVIE_WIDTH (!GameArg.GfxSkipHiresMovie&&grd_curscreen->sc_w<640?640:grd_curscreen->sc_w)
#define MOVIE_HEIGHT (!GameArg.GfxSkipHiresMovie&&grd_curscreen->sc_h<480?480:grd_curscreen->sc_h)
#else
2013-11-10 16:38:06 +00:00
#define MOVIE_WIDTH (!GameArg.GfxSkipHiresMovie?640:320)
#define MOVIE_HEIGHT (!GameArg.GfxSkipHiresMovie?480:200)
#endif
2013-10-27 21:01:04 +00:00
extern int PlayMovie(const char *subtitles, const char *filename, int allow_abort);
2006-03-20 17:12:09 +00:00
extern int PlayMovies(int num_files, const char *filename[], int graphmode, int allow_abort);
2014-10-29 03:01:18 +00:00
int InitRobotMovie(const char *filename, MVESTREAM_ptr_t &pMovie);
int RotateRobot(MVESTREAM_ptr_t &pMovie);
void DeInitRobotMovie(MVESTREAM_ptr_t &pMovie);
2006-03-20 17:12:09 +00:00
// find and initialize the movie libraries
void init_movies();
2014-08-16 03:59:14 +00:00
void init_extra_robot_movie(const char *filename);
void close_extra_robot_movie();
2006-03-20 17:12:09 +00:00
extern int MovieHires; // specifies whether movies use low or high res
#endif
2006-03-20 17:12:09 +00:00
#endif /* _MOVIE_H */