X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_video.h;h=d98c0087d5179e7cd14ad3a85eb28e19c9e055a1;hb=c00b996dcc209cd530e87481a77a82848d101fbb;hp=878d24941babc5296b1e570504beaa588de22477;hpb=b0d02f8fd54c06d0706c185ab86250c3a696e5b3;p=xonotic%2Fdarkplaces.git diff --git a/cl_video.h b/cl_video.h index 878d2494..d98c0087 100644 --- a/cl_video.h +++ b/cl_video.h @@ -2,8 +2,10 @@ #ifndef CL_VIDEO_H #define CL_VIDEO_H -#define MAXCLVIDEOS 64 + 1 // 1 video is reserved for the cinematic mode -#define CLVIDEOPREFIX "_video/" +#include "cl_dyntexture.h" + +// yields DYNAMIC_TEXTURE_PATH_PREFIX CLVIDEOPREFIX video name for a path +#define CLVIDEOPREFIX CLDYNTEXTUREPREFIX "video/" #define CLTHRESHOLD 2.0 #define MENUOWNER 1 @@ -53,7 +55,7 @@ void CL_RestartVideo( clvideo_t *video ); void CL_CloseVideo( clvideo_t * video ); void CL_PurgeOwner( int owner ); -void CL_VideoFrame( void ); // update all videos +void CL_Video_Frame( void ); // update all videos void CL_Video_Init( void ); void CL_Video_Shutdown( void ); @@ -64,4 +66,8 @@ void CL_DrawVideo( void ); void CL_VideoStart( char *filename ); void CL_VideoStop( void ); +// new function used for fullscreen videos +// TODO: Andreas Kirsch: move this subsystem somewhere else (preferably host) since the cl_video system shouldnt do such work like managing key events.. +void CL_Video_KeyEvent( int key, int ascii, qboolean down ); + #endif