OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
tiki_anim.h
1/*
2===========================================================================
3Copyright (C) 2023 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23// tiki_anim.h : TIKI Anim
24
25#pragma once
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31 void TIKI_GetAnimOrder(dloaddef_t *ld, int *order);
32 const char *TIKI_Anim_NameForNum(dtiki_t *pmdl, int animnum);
33 int TIKI_Anim_NumForName(dtiki_t *pmdl, const char *name);
34 int TIKI_Anim_Random(dtiki_t *pmdl, const char *name);
35 int TIKI_Anim_NumFrames(dtiki_t *pmdl, int animnum);
36 float TIKI_Anim_Time(dtiki_t *pmdl, int animnum);
37 float TIKI_Anim_Frametime(dtiki_t *pmdl, int animnum);
38 void TIKI_Anim_Delta(dtiki_t *pmdl, int animnum, float *delta);
39 void TIKI_Anim_AngularDelta(dtiki_t *pmdl, int animnum, float *delta);
40 qboolean TIKI_Anim_HasDelta(dtiki_t *pmdl, int animnum);
41 void TIKI_Anim_DeltaOverTime(dtiki_t *pTiki, int iAnimnum, float fTime1, float fTime2, vec3_t vDelta);
42 void TIKI_Anim_AngularDeltaOverTime(dtiki_t *pTiki, int iAnimnum, float fTime1, float fTime2, float *fDelta);
43 int TIKI_Anim_Flags(dtiki_t *pmdl, int animnum);
44 int TIKI_Anim_FlagsSkel(dtiki_t *pmdl, int animnum);
45 qboolean TIKI_Anim_HasServerCommands(dtiki_t *pmdl, int animnum);
46 qboolean TIKI_Anim_HasClientCommands(dtiki_t *pmdl, int animnum);
47 float TIKI_Anim_CrossblendTime(dtiki_t *pmdl, int animnum);
48
49#ifdef __cplusplus
50}
51#endif