OpenMoHAA ..
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
33 const char *TIKI_Anim_NameForNum(dtiki_t *pmdl, int animnum);
34 int TIKI_Anim_NumForName(dtiki_t *pmdl, const char *name);
35 int TIKI_Anim_Random(dtiki_t *pmdl, const char *name);
36 int TIKI_Anim_NumFrames(dtiki_t *pmdl, int animnum);
37 float TIKI_Anim_Time(dtiki_t *pmdl, int animnum);
38 float TIKI_Anim_Frametime(dtiki_t *pmdl, int animnum);
39
40 void TIKI_Anim_Delta(dtiki_t *pmdl, int animnum, float *delta);
41 void TIKI_Anim_AngularDelta(dtiki_t *pmdl, int animnum, float *delta);
42 qboolean TIKI_Anim_HasDelta(dtiki_t *pmdl, int animnum);
43 void TIKI_Anim_DeltaOverTime(dtiki_t *pTiki, int iAnimnum, float fTime1, float fTime2, vec3_t vDelta);
44 void TIKI_Anim_AngularDeltaOverTime(dtiki_t *pTiki, int iAnimnum, float fTime1, float fTime2, float *fDelta);
45
46 int TIKI_Anim_Flags(dtiki_t *pmdl, int animnum);
47 int TIKI_Anim_FlagsSkel(dtiki_t *pmdl, int animnum);
48
49 qboolean TIKI_Anim_HasServerCommands(dtiki_t *pmdl, int animnum);
50 qboolean TIKI_Anim_HasClientCommands(dtiki_t *pmdl, int animnum);
51 float TIKI_Anim_CrossblendTime(dtiki_t *pmdl, int animnum);
52
53 int TIKI_Anim_Compare(const char *s1, const char *s2);
54
55#ifdef __cplusplus
56}
57#endif