UFO: Alien Invasion
cl_cinematic.h
Go to the documentation of this file.
1
6/*
7Copyright (C) 2002-2022 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, 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
31enum {
35};
36
37typedef struct cinematic_s {
40 bool replay;
41 int x, y, w, h;
43 bool noSound;
47
48 int status;
50 void* codecData;
52
53void CIN_OpenCinematic(cinematic_t* cin, const char* name);
55void CIN_SetParameters(cinematic_t* cin, int x, int y, int w, int h, int cinStatus, bool noSound);
58
59void CIN_Init(void);
60void CIN_Shutdown(void);
61
62typedef enum {
void CIN_InitCinematic(cinematic_t *cin)
void CIN_RunCinematic(cinematic_t *cin)
void CIN_Shutdown(void)
cinStatus_t
Definition: cl_cinematic.h:62
@ CIN_STATUS_NONE
Definition: cl_cinematic.h:63
@ CIN_STATUS_PLAYING
Definition: cl_cinematic.h:65
@ CIN_STATUS_PAUSE
Definition: cl_cinematic.h:66
@ CIN_STATUS_INVALID
Definition: cl_cinematic.h:64
void CIN_Init(void)
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.
@ CINEMATIC_NO_TYPE
Definition: cl_cinematic.h:32
@ CINEMATIC_TYPE_OGM
Definition: cl_cinematic.h:34
@ CINEMATIC_TYPE_ROQ
Definition: cl_cinematic.h:33
void CIN_SetParameters(cinematic_t *cin, int x, int y, int w, int h, int cinStatus, bool noSound)
#define MAX_QPATH
Definition: filesys.h:40
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
void * codecData
Definition: cl_cinematic.h:50
int cinematicType
Definition: cl_cinematic.h:46
bool fullScreen
Definition: cl_cinematic.h:44