11 Commits

Author SHA1 Message Date
David Williams
b0a8ca8a64 This commit templatizes the vertex classes on voxel types. This was the main change which was made for Cubiquity and it's very messy at the moment. However, this will improve when we make more use of 'auto' to hide the template madness. 2014-05-07 23:47:18 +02:00
David Williams
5dfa7e2562 The CubicSurfaceExtractor now generates vertices of type PositionMaterialNormal rather than PositionMaterial. The normal property is just a dummy and is not filled in, though conceptually we could put something in there in the future (average normal of surrounding faces?)
The point of this change is to move towards having a single vertex class with known properties (including normal). This makes it simpler to write code which uses the vertices because we always know which properties are present. This will probably be useful when working with vertex buffer objects.
2014-05-05 20:53:47 +02:00
Daviw Williams
1e55859107 Renamed WrapMode::None (and others) to avoid conflict with Python reserved word 'None'. 2013-06-13 16:49:02 +02:00
Daviw Williams
6e8030f4b5 Changes to hopefully fix Linux compile problems. 2013-06-13 15:55:15 +02:00
Daviw Williams
efb6d12fc8 Eliminated dome calls to getVoxelAt. 2013-06-12 15:22:21 +02:00
Daviw Williams
7276b872c4 More work replacing getVoxelAt with getVoxel. 2013-06-12 15:03:34 +02:00
unknown
fec1191a73 Removed use of template template parameters from CubicSurfaceExtractor. 2012-05-18 15:12:30 +02:00
David Williams
6f31898fd7 Renamed Volume base class to BaseVolume.
Added initial version of simple interface.
2011-10-14 23:57:10 +01:00
David Williams
53ae3de413 Replaced GCC/VS2010 hacks with code that should compile on both platforms. 2011-07-31 08:58:52 +01:00
David Williams
5e62d639fb Compile fixes for g++. 2011-07-30 12:45:32 +01:00
David Williams
d1649c9323 More work on base Volume class and sampler.
Added new test case for creating a volume subclass.
2011-07-30 10:12:28 +01:00