#include "../ui_nodes.h"
#include "../../cl_renderer.h"
Go to the source code of this file.
Data Structures | |
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... | |
Defines | |
#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). | |
typedef struct modelExtraData_s | modelExtraData_t |
extradata for the model node | |
Functions | |
uiModel_t * | UI_GetUIModel (const char *modelName) |
Returns pointer to UI model. | |
void | UI_DrawModelNode (struct uiNode_s *node, const char *source) |
void | UI_RegisterModelNode (struct uiBehaviour_s *behaviour) |
Definition in file ui_node_model.h.
#define UI_MAX_MODELS 128 |
< include animState_t
Definition at line 31 of file ui_node_model.h.
Referenced by UI_ParseUIModel().
typedef struct modelExtraData_s modelExtraData_t |
extradata for the model node
Model that have more than one part (top and down part of an aircraft).
void UI_DrawModelNode | ( | uiNode_t * | node, | |
const char * | source | |||
) |
< We use model extradata
Definition at line 248 of file ui_node_model.c.
References modelInfo_t::angles, animState_s::backlerp, modelInfo_t::backlerp, uiNode_s::behaviour, modelInfo_t::center, cl_genericPool, cls, uiNode_s::color, modelInfo_t::color, Com_Error(), Com_Printf(), ERR_DROP, EXTRADATA, uiNode_s::firstChild, animState_s::frame, modelInfo_t::frame, client_static_s::frametime, uiNode_s::invis, MAX_OLDREFVALUE, MAX_VAR, Mem_Free, Mem_PoolAlloc, modelInfo_t::mesh, modelInfo_t::model, modelInfo_t::name, uiNode_s::next, nullVector, animState_s::oldframe, modelInfo_t::oldframe, modelInfo_t::origin, uiNode_s::padding, Q_strncpyz(), R_AnimChange(), R_AnimGetName(), R_AnimRun(), R_CleanupDepthBuffer(), R_DrawModelDirect(), R_ModelAutoScale(), R_PopClipRect(), R_PushClipRect(), R_RegisterModelShort(), modelInfo_t::scale, uiNode_s::size, modelInfo_t::skin, UI_CheckVisibility(), UI_DrawModelNodeWithUIModel(), UI_GetNodeAbsPos(), UI_GetReferenceString(), UI_GetUIModel(), and UI_NodeInstanceOf().
Referenced by GAME_CP_DisplayItemInfo(), UI_DrawItem(), UI_ItemNodeDraw(), and UI_ModelNodeDraw().
uiModel_t* UI_GetUIModel | ( | const char * | modelName | ) |
Returns pointer to UI model.
[in] | modelName | model id from script files |
Definition at line 57 of file ui_node_model.c.
References i, uiModel_s::id, m, MAX_VAR, uiGlobal_s::models, uiGlobal_s::numModels, and ui_global.
Referenced by GAME_GetModelForItem(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), and UI_ParseUIModel().
void UI_RegisterModelNode | ( | struct uiBehaviour_s * | behaviour | ) |
Definition at line 537 of file ui_node_model.c.
References uiBehaviour_s::capturedMouseMove, uiBehaviour_s::clone, Cmd_AddCommand(), uiBehaviour_s::delete, uiBehaviour_s::draw, uiBehaviour_s::drawItselfChild, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::loaded, uiBehaviour_s::loading, uiBehaviour_s::mouseDown, uiBehaviour_s::mouseUp, uiBehaviour_s::name, uiBehaviour_s::new, uiBehaviour_s::properties, qtrue, UI_ListUIModels_f(), UI_ModelNodeCapturedMouseMove(), UI_ModelNodeClone(), UI_ModelNodeDelete(), UI_ModelNodeDraw(), UI_ModelNodeLoaded(), UI_ModelNodeLoading(), UI_ModelNodeMouseDown(), UI_ModelNodeMouseUp(), and UI_ModelNodeNew().