Commit Graph

480 Commits

Author SHA1 Message Date
59d2862508 Correct int/frac coordinates for negative position 2012-05-24 17:08:11 +10:00
4793f435c9 Remove debugging output from image writer 2012-05-24 17:07:40 +10:00
f3b829e232 Add a soft bounds check for range::normalise 2012-05-24 17:07:17 +10:00
b86cc6904f Use binary output for pgm/ppm 2012-05-24 17:07:01 +10:00
c354cf6ed6 Normalise basis values and give expected bounds 2012-05-24 15:04:06 +10:00
aabbf231c5 Add more scalar operators for range 2012-05-24 15:03:26 +10:00
ea9d6c175d Support initial NaN range with range::expand 2012-05-23 20:42:05 +10:00
124878fc98 Add cellular noise implementation 2012-05-23 20:42:05 +10:00
3885e9a9ab Dont rescale fractal noise before image output 2012-05-23 20:42:05 +10:00
eecc648954 Add more scalar operators 2012-05-23 20:42:05 +10:00
3d8213e00c Change licence header to match libgim default 2012-05-23 17:04:46 +10:00
f1505e8b31 Remove return type from range::expand 2012-05-23 17:01:54 +10:00
bcab28826c Move noise functions into their own directory 2012-05-23 17:01:30 +10:00
c9242467d8 Add scalar operator overloads for vector 2012-05-22 14:13:34 +10:00
db6c603517 Add array randomisation helper routine 2012-05-22 14:13:07 +10:00
2783bcaa23 Check weight is within bounds for quintic lerp 2012-05-22 14:12:30 +10:00
be0426ff24 Add range expansion method 2012-05-22 14:12:06 +10:00
40c40507f9 Give vector and point templated dimension size 2012-05-18 17:56:24 +10:00
a195f47bdf Add -fno-deduce-init-list for template constructor
When using variadic template constructors which forward their arguments
to base classes we tend to get a lot of warnings about auto deduction of
initializer_list types from aggregate initialiser syntax. As this is
apparently expected to be removed from the standard we'll hide the
warnings this way.
2012-05-18 17:53:23 +10:00
700245b5bf Use jobserver if available for flto 2012-05-17 14:38:13 +10:00
fd64e95a7d Expose the perlin class publically 2012-05-17 14:37:56 +10:00
3b8f4597bf Reformulate perlin into a struct 2012-05-17 14:18:39 +10:00
d81537ba51 Change lerp implementations to same weighting form 2012-05-17 14:18:03 +10:00
6305261270 Add trun, cubic, and quintic lerp methods 2012-05-17 14:17:42 +10:00
d2c174f2e1 Change PBM output mode to system default.
It's ASCII output at the moment anyway, so it shouldn't be an issue.
2012-05-17 14:16:40 +10:00
3b9d9cde30 Correct exception namespacing for Windows header 2012-05-17 14:16:09 +10:00
9b8419bd8d Bump the required boost version to 1.49 2012-05-17 14:15:47 +10:00
54f6811058 Add simple PGM and PPM image writers 2012-05-16 15:03:49 +10:00
dd3f25decc Make internal functions static within perlin 2012-05-16 15:03:01 +10:00
f7c32ed76e Add copyright header to perlin 2012-05-16 15:01:41 +10:00
7c20614079 Add output_error exception 2012-05-16 15:01:21 +10:00
6e82915975 Place util exceptions in the util namespace 2012-05-16 15:01:01 +10:00
c6a3831840 Enable flto and generic tuning optimisations 2012-05-15 16:07:03 +10:00
b670c76995 Temporarily disable features unsupported by i686-pc-mingw 2012-05-15 16:06:18 +10:00
76ffb05c23 Disable CHECK calls when not debugging 2012-05-15 16:05:27 +10:00
0c86a8b240 Dont put a block around DEBUG_ONLY statements.
This allows variable declerations, raii statements, and other hackery to
affect surrounding code more easily.
2012-05-15 16:04:35 +10:00
e8844943a7 Add count, sum, and mean for stats accumulator 2012-05-15 16:04:06 +10:00
ee6fb59e99 Properly namespace the null backtrace output op 2012-05-15 16:03:14 +10:00
faa44b24ef Add simple stat accumulator class 2012-05-14 16:11:09 +10:00
83a30c9d94 Uppercase usage of check in json tests 2012-05-14 16:10:32 +10:00
6193ffd407 Put debugging defines in config.h 2012-05-14 16:10:11 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
c1ba948b20 Add region::overlap to for overlapping regions 2012-05-11 12:22:23 +10:00
4dc7a3ca49 Add simple region overlap testcase 2012-05-11 12:21:47 +10:00
f4ab656ef1 Temporarily disable broken test case 2012-05-11 12:20:54 +10:00
e3072aeedb Add an early out for empty signals 2012-05-11 12:20:32 +10:00
c2c8fea6cc Define raii in terms of PASTE 2012-05-11 12:19:56 +10:00
e55aa07874 Rename CONCAT to PASTE and add STRINGIFY 2012-05-11 12:19:36 +10:00
7576f80b30 Rename scoped_malloc::data to ::get 2012-05-11 12:19:06 +10:00
c81919dbe7 Disable LOG_DEBUG when debugging isn't enabled 2012-05-11 12:18:41 +10:00