UFO: Alien Invasion
Doxygen documentation generating
cl_cinematic.h
Go to the documentation of this file.
1
6
/*
7
Copyright (C) 2002-2023 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
{
32
CINEMATIC_NO_TYPE
,
33
CINEMATIC_TYPE_ROQ
,
34
CINEMATIC_TYPE_OGM
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
;
46
int
cinematicType
;
47
48
int
status
;
50
void
*
codecData
;
51
}
cinematic_t
;
52
53
void
CIN_OpenCinematic
(
cinematic_t
* cin,
const
char
*
name
);
54
void
CIN_CloseCinematic
(
cinematic_t
* cin);
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);
57
void
CIN_InitCinematic
(
cinematic_t
* cin);
58
59
void
CIN_Init
(
void
);
60
void
CIN_Shutdown
(
void
);
61
62
typedef
enum
{
63
CIN_STATUS_NONE
,
64
CIN_STATUS_INVALID
,
65
CIN_STATUS_PLAYING
,
66
CIN_STATUS_PAUSE
67
}
cinStatus_t
;
CIN_Shutdown
void CIN_Shutdown(void)
Definition:
cl_cinematic.cpp:132
cinematic_t::cinematicType
int cinematicType
Definition:
cl_cinematic.h:46
CIN_RunCinematic
void CIN_RunCinematic(cinematic_t *cin)
Definition:
cl_cinematic.cpp:61
CIN_Init
void CIN_Init(void)
Definition:
cl_cinematic.cpp:126
CIN_SetParameters
void CIN_SetParameters(cinematic_t *cin, int x, int y, int w, int h, int cinStatus, bool noSound)
Definition:
cl_cinematic.cpp:47
CIN_STATUS_INVALID
Definition:
cl_cinematic.h:64
CIN_STATUS_PLAYING
Definition:
cl_cinematic.h:65
CIN_CloseCinematic
void CIN_CloseCinematic(cinematic_t *cin)
Close a cinematic, and clean up status and memory.
Definition:
cl_cinematic.cpp:111
cinematic_t::y
int y
Definition:
cl_cinematic.h:41
CIN_OpenCinematic
void CIN_OpenCinematic(cinematic_t *cin, const char *name)
Open a cinematic file and store status to a structure.
Definition:
cl_cinematic.cpp:86
cinematic_t::replay
bool replay
Definition:
cl_cinematic.h:40
cinematic_t
Definition:
cl_cinematic.h:37
CIN_STATUS_PAUSE
Definition:
cl_cinematic.h:66
CINEMATIC_TYPE_ROQ
Definition:
cl_cinematic.h:33
cinematic_t::status
int status
Definition:
cl_cinematic.h:48
cinematic_t::codecData
void * codecData
Definition:
cl_cinematic.h:50
CIN_STATUS_NONE
Definition:
cl_cinematic.h:63
cinematic_t::fullScreen
bool fullScreen
Definition:
cl_cinematic.h:44
CIN_InitCinematic
void CIN_InitCinematic(cinematic_t *cin)
Definition:
cl_cinematic.cpp:37
CINEMATIC_NO_TYPE
Definition:
cl_cinematic.h:32
MAX_QPATH
#define MAX_QPATH
Definition:
filesys.h:40
name
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition:
r_gl.h:110
cinStatus_t
cinStatus_t
Definition:
cl_cinematic.h:62
CINEMATIC_TYPE_OGM
Definition:
cl_cinematic.h:34
cinematic_t::noSound
bool noSound
Definition:
cl_cinematic.h:43
client
cinematic
cl_cinematic.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.8.14