UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_cinematic.h
Go to the documentation of this file.
1 
6 /*
7 Copyright (C) 2002-2020 UFO: Alien Invasion.
8 
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 
18 See the GNU General Public License for more details.
19 
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 
24 */
25 
26 #pragma once
27 
28 #include "../../shared/ufotypes.h" /* for bool */
29 #include "../../common/filesys.h" /* for MAX_QPATH */
30 
31 enum {
35 };
36 
37 typedef struct cinematic_s {
38  char name[MAX_QPATH];
40  bool replay;
41  int x, y, w, h;
43  bool noSound;
44  bool fullScreen;
47 
48  int status;
50  void* codecData;
51 } cinematic_t;
52 
53 void CIN_OpenCinematic(cinematic_t* cin, const char* name);
55 void CIN_SetParameters(cinematic_t* cin, int x, int y, int w, int h, int cinStatus, bool noSound);
56 void CIN_RunCinematic(cinematic_t* cin);
58 
59 void CIN_Init(void);
60 void CIN_Shutdown(void);
61 
62 typedef enum {
67 } cinStatus_t;
void CIN_Shutdown(void)
void CIN_RunCinematic(cinematic_t *cin)
void CIN_Init(void)
void CIN_SetParameters(cinematic_t *cin, int x, int y, int w, int h, int cinStatus, bool noSound)
void CIN_CloseCinematic(cinematic_t *cin)
Close a cinematic, and clean up status and memory.
void CIN_OpenCinematic(cinematic_t *cin, const char *name)
Open a cinematic file and store status to a structure.
struct cinematic_s cinematic_t
void CIN_InitCinematic(cinematic_t *cin)
#define MAX_QPATH
Definition: filesys.h:40
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
char name[MAX_QPATH]
Definition: cl_cinematic.h:38
cinStatus_t
Definition: cl_cinematic.h:62
void * codecData
Definition: cl_cinematic.h:50
int cinematicType
Definition: cl_cinematic.h:46
bool fullScreen
Definition: cl_cinematic.h:44