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