Work on SWIG bindings for PolyVox.

This commit is contained in:
David Williams 2010-12-28 11:14:55 +00:00
parent 57ff257669
commit f7573e7660
5 changed files with 22 additions and 14 deletions

View File

@ -21,8 +21,8 @@ freely, subject to the following restrictions:
distribution.
*******************************************************************************/
#ifndef __PolyVox_MaterialDensityPair_H__
#define __PolyVox_MaterialDensityPair_H__
#ifndef __PolyVox_Density_H__
#define __PolyVox_Density_H__
#include "PolyVoxForwardDeclarations.h"
#include "PolyVoxImpl/TypeDef.h"
@ -85,4 +85,4 @@ namespace PolyVox
typedef Density<uint8_t> Density8;
}
#endif
#endif //__PolyVox_Density_H__

View File

@ -21,8 +21,8 @@ freely, subject to the following restrictions:
distribution.
*******************************************************************************/
#ifndef __PolyVox_MaterialDensityPair_H__
#define __PolyVox_MaterialDensityPair_H__
#ifndef __PolyVox_Material_H__
#define __PolyVox_Material_H__
#include "PolyVoxForwardDeclarations.h"
#include "PolyVoxImpl/TypeDef.h"
@ -100,4 +100,4 @@ namespace PolyVox
typedef Material<uint8_t> Material8;
}
#endif
#endif //__PolyVox_Material_H__

View File

@ -0,0 +1,8 @@
%module Material
%{
#include "Material.h"
%}
%include "Material.h"
%template(Material8) PolyVox::Material<uint8_t>;

View File

@ -1,15 +1,10 @@
%module PolyVoxCore
#define POLYVOX_API
//%include <windows.i>
//%include "TypeDef.i"
//%include "Enums.i"
//%include "PolyVoxCStdInt.i"
//%include "Utility.i"
//%include "PolyVoxForwardDeclarations.i" //Shouldn't be needed
//
%include "stdint.i"
%include "Material.i"
%include "Density.i"
%include "Vector.i"
%include "Region.i"
%include "Volume.i"

View File

@ -1,8 +1,13 @@
%module Volume
%{
#include "Material.h"
#include "Density.h"
#include "Volume.h"
%}
%include "Material.h"
%include "Density.h"
%include "Volume.h"
%template(VolumeUint16) PolyVox::Volume<unsigned int>;
%template(VolumeMaterial8) PolyVox::Volume<PolyVox::Material8>;
%template(VolumeDensity8) PolyVox::Volume<PolyVox::Density8>;