From 57ff2576696d54b1139fa6746d00eb7e92dd8371 Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 28 Dec 2010 09:52:17 +0000 Subject: [PATCH] Work on SWIG bindings for PolyVox. --- library/bindings/Enums.i | 6 ------ library/bindings/PolyVoxCStdInt.i | 6 ------ library/bindings/PolyVoxForwardDeclarations.i | 6 ------ library/bindings/Region.i | 7 +++++++ library/bindings/TypeDef.i | 6 ------ library/bindings/Utility.i | 6 ------ library/bindings/Volume.i | 8 ++++++++ 7 files changed, 15 insertions(+), 30 deletions(-) delete mode 100644 library/bindings/Enums.i delete mode 100644 library/bindings/PolyVoxCStdInt.i delete mode 100644 library/bindings/PolyVoxForwardDeclarations.i create mode 100644 library/bindings/Region.i delete mode 100644 library/bindings/TypeDef.i delete mode 100644 library/bindings/Utility.i create mode 100644 library/bindings/Volume.i diff --git a/library/bindings/Enums.i b/library/bindings/Enums.i deleted file mode 100644 index f2ab9d0b..00000000 --- a/library/bindings/Enums.i +++ /dev/null @@ -1,6 +0,0 @@ -%module Enums -%{ -#include "PolyVoxCore/Enums.h" -%} - -%include "PolyVoxCore/Enums.h" diff --git a/library/bindings/PolyVoxCStdInt.i b/library/bindings/PolyVoxCStdInt.i deleted file mode 100644 index aac4c29d..00000000 --- a/library/bindings/PolyVoxCStdInt.i +++ /dev/null @@ -1,6 +0,0 @@ -%module PolyVoxCStdInt -%{ -#include "PolyVoxCore/PolyVoxCStdInt.h" -%} - -%include "PolyVoxCore/PolyVoxCStdInt.h" diff --git a/library/bindings/PolyVoxForwardDeclarations.i b/library/bindings/PolyVoxForwardDeclarations.i deleted file mode 100644 index 9a991630..00000000 --- a/library/bindings/PolyVoxForwardDeclarations.i +++ /dev/null @@ -1,6 +0,0 @@ -%module PolyVoxForwardDeclarations -%{ -#include "PolyVoxCore/PolyVoxForwardDeclarations.h" -%} - -%include "PolyVoxCore/PolyVoxForwardDeclarations.h" diff --git a/library/bindings/Region.i b/library/bindings/Region.i new file mode 100644 index 00000000..4037a84f --- /dev/null +++ b/library/bindings/Region.i @@ -0,0 +1,7 @@ +%module Region +%{ +#define SWIG_DAVID +#include "Region.h" +%} + +%include "Region.h" \ No newline at end of file diff --git a/library/bindings/TypeDef.i b/library/bindings/TypeDef.i deleted file mode 100644 index e2dd1f9a..00000000 --- a/library/bindings/TypeDef.i +++ /dev/null @@ -1,6 +0,0 @@ -%module TypeDef -%{ -#include "PolyVoxCore/TypeDef.h" -%} - -%include "PolyVoxCore/TypeDef.h" diff --git a/library/bindings/Utility.i b/library/bindings/Utility.i deleted file mode 100644 index f61fc5d6..00000000 --- a/library/bindings/Utility.i +++ /dev/null @@ -1,6 +0,0 @@ -%module Utility -%{ -#include "PolyVoxCore/Utility.h" -%} - -%include "PolyVoxCore/Utility.h" diff --git a/library/bindings/Volume.i b/library/bindings/Volume.i new file mode 100644 index 00000000..2a6720c9 --- /dev/null +++ b/library/bindings/Volume.i @@ -0,0 +1,8 @@ +%module Volume +%{ +#include "Volume.h" +%} + +%include "Volume.h" + +%template(VolumeUint16) PolyVox::Volume;