133 Commits

Author SHA1 Message Date
David Williams
8065b709d1 Made Region header only. 2015-02-06 00:07:32 +01:00
David Williams
86357d66b7 Normalized line endings 2014-09-25 22:38:01 +02:00
David Williams
d6a7b83698 Moved Pager to be a nested class of PagedVolume. 2014-09-21 11:42:12 +02:00
David Williams
db9a74fdb4 Moving Chunk to be a nested class of PagedVolume. 2014-09-21 10:27:55 +02:00
David Williams
ede35435a0 Renamed UncompressedBlock to Chunk. 2014-09-20 17:26:57 +02:00
David Williams
25a1d95387 Renamed LargeVolume to PagedVolume, deleted SimpleVolume, and set up typedefs pointing LargeVolume and SimpleVolume to PagedVolume for backwards compatibility. 2014-09-19 16:50:24 +02:00
David Williams
3cf8f38793 Merged Block and UncompressedBlock classes. 2014-09-13 23:38:11 +02:00
David Williams
c0a22de2df Removed a lot of compression-related code. 2014-09-13 12:20:56 +02:00
David Williams
d06dbdf054 Bit renaming. Old Array class is gone, and is replaced by the Array2D class which has also been renamed to Array. 2014-08-24 22:30:50 +02:00
David Williams
20815b6083 Moved Array2D to it's own file. 2014-08-21 21:38:19 +02:00
David Williams
82f9d6ad6f Renamed VertexTypes.h to Vertex.h. 2014-06-02 08:57:30 +02:00
David Williams
e9ba998f2f Changes to the folder organization of some files in Visual Studio (via CMake's source_group). 2014-05-28 14:03:26 +02:00
David Williams
4aae00e4a8 Renamed SurfaceMesh to just Mesh 2014-05-23 15:17:07 +02:00
David Williams
4c2aea3db1 Removed CubicSurfaceExtractorWithNornals. Going forward users will be expected to compute flat normals in the fragment shader. 2014-05-06 22:00:24 +02:00
Matt Williams
bc17c802bb Assume C++11 support
Remove all CMake checks for C++11 support since we now assume that we have it.
Replace all polyvox_* macros with standard C++ names.

See #48
2014-02-14 15:03:26 +00:00
Daviw Williams
c177891e5d Separated logging code into different .cpp/.h files. 2014-01-24 15:21:59 +01:00
Daviw Williams
319a0ce352 Removed old compression classes. 2013-10-01 15:58:32 +02:00
Daviw Williams
4ee2a61a15 Added a siply wrapper .h/cpp pair to abstract away the fact that miniz in provided as a single .c file which we include directly, and to avoid linker problems. 2013-10-01 15:33:40 +02:00
David Williams
9ad4c3fcf7 Initial checkin of Timer class. 2013-08-07 23:07:26 +02:00
David Williams
dcf86a905c Split Block, CompressedBlock and UncompressedBlock into separate files. It's tidier, and maybe better for SWIG? 2013-08-01 15:32:12 +02:00
David Williams
6f17e0faa6 The 'Block' class is no longer considered just to be an implementation details of LargeVolume. Users may need to interact with them directly of they implement their own paging or compression systems. 2013-08-01 15:19:10 +02:00
David Williams
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
David Williams
d1138dcdb1 Some new block compression code as I rework the previous code... 2013-07-30 16:01:03 +02:00
David Williams
a4fc814a51 Rearranging and renaming some code. 2013-07-29 16:04:01 +02:00
David Williams
f54532a905 Started moving compression code into separate class. 2013-07-26 16:00:29 +02:00
David Williams
1064ea1c47 Stripped out unused code. 2013-06-26 22:14:01 +02:00
David Williams
20db75fb75 Added null pointer check.
Added files to CMakeLists.txt
2013-06-22 07:24:19 +02:00
Daviw Williams
1010052ea6 Reworking the logging system. 2013-05-14 16:52:16 +02:00
Matt Williams
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
Daviw Williams
23042c3fcb Moved warning suppression into the relevant file so that it's not global. 2013-03-04 16:00:43 +01:00
Daviw Williams
36676433be Work on compression interface. 2013-01-31 15:54:04 +01:00
Daviw Williams
a1cdf78250 Block now working with new MinizCompressor. Removing some old compression code. 2013-01-30 16:49:06 +01:00
Daviw Williams
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
Daviw Williams
c7937b176d Very bad (but functional!) initial implementation of LargeVolume compression with miniz. 2013-01-10 16:20:29 +01:00
David Williams
9273094ebd Added config.h to control exceptions and asserts. 2012-12-29 22:56:15 +01:00
David Williams
161835f42b Boost is no longer needed if <cstdint> is not found. 2012-12-29 22:26:21 +01:00
David Williams
ed614802fe Merge branch 'develop' of https://bitbucket.org/volumesoffun/polyvox into develop 2012-12-29 14:07:11 +00:00
David Williams
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
David Williams
cc0b3ae2c0 Merge branch 'develop' into feature/error-handling 2012-12-26 17:18:42 +00:00
Matt Williams
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
Matt Williams
bc8240fe63 These checks are no longer needed since it's checked in the top level file 2012-12-26 15:09:54 +00:00
Matt Williams
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
David Williams
e17271a2c7 Work on new asserts. 2012-12-26 10:34:09 +00:00
David Williams
c78a8595fb Initial work on new assert macro. 2012-12-26 01:33:05 +00:00
David Williams
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
David Williams
7e38fc135e Removed features which were deprecated in release 0.2. 2012-12-03 21:22:57 +01:00
Matt Williams
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
Daviw Williams
422d2cb1b7 Fixed some linker warning about code that cannot be accessed. 2012-11-16 11:14:55 +01:00
unknown
d4edc1047e Renamed 'PolyVoxImpl' to just 'Impl'. 2012-11-05 17:00:09 +01:00
unknown
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