More SWIG changes.

This commit is contained in:
David Williams 2011-01-16 20:22:49 +00:00
parent 513b1878f1
commit 36f8dc0296
2 changed files with 9 additions and 1 deletions

View File

@ -15,6 +15,7 @@
%rename(divisionAssignment) operator/=;
%include "stdint.i"
%include "std_vector.i"
%include "Material.i"
%include "Density.i"
%include "Vector.i"

View File

@ -9,5 +9,12 @@
%include "VertexTypes.h"
%include "SurfaceMesh.h"
//%template(VertexTypeVector) std::vector<PolyVox::VertexType>;
%template(PositionMaterialVector) std::vector<PolyVox::PositionMaterial>;
%template(PositionMaterialNormalVector) std::vector<PolyVox::PositionMaterialNormal>;
%template(LodRecordVector) std::vector<PolyVox::LodRecord>;
%template(uint8Vector) std::vector<uint8_t>;
%template(uint32Vector) std::vector<uint32_t>;
%template(SurfaceMeshPositionMaterial) PolyVox::SurfaceMesh<PolyVox::PositionMaterial>;
%template(SurfaceMeshPositionMaterialNormal) PolyVox::SurfaceMesh<PolyVox::PositionMaterialNormal>;