VMan  1.0
Library for voxel managment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
vmanLayer Struct Reference

#include <vman.h>

+ Collaboration diagram for vmanLayer:

Public Attributes

const char * name
 
int voxelSize
 
int revision
 
void(* serializeFn )(const void *source, void *destination, int count)
 
void(* deserializeFn )(const void *source, void *destination, int count)
 

Detailed Description

Definition at line 63 of file vman.h.

Member Data Documentation

const char* name

Name of the layer, used to identify it.

May use up to VMAN_MAX_LAYER_NAME_LENGTH characters.

Definition at line 69 of file vman.h.

int voxelSize

Bytes single voxel of this layer occupies.

Definition at line 74 of file vman.h.

int revision

Revision number.

Definition at line 79 of file vman.h.

void(* serializeFn)(const void *source, void *destination, int count)

Used to convert voxels in a portable representation.

(e.g. when saving them to disk) Serialize to little endian, since most target machines use it and results in a noop there. Amount of voxels that are affected. Length of source and destination is computed by bytes*count.

Definition at line 86 of file vman.h.

void(* deserializeFn)(const void *source, void *destination, int count)

Used to convert voxels from their portable representation.

(e.g. when loading them from disk) Deserialize from little endian, since most target machines use it and results in a noop there. Amount of voxels that are affected. Length of source and destination is computed by bytes*count.

Definition at line 93 of file vman.h.


The documentation for this struct was generated from the following file: