Work on SWIG bindings for PolyVox.
This commit is contained in:
parent
57ff257669
commit
f7573e7660
@ -21,8 +21,8 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef __PolyVox_MaterialDensityPair_H__
|
#ifndef __PolyVox_Density_H__
|
||||||
#define __PolyVox_MaterialDensityPair_H__
|
#define __PolyVox_Density_H__
|
||||||
|
|
||||||
#include "PolyVoxForwardDeclarations.h"
|
#include "PolyVoxForwardDeclarations.h"
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
@ -85,4 +85,4 @@ namespace PolyVox
|
|||||||
typedef Density<uint8_t> Density8;
|
typedef Density<uint8_t> Density8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif //__PolyVox_Density_H__
|
||||||
|
@ -21,8 +21,8 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef __PolyVox_MaterialDensityPair_H__
|
#ifndef __PolyVox_Material_H__
|
||||||
#define __PolyVox_MaterialDensityPair_H__
|
#define __PolyVox_Material_H__
|
||||||
|
|
||||||
#include "PolyVoxForwardDeclarations.h"
|
#include "PolyVoxForwardDeclarations.h"
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
@ -100,4 +100,4 @@ namespace PolyVox
|
|||||||
typedef Material<uint8_t> Material8;
|
typedef Material<uint8_t> Material8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif //__PolyVox_Material_H__
|
||||||
|
8
library/bindings/Material.i
Normal file
8
library/bindings/Material.i
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
%module Material
|
||||||
|
%{
|
||||||
|
#include "Material.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
%include "Material.h"
|
||||||
|
|
||||||
|
%template(Material8) PolyVox::Material<uint8_t>;
|
@ -1,15 +1,10 @@
|
|||||||
%module PolyVoxCore
|
%module PolyVoxCore
|
||||||
|
|
||||||
#define POLYVOX_API
|
#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 "stdint.i"
|
||||||
|
%include "Material.i"
|
||||||
|
%include "Density.i"
|
||||||
%include "Vector.i"
|
%include "Vector.i"
|
||||||
%include "Region.i"
|
%include "Region.i"
|
||||||
%include "Volume.i"
|
%include "Volume.i"
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
%module Volume
|
%module Volume
|
||||||
%{
|
%{
|
||||||
|
#include "Material.h"
|
||||||
|
#include "Density.h"
|
||||||
#include "Volume.h"
|
#include "Volume.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%include "Material.h"
|
||||||
|
%include "Density.h"
|
||||||
%include "Volume.h"
|
%include "Volume.h"
|
||||||
|
|
||||||
%template(VolumeUint16) PolyVox::Volume<unsigned int>;
|
%template(VolumeMaterial8) PolyVox::Volume<PolyVox::Material8>;
|
||||||
|
%template(VolumeDensity8) PolyVox::Volume<PolyVox::Density8>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user