cl_cinematic.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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 /* CLIENT_CL_CINEMATIC_H */

Generated by  doxygen 1.6.2