Re-enable more of the bindings

This should enable enough of the bindings to be able to extract a surface
mesh.
This commit is contained in:
Matt Williams
2012-06-21 22:24:04 +01:00
parent d79b1006f3
commit 869d1a8d6a
5 changed files with 61 additions and 41 deletions

View File

@ -1,30 +1,11 @@
%module SurfaceExtractor
%{
#include "SimpleVolume.h"
#include "Material.h"
#include "SurfaceExtractor.h"
#include "PolyVoxCore/Material.h"
namespace PolyVox
{
class SurfaceExtractorSimpleVolumeMaterial8 : public SurfaceExtractor<SimpleVolume, Material8>
{
public:
SurfaceExtractorSimpleVolumeMaterial8(SimpleVolume<Material8>* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result)
: SurfaceExtractor<SimpleVolume, Material8>(volData, region, result) {}
void execute() { SurfaceExtractor<SimpleVolume, Material8>::execute(); }
};
};
%}
%include "SimpleVolume.h"
%include "SurfaceExtractor.h"
namespace PolyVox
{
class SurfaceExtractorSimpleVolumeMaterial8 : public SurfaceExtractor<SimpleVolume, Material8>
{
public:
SurfaceExtractorSimpleVolumeMaterial8(SimpleVolume<Material8>* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result);
void execute();
};
};
%template(SurfaceExtractorSimpleVolumeDensity8) PolyVox::SurfaceExtractor<PolyVox::SimpleVolume<PolyVox::Density8> >;