vox-d 0.0.2
vox-d is a library to load VOX voxel files (used by eg. MagicaVoxel).
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
What's this?
vox-d is a library to load VOX voxel files (used by eg. MagicaVoxel).
Licenses
See UNLICENSE.txt
Usage
import std.stdio;
import voxd;
void main()
{
VOX model = decodeVOX("dragon.vox");
writefln("width = %s", model.width);
writefln("height = %s", model.height);
writefln("depth = %s", model.depth);
writefln("That makes %s voxels total", model.numVoxels());
VoxColor color = model.voxel(0, 1, 2);
writefln("voxel (0, 1, 2) has color (r = %s, g = %s, b = %s, a = %s)", color.r, color.g, color.b, color.a);
}
- Registered by ponce
- 0.0.2 released 10 years ago
- p0nce/vox-d
- github.com/p0nce/vox-d/
- public domain
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2021-Apr-30 0.0.5 2015-May-17 0.0.4 2015-May-17 0.0.3 2015-May-17 0.0.2 2014-Aug-03 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
285 downloads total
-
- Score:
- 1.0
- Short URL:
- vox-d.dub.pm