Support Forum       G3D Web Page     
Classes | Public Member Functions | Public Attributes | List of all members
G3D::ParseVOX Class Reference

Parser for the MagicaVoxel sparse voxel format http://ephtracy.github.io/index.html?page=mv_vox_format. More...

Classes

class  Voxel
 

Public Member Functions

void parse (const char *ptr, size_t len)
 
void parse (BinaryInput &bi)
 

Public Attributes

Color4unorm8 palette [256]
 These are shifted from the file format, so that palette[0] is always transparent black and palette[1] is the first value from the palette file. More...
 
Vector3int32 size
 
Array< Voxelvoxel
 

Detailed Description

Parser for the MagicaVoxel sparse voxel format http://ephtracy.github.io/index.html?page=mv_vox_format.

Member Function Documentation

◆ parse() [1/2]

void G3D::ParseVOX::parse ( const char *  ptr,
size_t  len 
)

◆ parse() [2/2]

void G3D::ParseVOX::parse ( BinaryInput bi)

Member Data Documentation

◆ palette

Color4unorm8 G3D::ParseVOX::palette[256]

These are shifted from the file format, so that palette[0] is always transparent black and palette[1] is the first value from the palette file.

◆ size

Vector3int32 G3D::ParseVOX::size

◆ voxel

Array<Voxel> G3D::ParseVOX::voxel

documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15