David Williams
6e8d9dfb75
Windows now uses standard C++ timer. I assume we weren't using it before because it wasn't present on older versions of Visual Studio?
...
Moved timer code to header.
2015-02-06 16:52:21 +01:00
David Williams
8cff2bb2da
Moved random vectors to header files.
2015-02-06 16:43:29 +01:00
David Williams
eb45c97a61
Moved marching cubes tables to header file.
2015-02-06 16:37:08 +01:00
David Williams
86357d66b7
Normalized line endings
2014-09-25 22:38:01 +02:00
David Williams
c0a22de2df
Removed a lot of compression-related code.
2014-09-13 12:20:56 +02:00
David Williams
bfe03142b7
Carefully dismanteling compression related code.
2014-09-13 11:30:52 +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
528873bcd3
Extended 'Array2D class to be multidimensional (will rename it shortly).
2014-08-24 21:54:59 +02:00
David Williams
9a1c6784df
Steps towards making new array class be multidimensional.
2014-08-24 12:26:36 +02:00
David Williams
083c65ecd5
Added asserts.
2014-08-24 12:03:41 +02:00
David Williams
1fb82f40b3
Switched to C++11-style hiding of copy constructor and assignment operator.
2014-08-24 11:51:45 +02:00
David Williams
ad73caf368
Array2D now has private copy constructor and assignment operator to prevent accidental copying.
2014-08-22 15:49:30 +02:00
David Williams
83c287727f
Additions to Array2D.
2014-08-21 23:03:38 +02:00
David Williams
20815b6083
Moved Array2D to it's own file.
2014-08-21 21:38:19 +02:00
David Williams
0863d82068
Added check to alert the user if their version of Visual Studio is too old.
2014-08-18 16:20:43 +02:00
Daviw Williams
2458f94feb
Eliminating some differences from the cubiquity-version branch.
2014-02-25 16:51:26 +01:00
Daviw Williams
0e8973e722
Fixed minor compile errors:
...
- Lack of <functional> in AStarPathfinder.h
- Lack of <cstdint> in several files (why did this compile on GCC?)
2014-02-17 15:23:44 +01: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
David Williams
74be82e8cf
Disabled trace stream by default.
...
Updated docs.
2014-01-30 23:40:50 +01:00
David Williams
f2dd852bd2
More stripping down of logging macros.
2014-01-30 23:18:41 +01:00
David Williams
906d685f5f
Stripped down the 'removed' version of the logging macros to minimize the chance that they have any effect on the code.
2014-01-30 23:04:37 +01:00
David Williams
248a5c3e29
Removed old logging system.
2014-01-30 22:10:52 +01:00
Daviw Williams
af9eacef37
Changed new logging system to work on strings rather than streams.
2014-01-30 16:27:33 +01:00
David Williams
f4e03cc537
Macros now call new logging system instead of the old one.
2014-01-29 21:29:00 +01:00
Daviw Williams
84921f4d0b
The existing logging code is rather large and overwhelming. I'm starting to replace it with a simpler system that should also be easier to maintain.
2014-01-29 16:53:11 +01:00
David Williams
a9238051fa
Changed some logging statements to macros which can be #defined out.
2014-01-26 23:53:10 +01:00
Daviw Williams
f58161c748
Added logging macros which can be disabled at compile time.
2014-01-24 16:35:58 +01:00
Daviw Williams
c177891e5d
Separated logging code into different .cpp/.h files.
2014-01-24 15:21:59 +01:00
Daviw Williams
3db5e1b2f6
Added microsecond precision to timers.
2013-11-14 15:35:41 +01:00
Daviw Williams
1c5a3f7ef5
Reverted attempts to suppress GCC warnings and just removed the offending asserts instead.
...
Revert "Added asserts to catch invalid material/density values."
This reverts commit 89438220464778d167d86bb59e095a85ccdba080.
2013-10-25 12:44:40 +02:00
Daviw Williams
afddb59d69
Reverted attempt to avoid warnings. Just suppressed them instead.
...
Revert "Attempting to work around a GCC warning."
This reverts commit 3fe92086f1bdde06eb3e9bd812fc19a279154458.
2013-10-24 14:37:18 +02:00
Daviw Williams
4d683627da
Added some comments.
2013-10-03 16:56:14 +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
Matt Williams
f81b42747b
Implement Timer for C++11
...
This uses std::chrono::system_clock
2013-08-22 20:40:45 +01:00
Matt Williams
7c74e1faff
Move Timer.h to correct location
...
Also add a missing semi-colon.
2013-08-08 10:42:57 +01: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
9503d975c1
GCC compile fixes.
2013-07-31 16:37:39 +02:00
David Williams
f54532a905
Started moving compression code into separate class.
2013-07-26 16:00:29 +02:00
David Williams
b767d9b896
Tidying up.
2013-07-25 17:07:50 +02:00
David Williams
cf9b54e5ab
Properly deleting data (delete vs. delete[]).
2013-07-24 16:53:40 +02:00
David Williams
5b99854c02
Making block copy constructors and assignment operators private to prevent accidental copying.
2013-07-17 16:23:46 +02:00
David Williams
dea7e6a4e9
Tidying up block classes.
2013-07-16 16:50:04 +02:00
David Williams
b5d930062b
Const fixes.
2013-07-16 16:09:57 +02:00
David Williams
3904c9aa8f
Tidying and renaming...
2013-07-16 15:59:06 +02:00
David Williams
0cfb9f5196
Splitting 'Block into CompressedBlock and UncompressedBlock.
2013-07-16 14:42:43 +02:00
David Williams
a00574351f
Renamed Block to CompressedBlock
2013-07-11 16:38:28 +02:00
David Williams
00eb281990
Stripping down Block class.
2013-07-11 16:30:19 +02:00
David Williams
0d92bc6c8c
Starting to split Block class into CompressedBlock and UncompressedBlock.
2013-07-11 16:17:48 +02:00
Matt Williams
8027f9904d
On systems that support it, raise SIGTRAP to drop into the debugger
...
Clang was being clever and giving a warning for this line so it prompted me
to fix it. I believe that SIGTRAP is the correct way to get the debugger to
work here.
It does a compile-time check for the platform when not using MSVC.
Discussed at http://www.volumesoffun.com/phpBB3/viewtopic.php?p=3766#p3766
2013-07-04 19:35:09 +01:00
Matt Williams
9f7f893b68
Change the types of the edgeTable and triTable
...
The range on values in these tables is much less than needs an int so
making them specific width types packs them smaller.
I measure a 5% decrease in the size of the .so file created at -O3.
2013-07-04 19:35:09 +01:00