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

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

Classes

struct  SchematicPalette
 Palette struct for entries of Mineways single color voxel conversion table. More...
 

Public Types

typedef FastPODTable< Point3int16, uint8, HashTrait< Point3int16 >, EqualsTrait< Point3int16 >, true > BlockIDVoxels
 
typedef FastPODTable< Point3int16, Color4unorm8, HashTrait< Point3int16 >, EqualsTrait< Point3int16 >, true > ColorVoxels
 

Public Member Functions

void getSparseVoxelTable (BlockIDVoxels &voxel) const
 
void getSparseVoxelTable (ColorVoxels &voxel) const
 
void parse (const String &filename)
 
void parseSchematicTag (BinaryInput &bi, int processTagType=-1)
 

Static Public Member Functions

static Color4unorm8 schematicBlockColor (uint8 blockIndex)
 

Public Attributes

Array< uint8blockData
 4-bit lighting data More...
 
Array< uint8blockID
 Raw data grid in YZX-major order. More...
 
String materials
 
Point3int32 size
 

Detailed Description

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

Member Typedef Documentation

◆ BlockIDVoxels

◆ ColorVoxels

Member Function Documentation

◆ getSparseVoxelTable() [1/2]

void G3D::ParseSchematic::getSparseVoxelTable ( BlockIDVoxels voxel) const

◆ getSparseVoxelTable() [2/2]

void G3D::ParseSchematic::getSparseVoxelTable ( ColorVoxels voxel) const

◆ parse()

void G3D::ParseSchematic::parse ( const String filename)

◆ parseSchematicTag()

void G3D::ParseSchematic::parseSchematicTag ( BinaryInput bi,
int  processTagType = -1 
)

◆ schematicBlockColor()

static Color4unorm8 G3D::ParseSchematic::schematicBlockColor ( uint8  blockIndex)
static

Member Data Documentation

◆ blockData

Array<uint8> G3D::ParseSchematic::blockData

4-bit lighting data

◆ blockID

Array<uint8> G3D::ParseSchematic::blockID

Raw data grid in YZX-major order.

◆ materials

String G3D::ParseSchematic::materials

◆ size

Point3int32 G3D::ParseSchematic::size

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