UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_cinematic.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2025 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 {
39
40 bool replay;
41 int x, y, w, h;
42
43 bool noSound;
45
47
48 int status;
49
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
void CIN_InitCinematic(cinematic_t *cin)
void CIN_RunCinematic(cinematic_t *cin)
void CIN_Shutdown(void)
@ CINEMATIC_NO_TYPE
@ CINEMATIC_TYPE_OGM
@ CINEMATIC_TYPE_ROQ
cinStatus_t
@ CIN_STATUS_NONE
@ CIN_STATUS_PLAYING
@ CIN_STATUS_PAUSE
@ CIN_STATUS_INVALID
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.
void CIN_SetParameters(cinematic_t *cin, int x, int y, int w, int h, int cinStatus, bool noSound)
Filesystem header file.
#define MAX_QPATH
Definition filesys.h:40
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition r_gl.h:110
void * codecData
char name[MAX_QPATH]
Cross-platform type definitions.