X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_video.h;h=e96e2a478d4d9d3981c0ef5ff0ea17d3e5d947c9;hp=97960b89bff97adc966530381ca661366260fe4f;hb=3387cacc03e24a4104e96961383e43a62dd92df5;hpb=e42e4168dcbbade766cfa8ad980e7975a14fa1bb diff --git a/cl_video.h b/cl_video.h index 97960b89..e96e2a47 100644 --- a/cl_video.h +++ b/cl_video.h @@ -2,10 +2,7 @@ #ifndef CL_VIDEO_H #define CL_VIDEO_H -#include "cl_dyntexture.h" - -// yields DYNAMIC_TEXTURE_PATH_PREFIX CLVIDEOPREFIX video name for a path -#define CLVIDEOPREFIX CLDYNTEXTUREPREFIX "video/" +#define CLVIDEOPREFIX "video/" #define CLTHRESHOLD 2.0 #define MENUOWNER 1 @@ -46,7 +43,11 @@ typedef struct clvideo_s void *imagedata; - cachepic_t cpif; + // cachepic holds the relevant texture_t and we simply update the texture as needed + cachepic_t *cachepic; + char name[MAX_QPATH]; // name of this video UI element (not the filename) + int width; + int height; // VorteX: subtitles array int subtitles;