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
//typedef Volume<VoxelType> VolumeOfVoxelType; //Workaround for GCC/VS2010 differences.
//class Sampler : public VolumeOfVoxelType::template Sampler< LargeVolume<VoxelType> >
#ifndef SWIG
#if defined(_MSC_VER)
class Sampler : public BaseVolume<VoxelType>::Sampler< LargeVolume<VoxelType> > //This line works on VS2010
#else
@ -243,6 +244,7 @@ namespace PolyVox
Block<VoxelType> block;
uint32_t timestamp;
};
#endif
public:
/// 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 "SimpleVolume.i"
%include "RawVolume.i"
%include "LargeVolume.i"
//%include "TypeDef.i"
//%include "SubArray.i"
//%include "Array.i"