Fix compilation of bindings
The bindings now compile but are not complete. SWIG doesn't support nested classes so the SimpleVolume can't be bound.
This commit is contained in:
parent
fc3682caa6
commit
7a14b9245b
@ -37,7 +37,7 @@ namespace PolyVox
|
||||
{
|
||||
public:
|
||||
|
||||
const static Region MaxRegion;
|
||||
static const Region MaxRegion;
|
||||
|
||||
Region();
|
||||
Region(const Vector3DInt32& v3dLowerCorner, const Vector3DInt32& v3dUpperCorner);
|
||||
|
@ -5,9 +5,9 @@ if(SWIG_FOUND)
|
||||
find_package(PythonLibs)
|
||||
include_directories(${PYTHON_INCLUDE_PATH})
|
||||
include_directories(${PolyVoxCore_SOURCE_DIR}/include ${PolyVoxCore_SOURCE_DIR}/include/PolyVoxCore)
|
||||
link_directories(${PolyVoxCore_BINARY_DIR})
|
||||
|
||||
set(CMAKE_SWIG_FLAGS "")
|
||||
add_definitions(-DSWIG)
|
||||
set_source_files_properties(PolyVoxCore.i PROPERTIES CPLUSPLUS ON)
|
||||
|
||||
swig_add_module(PolyVoxCore python PolyVoxCore.i)
|
||||
|
@ -5,5 +5,5 @@
|
||||
|
||||
%include "SimpleVolume.h"
|
||||
|
||||
%template(SimpleVolumeSamplerMaterial8) PolyVox::SimpleVolumeSampler<PolyVox::Material8>;
|
||||
%template(SimpleVolumeSamplerDensity8) PolyVox::SimpleVolumeSampler<PolyVox::Density8>;
|
||||
%template(SimpleVolumeSamplerMaterial8) PolyVox::SimpleVolume::Sampler<PolyVox::Material8>;
|
||||
%template(SimpleVolumeSamplerDensity8) PolyVox::SimpleVolume::Sampler<PolyVox::Density8>;
|
Loading…
x
Reference in New Issue
Block a user