mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-29 23:42:38 +00:00
29 lines
564 B
C
29 lines
564 B
C
|
#pragma once
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
#define MC_BITS_X (16)
|
||
|
#define MC_BITS_Y (16)
|
||
|
#define MC_BITS_Z (16)
|
||
|
#define MC_BITS_VECT (16)
|
||
|
|
||
|
#define MC_SCALE_X (1.0f/64)
|
||
|
#define MC_SCALE_Y (1.0f/64)
|
||
|
#define MC_SCALE_Z (1.0f/64)
|
||
|
|
||
|
|
||
|
// currently 24 (.875)
|
||
|
#define MC_COMP_BYTES (((MC_BITS_X+MC_BITS_Y+MC_BITS_Z+MC_BITS_VECT*9)+7)/8)
|
||
|
|
||
|
void MC_Compress(const float mat[3][4],unsigned char * comp);
|
||
|
void MC_UnCompress(float mat[3][4],const unsigned char * comp);
|
||
|
void MC_UnCompressQuat(float mat[3][4],const unsigned char * comp);
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|