30 #define LOOPNEXT(x) ((x + 1 < MAX_ANIMLIST) ? x + 1 : 0)
47 #define R_AnimGetAliasAnim(mod, as) ((mod)->alias.animdata + (as)->list[(as)->lcur])
67 for (i = 0, anim = mod->
alias.
animdata; i < mod->alias.num_anims; i++, anim++)
89 Com_Printf(
"R_AnimAppend: No model given (%s)\n", name);
94 Com_Printf(
"R_AnimAppend: Model with no animations (%s) (model: %s)\n", name, mod->
name);
101 Com_Printf(
"R_AnimAppend: No such animation: %s (model: %s)\n", name, mod->
name);
108 if (anim->
to > anim->
from)
139 Com_Printf(
"R_AnimChange: No model given (%s)\n", name);
144 Com_Printf(
"R_AnimChange: Model with no animations (%s) (model: %s)\n", name, mod->
name);
151 Com_Printf(
"R_AnimChange: No such animation: %s (model: %s)\n", name, mod->
name);
158 if (anim->
to > anim->
from)
204 while (as->
dt > as->
time) {
static const mAliasAnim_t * R_AnimGet(const model_t *mod, const char *name)
Searches a given animation id in the given model data.
#define R_AnimGetAliasAnim(mod, as)
Get the mAliasAnim_t for the given animation state.
local graphics definitions
void Com_Printf(const char *const fmt,...)
static void R_AnimAdd(animState_t *as, const model_t *mod, const mAliasAnim_t *anim)
Adds the given animation to the animation state.
void R_AnimChange(animState_t *as, const model_t *mod, const char *name)
Changes the animation for md2 models.
void R_AnimRun(animState_t *as, const model_t *mod, int msec)
Run the animation of the given model.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
const char * R_AnimGetName(const animState_t *as, const model_t *mod)
Get the current running animation for a model.
void R_AnimAppend(animState_t *as, const model_t *mod, const char *name)
Appends a new animation to the current running one.