Commit Graph

112 Commits

Author SHA1 Message Date
4478e365c9 Removed RLECompressor as the code is now in RLEBlockCompressor.
Things are starting to get back under control. All tests pass, and all examples except PagingExample work.
2013-07-30 17:01:27 +02:00
d1138dcdb1 Some new block compression code as I rework the previous code... 2013-07-30 16:01:03 +02:00
a4fc814a51 Rearranging and renaming some code. 2013-07-29 16:04:01 +02:00
f54532a905 Started moving compression code into separate class. 2013-07-26 16:00:29 +02:00
1064ea1c47 Stripped out unused code. 2013-06-26 22:14:01 +02:00
20db75fb75 Added null pointer check.
Added files to CMakeLists.txt
2013-06-22 07:24:19 +02:00
1010052ea6 Reworking the logging system. 2013-05-14 16:52:16 +02:00
f98959f92a Add a new pickVoxel function.
Hopefully this pickVoxel function will fulfil most most need with
raycasting which aren't covered by the existing raycast functions.

It's essentially a wrapper around the current functions, using a custom
functor to store the position of a solid voxel as well as the previous
empty voxel. It doesn't require the user to provide a functor of their own,
just the value that they've assigned to empty voxels.

As well as the function itself, we also have a unit test as well as it
being built in the bindings.
2013-05-01 22:28:46 +01:00
23042c3fcb Moved warning suppression into the relevant file so that it's not global. 2013-03-04 16:00:43 +01:00
36676433be Work on compression interface. 2013-01-31 15:54:04 +01:00
a1cdf78250 Block now working with new MinizCompressor. Removing some old compression code. 2013-01-30 16:49:06 +01:00
804a766037 Added my two new compressor classes - one based on Miniz and the other based on RLE. 2013-01-30 16:04:47 +01:00
c7937b176d Very bad (but functional!) initial implementation of LargeVolume compression with miniz. 2013-01-10 16:20:29 +01:00
9273094ebd Added config.h to control exceptions and asserts. 2012-12-29 22:56:15 +01:00
161835f42b Boost is no longer needed if <cstdint> is not found. 2012-12-29 22:26:21 +01:00
ed614802fe Merge branch 'develop' of https://bitbucket.org/volumesoffun/polyvox into develop 2012-12-29 14:07:11 +00:00
4f7a6256a9 The throwing of exceptions can now be disabled, and in this case a handler function is called instead. 2012-12-29 00:11:23 +00:00
cc0b3ae2c0 Merge branch 'develop' into feature/error-handling 2012-12-26 17:18:42 +00:00
9e7bb75687 Disable the C++11 feature detection on Visual Studio
There seems to be a bug in the interaction between CMake and Visual Studio
which floods the 'recent projects' list with the TRY_COMPILE projects.

If in the future this is fixed then it can re-enabled.
2012-12-26 15:40:59 +00:00
bc8240fe63 These checks are no longer needed since it's checked in the top level file 2012-12-26 15:09:54 +00:00
f5ea8878c2 Add a default CompilerCapabilities.h
This file assumes that the compiler doesn't support anything. If building
without CMake, it will be used and if you want to enable things, the file
can be edited.

When using CMake, a proper CompilerCapabilites.h will be generated and
CMake will set the include path order correctly in order to source the
correct file.
2012-12-26 12:54:52 +00:00
e17271a2c7 Work on new asserts. 2012-12-26 10:34:09 +00:00
c78a8595fb Initial work on new assert macro. 2012-12-26 01:33:05 +00:00
74f25eac23 Merge branch 'develop' into feature/cmake-cxx11-detect
Conflicts:
	examples/Basic/CMakeLists.txt
	examples/OpenGL/CMakeLists.txt
	examples/Paging/CMakeLists.txt
	examples/SmoothLOD/CMakeLists.txt
	library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h
2012-12-24 20:08:31 +00:00
7e38fc135e Removed features which were deprecated in release 0.2. 2012-12-03 21:22:57 +01:00
3902e00a0f Add a CompilerCapabilities.h.in file which is filled in by CMake
It will #define a each of the basic features detected by CMake which can
then be used by other headers (like TypeDef.h) to set things up for
PolyVox.

It is this file which you will have to manually edit and rename if you want
to skip using CMake.
2012-11-23 15:41:26 +00:00
422d2cb1b7 Fixed some linker warning about code that cannot be accessed. 2012-11-16 11:14:55 +01:00
d4edc1047e Renamed 'PolyVoxImpl' to just 'Impl'. 2012-11-05 17:00:09 +01:00
3c69bb651f Moved PolyVoxImpl inside of PolyVoxCore. This is the first stage of some tidying to better hide implementation details from the user. 2012-11-05 16:40:02 +01:00
e93d568cb4 Exposed linear and bilinear interpolation, in addition to trilinear.
Moved them somewhere publically accessable.
2012-11-02 16:34:31 +01:00
bedd09af18 Removing old raycasting code. 2012-10-05 16:49:39 +02:00
bc01223237 Removed some unecessary hierarchy in VS project structure.
Renamed the documentation targets in VS for clarity.
2012-09-28 14:07:13 +02:00
4b63c34305 Brought the manual and API docs together under the same heading in Visual Studio. 2012-09-28 13:54:27 +02:00
480c159327 Add copyright headers to all the CMake files 2012-08-24 13:20:41 +01:00
b96309f4a4 Use the CMake folder tool to help IDEs groupt targets.
This is done as seen in http://athile.net/library/blog/?p=288

Hopefully this works in Visual Studio as KDevelop doesn't use this feature.
2012-08-12 04:29:51 +01:00
301f93d896 Turned isQuadNeeded() (which was a stl::function) into a function object. 2012-08-09 16:06:10 +02:00
0d1c2e178a Build the static library as position independent
This allows it to be compiled into other shared libraries (like the Python
bindings) on x86_64 Linux systems.
2012-07-19 18:01:31 +01:00
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
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
00e2f37f31 Change BUILD_{STATIC,SHARED}_LIBRARIES to ENABLE_ 2012-07-15 20:49:39 +01:00
d178636741 Rearranged CMake file for alphabetical order. 2012-07-15 18:00:17 +02: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
1aa1978de1 Removed now redundant cpp files.
Removed a test which we don't need any more.
2012-07-08 08:52:36 +02:00
af5a351b45 Added SurfaceExtractionController and modified SurfaceExtractor to use it. 2012-06-26 15:02:07 +02:00
a20db7d7cf Work on refactoring voxel types.
Expanded surface extractor test.
2012-02-20 10:16:26 +01:00
3f56ee6f72 More refactoring of basic voxel types. Started replacing getDensity and getMaterial with free functions. 2012-02-18 12:12:38 +01:00
c483b44a41 Replaced constants with functions for type traits. 2012-02-06 17:51:37 +01:00