Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | /* |
| 2 | * Portions of this file are copyright Rebirth contributors and licensed as |
||
| 3 | * described in COPYING.txt. |
||
| 4 | * Portions of this file are copyright Parallax Software and licensed |
||
| 5 | * according to the Parallax license below. |
||
| 6 | * See COPYING.txt for license details. |
||
| 7 | |||
| 8 | THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
||
| 9 | SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
||
| 10 | END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
||
| 11 | ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
||
| 12 | IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
||
| 13 | SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
||
| 14 | FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
||
| 15 | CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
||
| 16 | AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
||
| 17 | COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
||
| 18 | */ |
||
| 19 | |||
| 20 | /* |
||
| 21 | * |
||
| 22 | * Header for movie.c |
||
| 23 | * |
||
| 24 | */ |
||
| 25 | |||
| 26 | #pragma once |
||
| 27 | |||
| 28 | #ifdef __cplusplus |
||
| 29 | #include "d2x-rebirth/libmve/mvelib.h" |
||
| 30 | |||
| 31 | #define MOVIE_ABORT_ON 1 |
||
| 32 | #define MOVIE_ABORT_OFF 0 |
||
| 33 | |||
| 34 | #define MOVIE_NOT_PLAYED 0 // movie wasn't present |
||
| 35 | #define MOVIE_PLAYED_FULL 1 // movie was played all the way through |
||
| 36 | #define MOVIE_ABORTED 2 // movie started by was aborted |
||
| 37 | |||
| 38 | #if DXX_USE_OGL |
||
| 39 | #define MOVIE_WIDTH (!GameArg.GfxSkipHiresMovie && grd_curscreen->get_screen_width() < 640 ? static_cast<uint16_t>(640) : grd_curscreen->get_screen_width()) |
||
| 40 | #define MOVIE_HEIGHT (!GameArg.GfxSkipHiresMovie && grd_curscreen->get_screen_height() < 480 ? static_cast<uint16_t>(480) : grd_curscreen->get_screen_height()) |
||
| 41 | #else |
||
| 42 | #define MOVIE_WIDTH static_cast<uint16_t>(!GameArg.GfxSkipHiresMovie? 640 : 320) |
||
| 43 | #define MOVIE_HEIGHT static_cast<uint16_t>(!GameArg.GfxSkipHiresMovie? 480 : 200) |
||
| 44 | #endif |
||
| 45 | |||
| 46 | extern int PlayMovie(const char *subtitles, const char *filename, int allow_abort); |
||
| 47 | extern int PlayMovies(int num_files, const char *filename[], int graphmode, int allow_abort); |
||
| 48 | int InitRobotMovie(const char *filename, MVESTREAM_ptr_t &pMovie); |
||
| 49 | int RotateRobot(MVESTREAM_ptr_t &pMovie); |
||
| 50 | void DeInitRobotMovie(MVESTREAM_ptr_t &pMovie); |
||
| 51 | |||
| 52 | // find and initialize the movie libraries |
||
| 53 | void init_movies(); |
||
| 54 | |||
| 55 | void init_extra_robot_movie(const char *filename); |
||
| 56 | void close_extra_robot_movie(); |
||
| 57 | |||
| 58 | extern int MovieHires; // specifies whether movies use low or high res |
||
| 59 | |||
| 60 | #endif |