ui_node_video.c File Reference

#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_draw.h"
#include "ui_node_video.h"
#include "ui_node_abstractnode.h"
#include "../../client.h"
#include "../../cinematic/cl_cinematic.h"
Include dependency graph for ui_node_video.c:

Go to the source code of this file.

Defines

#define EXTRADATA_TYPE   videoExtraData_t
#define EXTRADATA(node)   UI_EXTRADATA(node, EXTRADATA_TYPE)
#define EXTRADATACONST(node)   UI_EXTRADATACONST(node, EXTRADATA_TYPE)

Functions

static void UI_VideoNodeDrawOverWindow (uiNode_t *node)
static void UI_VideoNodeDraw (uiNode_t *node)
static void UI_VideoNodeInit (uiNode_t *node)
static void UI_VideoNodeClose (uiNode_t *node)
void UI_RegisterVideoNode (uiBehaviour_t *behaviour)

Variables

static const value_t properties []

Detailed Description

Todo:

add function to play/stop/pause

fix fullscreen, looped video

event when video end

function to move the video by position

function or cvar to know the video position

cvar or property to know the size of the video

Definition in file ui_node_video.c.


Define Documentation

#define EXTRADATA ( node   )     UI_EXTRADATA(node, EXTRADATA_TYPE)

Definition at line 41 of file ui_node_video.c.

#define EXTRADATA_TYPE   videoExtraData_t

Definition at line 40 of file ui_node_video.c.

#define EXTRADATACONST ( node   )     UI_EXTRADATACONST(node, EXTRADATA_TYPE)

Definition at line 42 of file ui_node_video.c.


Function Documentation

void UI_RegisterVideoNode ( uiBehaviour_t behaviour  ) 
static void UI_VideoNodeClose ( uiNode_t node  )  [static]

Definition at line 80 of file ui_node_video.c.

References CIN_StopCinematic(), and EXTRADATA.

Referenced by UI_RegisterVideoNode().

static void UI_VideoNodeDraw ( uiNode_t node  )  [static]
static void UI_VideoNodeDrawOverWindow ( uiNode_t node  )  [static]
static void UI_VideoNodeInit ( uiNode_t node  )  [static]

Definition at line 75 of file ui_node_video.c.

References CIN_InitCinematic(), and EXTRADATA.

Referenced by UI_RegisterVideoNode().


Variable Documentation

const value_t properties[] [static]
Initial value:
 {
    
    {"src", V_CVAR_OR_STRING, offsetof(uiNode_t, image), 0},
    {"nosound", V_BOOL, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, nosound), MEMBER_SIZEOF(EXTRADATA_TYPE, nosound)},
    {NULL, V_NULL, 0, 0}
}

Definition at line 86 of file ui_node_video.c.


Generated by  doxygen 1.6.2