Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
vox_loader.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  VoxColor
 
struct  VoxVector3
 
struct  ArrayVector3
 
struct  ArrayColor
 
struct  ArrayUShort
 
struct  CubeChunk3D
 
struct  VoxArray3D
 

Macros

#define VOX_MALLOC(sz)   malloc(sz)
 
#define VOX_CALLOC(n, sz)   calloc(n,sz)
 
#define VOX_REALLOC(n, sz)   realloc(n,sz)
 
#define VOX_FREE(p)   free(p)
 
#define VOX_SUCCESS   (0)
 
#define VOX_ERROR_FILE_NOT_FOUND   (-1)
 
#define VOX_ERROR_INVALID_FORMAT   (-2)
 
#define VOX_ERROR_FILE_VERSION_TOO_OLD   (-3)
 

Functions

int Vox_LoadFromMemory (unsigned char *pvoxData, unsigned int voxDataSize, VoxArray3D *pvoxarray)
 
void Vox_FreeArrays (VoxArray3D *voxarray)
 

Macro Definition Documentation

◆ VOX_CALLOC

#define VOX_CALLOC (   n,
  sz 
)    calloc(n,sz)

Definition at line 58 of file vox_loader.h.

◆ VOX_ERROR_FILE_NOT_FOUND

#define VOX_ERROR_FILE_NOT_FOUND   (-1)

Definition at line 68 of file vox_loader.h.

◆ VOX_ERROR_FILE_VERSION_TOO_OLD

#define VOX_ERROR_FILE_VERSION_TOO_OLD   (-3)

Definition at line 70 of file vox_loader.h.

◆ VOX_ERROR_INVALID_FORMAT

#define VOX_ERROR_INVALID_FORMAT   (-2)

Definition at line 69 of file vox_loader.h.

◆ VOX_FREE

#define VOX_FREE (   p)    free(p)

Definition at line 64 of file vox_loader.h.

◆ VOX_MALLOC

#define VOX_MALLOC (   sz)    malloc(sz)

Definition at line 55 of file vox_loader.h.

◆ VOX_REALLOC

#define VOX_REALLOC (   n,
  sz 
)    realloc(n,sz)

Definition at line 61 of file vox_loader.h.

◆ VOX_SUCCESS

#define VOX_SUCCESS   (0)

Definition at line 67 of file vox_loader.h.

Function Documentation

◆ Vox_FreeArrays()

void Vox_FreeArrays ( VoxArray3D voxarray)

◆ Vox_LoadFromMemory()

int Vox_LoadFromMemory ( unsigned char *  pvoxData,
unsigned int  voxDataSize,
VoxArray3D pvoxarray 
)