Commit graph

270 commits

Author SHA1 Message Date
c80f54cba7 Chunk: allow generating unlighted maps for chunks without light data 2015-09-19 23:01:41 +09:00
d677440f6d Chunk: fix check for chunks with missing light data 2015-09-19 21:44:51 +09:00
1e14dabc2d Fix definition of timespec >= operator 2015-02-06 23:06:11 +01:00
d73c8b930b Include cleanup
Also remove all uses of unistd.h by replacing unlink with std::rename
2015-02-06 19:51:20 +01:00
fb81ea7d60 Make light layer darker 2015-02-06 17:56:59 +01:00
02808dcf9b viewer: more URL hash improvements 2015-02-04 22:01:14 +01:00
82acbeacb1 viewer: update hash on load 2015-02-04 17:19:56 +01:00
14c9a48563 viewer: map state in URL hash 2015-02-04 17:00:53 +01:00
03658bff3d build: don't use pkg-config 2015-02-04 11:44:53 +01:00
7b5327f828 Info: add missing include 2015-02-04 11:38:06 +01:00
c6e1edce5b Bump required CMake version to 2.8.4 2015-02-04 11:36:08 +01:00
e4b1919ba8 Use heap memory for image buffers 2015-02-04 09:00:34 +01:00
61f47521a9 viewer: add coordinate control 2015-02-04 07:22:49 +01:00
80b38d3d7a viewer: also set "image-rendering: crisp-edges" without browser prefix 2015-02-04 06:53:04 +01:00
e4a1cce0e4 viewer: fix overzoomed condition for retina 2015-02-04 06:52:57 +01:00
e027f76d9b Use higher-resolution tiles on retina displays 2015-02-04 06:35:31 +01:00
22615f90aa Add missing include 2015-02-03 20:17:35 +01:00
4d9f29afab Add mipmap support to allow zooming out 2015-02-03 20:15:58 +01:00
0162c236fa Nicer timespec operations 2015-02-03 18:39:58 +01:00
45a1915006 Refactor image creation 2015-02-03 15:02:21 +01:00
0bd8e211e2 Also unlink light tmpfile on errors 2015-02-03 14:19:19 +01:00
05b2cc0e1e PNG: fix mipmapping of grayscale images 2015-02-03 13:59:57 +01:00
4cd7e83a70 PNG: fix scaling of grayscale images 2015-02-03 13:59:12 +01:00
cca2ec58fb viewer: allow showing the light layer 2015-02-03 13:17:36 +01:00
9e0bbcf685 Generate light layer 2015-02-03 13:13:12 +01:00
e1b3347da5 Start mipmapping infrastructure 2015-02-03 12:42:33 +01:00
b3c1a9be2f Level: make buffer a member to prevent use-after-free 2015-02-03 12:18:25 +01:00
1d3db43d29 Refactor PNG writing 2015-02-02 19:29:37 +01:00
b46c5de3ac Free PNG structs after writing 2015-02-02 18:52:33 +01:00
43a9df351a viewer: center on spawn 2015-02-02 18:39:44 +01:00
34857eabbc Add spawn coordinates 2015-02-02 18:33:21 +01:00
db59b73856 Refactor info generation 2015-02-02 17:56:43 +01:00
8bbc75d42f Block: don't use lighting 2015-02-02 17:31:55 +01:00
22bc6db52a Chunk: zero data buffers to avoid using unitialized data 2015-02-02 17:13:51 +01:00
f8a66ee6b6 viewer: always use nearest-neighbor filter for zooming 2015-02-02 14:29:41 +01:00
410106b798 Allow zooming in to level 3 2015-02-02 14:18:04 +01:00
db5dbe26d8 viewer: allow zooming in by one step 2015-02-02 10:53:23 +01:00
32c967c1e9 viewer: better mobile browser support 2015-02-02 10:47:32 +01:00
8ec33899d5 Make the default zoom level 0 instead of 1 2015-02-02 09:58:41 +01:00
9395b1f01d viewer: add repository link 2015-02-02 09:34:38 +01:00
e922dd601e Add map viewer based on Leaflet 2015-02-02 09:08:36 +01:00
fd4ce45885 Generate info file 2015-02-02 05:13:07 +01:00
89baed4ed5 Region: make visitor argument a reference 2015-02-02 04:50:08 +01:00
8bdbfd3ec0 Factor out filename check 2015-02-02 04:47:40 +01:00
213124ec57 Output "normal" messages to stdout
This makes it easier to filter for the errors
2015-02-02 03:53:49 +01:00
75671b4b96 Catch exceptions for single regions 2015-02-02 03:38:49 +01:00
a3d6648fa6 Workaround for old libraries without regex support 2015-02-02 03:33:43 +01:00
bedd81dce6 Don't explicitly include setjmp
libpng does this for us.
2015-02-02 03:20:25 +01:00
58adcc4c15 Skip unchanged regions 2015-02-02 03:06:22 +01:00
248b9e319d Convert all regions with one call 2015-02-02 02:25:56 +01:00