Add LargeVolume binding
This commit is contained in:
@ -166,6 +166,7 @@ namespace PolyVox
|
|||||||
//in the future
|
//in the future
|
||||||
//typedef Volume<VoxelType> VolumeOfVoxelType; //Workaround for GCC/VS2010 differences.
|
//typedef Volume<VoxelType> VolumeOfVoxelType; //Workaround for GCC/VS2010 differences.
|
||||||
//class Sampler : public VolumeOfVoxelType::template Sampler< LargeVolume<VoxelType> >
|
//class Sampler : public VolumeOfVoxelType::template Sampler< LargeVolume<VoxelType> >
|
||||||
|
#ifndef SWIG
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
class Sampler : public BaseVolume<VoxelType>::Sampler< LargeVolume<VoxelType> > //This line works on VS2010
|
class Sampler : public BaseVolume<VoxelType>::Sampler< LargeVolume<VoxelType> > //This line works on VS2010
|
||||||
#else
|
#else
|
||||||
@ -243,6 +244,7 @@ namespace PolyVox
|
|||||||
Block<VoxelType> block;
|
Block<VoxelType> block;
|
||||||
uint32_t timestamp;
|
uint32_t timestamp;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// Constructor for creating a very large paging volume.
|
/// Constructor for creating a very large paging volume.
|
||||||
|
12
library/bindings/LargeVolume.i
Normal file
12
library/bindings/LargeVolume.i
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
%module LargeVolume
|
||||||
|
%{
|
||||||
|
#include "Material.h"
|
||||||
|
#include "Density.h"
|
||||||
|
#include "LargeVolume.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
%include "Material.h"
|
||||||
|
%include "Density.h"
|
||||||
|
%include "LargeVolume.h"
|
||||||
|
|
||||||
|
VOLUMETYPES(LargeVolume, PolyVox::LargeVolume)
|
@ -50,6 +50,7 @@ const char* __str__() {
|
|||||||
%include "BaseVolume.i"
|
%include "BaseVolume.i"
|
||||||
%include "SimpleVolume.i"
|
%include "SimpleVolume.i"
|
||||||
%include "RawVolume.i"
|
%include "RawVolume.i"
|
||||||
|
%include "LargeVolume.i"
|
||||||
//%include "TypeDef.i"
|
//%include "TypeDef.i"
|
||||||
//%include "SubArray.i"
|
//%include "SubArray.i"
|
||||||
//%include "Array.i"
|
//%include "Array.i"
|
||||||
|
Reference in New Issue
Block a user