UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ui_node_model.h File Reference
#include "../ui_nodes.h"
#include "ui_node_abstractnode.h"
#include "../../cl_renderer.h"

Go to the source code of this file.

Data Structures

class  uiModelNode
 
struct  uiModel_s
 Model that have more than one part (top and down part of an aircraft) More...
 
struct  modelExtraData_s
 extradata for the model node More...
 

Macros

#define UI_MAX_MODELS   128
 

Typedefs

typedef struct uiModel_s uiModel_t
 Model that have more than one part (top and down part of an aircraft) More...
 
typedef struct modelExtraData_s modelExtraData_t
 extradata for the model node More...
 

Functions

uiModel_tUI_GetUIModel (const char *modelName)
 Returns pointer to UI model. More...
 
void UI_DrawModelNode (uiNode_t *node, const char *source)
 
void UI_RegisterModelNode (uiBehaviour_t *behaviour)
 
void UI_Model_SetModelSource (uiNode_t *node, const char *modelName)
 
void UI_Model_SetSkinSource (uiNode_t *node, const char *skinName)
 
void UI_Model_SetAnimationSource (uiNode_t *node, const char *animName)
 
void UI_Model_SetTagSource (uiNode_t *node, const char *tagName)
 

Macro Definition Documentation

#define UI_MAX_MODELS   128

Definition at line 44 of file ui_node_model.h.

Referenced by UI_ParseUIModel().

Typedef Documentation

extradata for the model node

typedef struct uiModel_s uiModel_t

Model that have more than one part (top and down part of an aircraft)

Function Documentation

uiModel_t* UI_GetUIModel ( const char *  modelName)

Returns pointer to UI model.

Parameters
[in]modelNamemodel id from script files
Returns
uiModel_t pointer

Definition at line 61 of file ui_node_model.cpp.

References i, uiModel_s::id, m, uiGlobal_s::models, uiGlobal_s::numModels, Q_streq, and ui_global.

Referenced by GAME_GetModelForItem(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), and UI_ParseUIModel().

void UI_Model_SetAnimationSource ( uiNode_t node,
const char *  animName 
)
void UI_Model_SetModelSource ( uiNode_t node,
const char *  modelName 
)
void UI_Model_SetSkinSource ( uiNode_t node,
const char *  skinName 
)
void UI_Model_SetTagSource ( uiNode_t node,
const char *  tagName 
)