OpenMoHAA 0.82.1
Loading...
Searching...
No Matches
tiki_skel.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_skel.h : TIKI Skeletor
24
25#pragma once
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31 void TIKI_CacheFileSkel(skelHeader_t *pHeader, skelcache_t *cache, int length);
32 void TIKI_CalcLodConsts(lodControl_t *LOD);
33 qboolean TIKI_LoadSKB(const char *path, skelcache_t *cache);
34 qboolean TIKI_LoadSKD(const char *path, skelcache_t *cache);
35 skelHeaderGame_t *TIKI_GetSkel(int index);
36 int TIKI_GetSkelCache(skelHeaderGame_t *pSkel);
37 void TIKI_FreeSkel(int index);
38 void TIKI_FreeSkelCache(skelcache_t *cache);
39 skelcache_t *TIKI_FindSkel(const char *path);
40 skelcache_t *TIKI_FindSkelByHeader(skelHeaderGame_t *skelmodel);
41 skelcache_t *TIKI_FindFreeSkel(void);
42 int TIKI_RegisterSkel(const char *path, dtiki_t *tiki);
43
44 void SaveLODFile(const char *path, lodControl_t *LOD);
45 void GetLODFile(skelcache_t *cache);
46
47#ifdef __cplusplus
48}
49#endif
Definition tiki_shared.h:198
Definition tiki_shared.h:426