Add a VOLUMETYPES macro to avoid repeating ourselves.

This commit is contained in:
Matt Williams
2012-11-24 14:16:52 +00:00
parent a932d060f2
commit 63e0298fbf
4 changed files with 13 additions and 27 deletions

View File

@ -9,12 +9,4 @@
%include "Density.h"
%include "SimpleVolume.h"
%template(SimpleVolumeDensity8) PolyVox::SimpleVolume<PolyVox::Density8>;
%template(SimpleVolumeMaterial8) PolyVox::SimpleVolume<PolyVox::Material8>;
%template(SimpleVolumeMaterial16) PolyVox::SimpleVolume<PolyVox::Material16>;
%template(SimpleVolumeMaterialDensityPair44) PolyVox::SimpleVolume<PolyVox::MaterialDensityPair44>;
%template(SimpleVolumeMaterialDensityPair88) PolyVox::SimpleVolume<PolyVox::MaterialDensityPair88>;
VOLUMETYPES(SimpleVolume, PolyVox::SimpleVolume)