Work on SWIG bindings for PolyVox.

This commit is contained in:
David Williams
2010-12-28 09:49:18 +00:00
parent 26081fd4ba
commit 89df1c8824
4 changed files with 15 additions and 7 deletions

View File

@ -29,7 +29,11 @@ freely, subject to the following restrictions:
namespace PolyVox
{
#ifdef SWIG
class Region
#else
class POLYVOXCORE_API Region
#endif
{
public:
Region();

View File

@ -153,7 +153,7 @@ namespace PolyVox
///Resises the volume to the specified dimensions
void resize(uint16_t uWidth, uint16_t uHeight, uint16_t uDepth, uint16_t uBlockSideLength = 32);
void tidyUpMemory(uint32_t uNoOfBlocksToProcess = (std::numeric_limits<uint32_t>::max)());
void tidyUpMemory(uint32_t uNoOfBlocksToProcess = 1000000);
private:
polyvox_shared_ptr< Block<VoxelType> > getHomogenousBlock(VoxelType tHomogenousValue);