-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrn_decomp.cpp
40 lines (34 loc) · 1.09 KB
/
crn_decomp.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#if !defined(__APPLE__)
#include <malloc.h>
#ifdef _WIN32
#define malloc_usable_size _msize
#endif
#endif
#include "crn_decomp.h"
extern "C" {
bool crnd_get_level_info(const void *pData, crnd::uint32 data_size, crnd::uint32 level_index, crnd::crn_level_info *pLevel_info)
{
return crnd::crnd_get_level_info(pData, data_size, level_index, pLevel_info);
}
bool crnd_get_texture_info(const void *pData, crnd::uint32 data_size, crnd::crn_texture_info *pTexture_info)
{
return crnd::crnd_get_texture_info(pData, data_size, pTexture_info);
}
void *crnd_unpack_begin(const void *pData, crnd::uint32 data_size)
{
return crnd::crnd_unpack_begin(pData, data_size);
}
bool crnd_unpack_end(crnd::crnd_unpack_context pContext)
{
return crnd::crnd_unpack_end(pContext);
}
bool crnd_unpack_level(
crnd::crnd_unpack_context pContext,
void **ppDst, crnd::uint32 dst_size_in_bytes, crnd::uint32 row_pitch_in_bytes,
crnd::uint32 level_index)
{
return crnd::crnd_unpack_level(pContext, ppDst, dst_size_in_bytes, row_pitch_in_bytes, level_index);
}
}