Commit Graph

35 Commits

Author SHA1 Message Date
f11b4e17c1 Build only one of static or shared libraries
As discussed on the forums, to simplify the CMake code and avoid having to
manually specify dependencies this removes the hack to allow both static
and shared libraries to be built at the same time.

It introduces the new variable LIBRARY_TYPE which can be either STATIC or
DYNAMIC.

See: http://www.volumesoffun.com/phpBB3/viewtopic.php?p=3203#p3203
2012-07-19 17:33:34 +01:00
5d93eef5ac Add dependencies to SWIG bindings
Due to the hack in which we enable the building of both static and
shared libraries CMake's automatic dependency sorting isn't working.
Manually specifying the dependency seems to solve the problem of
components building out of order.
2012-07-18 20:36:55 +01:00
5b2846f3de Removed empty file voxel.h 2012-07-16 15:33:23 +02:00
b140e16083 Renamed MarchingCubesController to DefaultMarchingCubesController. 2012-07-15 23:07:00 +02:00
ea7404cdf9 Merge branch 'master' of git@gitorious.org:polyvox/polyvox.git 2012-07-15 22:10:17 +02:00
d7fc289035 Convert CMake variables from YES/NO to ON/OFF 2012-07-15 21:14:37 +01:00
2b5024591e Move some feature_summary stuff around
Move set_package_properties and add_feature_info calls around to more
sensible ordering and positions.
2012-07-15 21:10:31 +01:00
9a498bad7b Renamed SurfaceExtractionController to MarchingCubesController. 2012-07-15 17:53:37 +02:00
679d98735a Renamed SurfaceExtractor to MarchingCubesSurfaceExtractor. 2012-07-15 17:40:37 +02:00
c09335dbd0 Added SWIG interface for SurfaceExtractionController 2012-07-15 11:57:23 +02:00
23145f12e1 Use SWIG's autodoc command for simple docstrings with type information 2012-07-10 11:24:31 +01:00
11685a1874 Rename BUILD_TESTING to ENABLE_TESTS and WITH_BINDINGS to ENABLE_BINDINGS
This is for future consistency where ENABLE_ variables will denote optional
components of PolyVox and WITH_ variables denote optionally using features
provided by external libraries (e.g. OGRE compatibility).
2012-06-26 17:08:44 +01:00
49ea2e8809 Add missing file for MaterialDensityPair bindings 2012-06-22 16:50:28 +01:00
85c5b7abf0 Add all the Material, Density and MaterialDensityPair typedefs 2012-06-22 00:18:04 +01:00
869d1a8d6a Re-enable more of the bindings
This should enable enough of the bindings to be able to extract a surface
mesh.
2012-06-21 22:24:04 +01:00
c681fac66a Add option to disable building the bindings.
If you want to disable them, even if SWIG and Python were both found, set
WITH_BINDINGS to NO with -DWITH_BINDINGS=NO or in the CMake GUI.
2012-06-21 20:31:04 +01:00
5985aa5ec2 Re-enable SWIG compilation
For now only enable Vector, although some other
may work but will need testing.
2012-06-15 00:19:49 +02:00
acd3c3c791 Fix SWIG bindings
The bindings now compile and in Python a mesh can be extracted from a volume.
The only extractor currently bound is SurfaceExtractor<SimpleVolume, Material8>.

The bindings are still commented out in library/CMakeLists.txt by default.
2011-06-07 20:33:01 +02:00
7a14b9245b Fix compilation of bindings
The bindings now compile but are not complete. SWIG doesn't support
nested classes so the SimpleVolume can't be bound.
2011-05-23 22:45:50 +02:00
cb0a746b6f Update include paths for bindings to new layout. 2011-05-22 21:33:32 +02:00
1fed1c161a Fix slashes in SWIG files to fix compilation in Linux. 2011-01-28 15:23:18 +00:00
c1ebed678e More SWIG bindings. 2011-01-18 21:59:21 +00:00
36f8dc0296 More SWIG changes. 2011-01-16 20:22:49 +00:00
513b1878f1 Updated SWIG bindings, especially for C#. 2011-01-16 20:09:59 +00:00
10b44eabae Added missing file Density.i 2011-01-04 20:49:22 +00:00
f7573e7660 Work on SWIG bindings for PolyVox. 2010-12-28 11:14:55 +00:00
57ff257669 Work on SWIG bindings for PolyVox. 2010-12-28 09:52:17 +00:00
89df1c8824 Work on SWIG bindings for PolyVox. 2010-12-28 09:49:18 +00:00
26081fd4ba Got the Vector class working in Python through SWIG. 2010-12-27 11:54:49 +00:00
a4a8362dba Example builds now
Seg faults on running though
2009-03-30 13:09:23 +00:00
1fb999966f Put the bindings CMake stuff in a separate directory to keep things clean
Fully remove the if(win32) stuff from the examples
2009-03-29 23:02:03 +00:00
69751dc084 To bind a template, you must bind a specific instantiation of it. I'm binding the instantiations defined by the typedefs in Vector.h (though I have to specify them manually in SWIG).
The uint8 etc. typedefs aren't working for now though.
2009-03-29 15:36:41 +00:00
58355da40b A few more tiny steps in the right direction
Getting templates to work is the next thing
2009-03-28 13:08:29 +00:00
c65c23acf4 Use correct file extensions for python dlls
Build it as  'PolyVoxCore' module
2009-03-27 23:00:37 +00:00
27b17cf348 Extremely basic first go at SWIG bindings
Only Enums.h is wrapped so far and I haven't tested it
For now I will focus on Python but Java and C# will be useful too
2009-03-27 18:54:20 +00:00