cl_cinematic.h
Go to the documentation of this file.00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef CLIENT_CL_CINEMATIC_H
00027 #define CLIENT_CL_CINEMATIC_H
00028
00029 #include "../client.h"
00030
00031 enum {
00032 CINEMATIC_TYPE_ROQ,
00033 CINEMATIC_TYPE_OGM
00034 };
00035
00036 typedef struct cinematic_s {
00037 char name[MAX_QPATH];
00039 qboolean replay;
00040 int x, y, w, h;
00042 qboolean noSound;
00043 qboolean fullScreen;
00045 int cinematicType;
00046
00047 int status;
00049 void *codecData;
00050 } cinematic_t;
00051
00052 void CIN_StopCinematic(cinematic_t *cin);
00053 void CIN_PlayCinematic(cinematic_t *cin, const char *name);
00054 void CIN_SetParameters(cinematic_t *cin, int x, int y, int w, int h, int cinStatus, qboolean noSound);
00055 void CIN_RunCinematic(cinematic_t *cin);
00056 void CIN_InitCinematic(cinematic_t *cin);
00057
00058 void CIN_Init(void);
00059 void CIN_Shutdown(void);
00060
00061 typedef enum {
00062 CIN_STATUS_NONE,
00063 CIN_STATUS_PLAYING,
00064 CIN_STATUS_PAUSE,
00065 } cinStatus_t;
00066
00067 #endif