Add LargeVolume binding

This commit is contained in:
Matt Williams
2012-11-24 14:23:52 +00:00
parent 63e0298fbf
commit edf2bf87d4
3 changed files with 15 additions and 0 deletions

View File

@ -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.

View 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)

View File

@ -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"