From 36f8dc0296fed1f148332485d8d3748279f676c1 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 16 Jan 2011 20:22:49 +0000 Subject: [PATCH] More SWIG changes. --- library/bindings/PolyVoxCore.i | 3 ++- library/bindings/SurfaceMesh.i | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/library/bindings/PolyVoxCore.i b/library/bindings/PolyVoxCore.i index 9b43810d..94dc8087 100644 --- a/library/bindings/PolyVoxCore.i +++ b/library/bindings/PolyVoxCore.i @@ -15,6 +15,7 @@ %rename(divisionAssignment) operator/=; %include "stdint.i" +%include "std_vector.i" %include "Material.i" %include "Density.i" %include "Vector.i" @@ -24,4 +25,4 @@ %include "VertexTypes.i" %include "SurfaceMesh.i" %include "VolumeSampler.i" -%include "SurfaceExtractor.i" +%include "SurfaceExtractor.i" \ No newline at end of file diff --git a/library/bindings/SurfaceMesh.i b/library/bindings/SurfaceMesh.i index 1a87085a..a8df1588 100644 --- a/library/bindings/SurfaceMesh.i +++ b/library/bindings/SurfaceMesh.i @@ -9,5 +9,12 @@ %include "VertexTypes.h" %include "SurfaceMesh.h" +//%template(VertexTypeVector) std::vector; +%template(PositionMaterialVector) std::vector; +%template(PositionMaterialNormalVector) std::vector; +%template(LodRecordVector) std::vector; +%template(uint8Vector) std::vector; +%template(uint32Vector) std::vector; + %template(SurfaceMeshPositionMaterial) PolyVox::SurfaceMesh; %template(SurfaceMeshPositionMaterialNormal) PolyVox::SurfaceMesh; \ No newline at end of file