OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
tiki_files.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_files.h : TIKI Files
24
25#pragma once
26
27#include "../qcommon/tiki.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33 extern qboolean tiki_loading;
34
35 extern cvar_t *dumploadedanims;
36 extern cvar_t *low_anim_memory;
37 extern cvar_t *showLoad;
38 extern cvar_t *convertAnims;
39
40 extern dloaddef_t loaddef;
41
42 void TIKI_FreeStorage(dloaddef_t *ld);
43 void *TIKI_AllocateLoadData(size_t length);
44 qboolean TIKI_AliasExists(dloaddef_t* ld, const char* name);
45 void TIKI_AddDefaultIdleAnim(dloaddef_t* ld);
46 char *TIKI_CopyString(const char *s);
47 dtikianim_t *TIKI_LoadTikiAnim(const char *path);
48
49#ifdef __cplusplus
50 dtiki_t *TIKI_LoadTikiModel(dtikianim_t *tikianim, const char *name, con_map<str, str> *keyValues);
51#endif
52
53 void TIKI_CalcRadius(dtiki_t *tiki);
54 skelAnimDataGameHeader_t *SkeletorCacheFileCallback(const char *path);
55 skelAnimDataGameHeader_t *SkeletorCacheGetData(int index);
56
57#ifdef __cplusplus
58 bool SkeletorCacheFindFilename(const char *path, int *indexPtr);
59 bool SkeletorCacheLoadData(const char *path, bool precache, int newIndex);
60 void SkeletorCacheUnloadData(int index);
61 void SkeletorCacheCleanCache();
62 void TikiAddToBounds(dtikianim_t *tiki, SkelVec3 *newBounds);
63#endif
64
65 void TIKI_AnimList_f();
66 void TIKI_FixFrameNum(dtikianim_t *ptiki, skelAnimDataGameHeader_t *animData, dtikicmd_t *cmd, const char *alias);
67 void TIKI_LoadAnim(dtikianim_t *ptiki);
68 dtikianim_t *TIKI_InitTiki(dloaddef_t *ld, size_t defsize);
69 void TIKI_RemoveTiki(dtikianim_t *ptiki);
70
71#ifdef __cplusplus
72}
73#endif
Definition con_set.h:547
Definition SkelVec3.h:197