Commit Graph

83 Commits

Author SHA1 Message Date
Konstantin Käfer
ab4bc4ae30 add vec2 * mat4 multiplication 2014-05-21 19:23:20 +02:00
Konstantin Käfer
16a79b42ca show tile parse warnings 2014-05-21 14:18:25 +02:00
Konstantin Käfer
13939b26d9 first shot at composited blending
still missing:
- stencil+depth mask
- alpha compositing
2014-05-21 10:55:09 +02:00
Konstantin Käfer
238fe86571 partially revert 6136ab6d21
background: we are doing separate opaque/translucent passes per composite layer
and then we're compositing them in the translucent phase
2014-05-21 10:53:40 +02:00
Konstantin Käfer
017145f052 show style parse warning if the flag is set 2014-05-21 10:53:40 +02:00
Ansis Brammanis
7547beadd3 add includes 2014-05-19 17:39:51 -04:00
Konstantin Käfer
f848868c16 fix texture binding 2014-05-19 14:18:29 +02:00
Konstantin Käfer
13575330f7 use sprite atlas 2014-05-19 10:48:36 +02:00
Konstantin Käfer
b167a79c22 always use std:: namespace for math functions
fixes #201
2014-05-14 16:40:24 +02:00
Konstantin Käfer
ac9a678ce5 fix lock initialization
background: for non-debug builds, assert() gets compiled away, so the locks are not initialized
2014-05-14 13:41:55 +02:00
Konstantin Käfer
d8fa9aa322 move weak_ptr list of tile_data objects to a map for faster lookups 2014-05-13 12:01:29 +02:00
Konstantin Käfer
0bfd7b0f43 Calculate clip IDs with a huffman prefix tree
This changes the clip IDs from sequential to a huffman prefix tree, meaning that
parent tiles share the same prefix with child tiles (but are shorter). This allows
us to use the same checkerboard pattern to draw all tiles.

TODO:
- make sure we're not overflowing the 8 bit limit of the stencil buffer
- draw all checkerboard fields at the same time, with one draw call
- fix raster drawing (fading, clipping)

refs #132
2014-05-09 18:10:28 +02:00
Konstantin Käfer
d59aedc372 don't show warnings in boost 2014-05-08 13:43:34 +02:00
artemp
40e3372b80 variant : add binary visitation support 2014-05-05 12:54:17 +01:00
Konstantin Käfer
449f403e87 rename animation => transition 2014-04-30 14:46:28 +02:00
Konstantin Käfer
4afe20776d move animation time api to use nanoseconds 2014-04-30 14:20:15 +02:00
Konstantin Käfer
74768abeb8 make sure we call the sprite load callback 2014-04-30 12:58:38 +02:00
Konstantin Käfer
1216a061d3 move to libuv for the rendering loop 2014-04-30 12:01:26 +02:00
Konstantin Käfer
ddc359f006 add more timers to headless test 2014-04-25 17:04:22 +02:00
Konstantin Käfer
3d69e38a1c require explicit initialization to point devs toward empty timer names 2014-04-25 16:14:15 +02:00
Konstantin Käfer
39d79f4fdc add timer 2014-04-23 17:17:32 +02:00
Konstantin Käfer
70742c7a61 add libcurl loading 2014-04-16 15:41:19 -04:00
Konstantin Käfer
6872ac1b49 add flag to allow flipping the png image 2014-04-16 14:31:48 -04:00
Konstantin Käfer
56393007f1 add function to write files 2014-04-15 18:46:51 -04:00
Konstantin Käfer
709dfc22db add PNG image encoding 2014-04-15 18:46:37 -04:00
Konstantin Käfer
3c656d2bf2 add debug markers for easier gl debugging 2014-04-15 14:30:05 -04:00
Konstantin Käfer
c2f1f0c0df fix build on linux 2014-04-14 19:43:30 -04:00
Konstantin Käfer
9bb88711b8 always start animations with a common start time
fixes #134
2014-04-14 19:30:09 -04:00
Konstantin Käfer
f18aa61e33 derive from GLKViewController
this handles resizing the view/framebuffer much better

fixes #130, #131, #133, #118
2014-04-14 18:50:17 -04:00
Konstantin Käfer
8b573f9fa2 fix glyphs that have no pixels but an advance (e.g. spaces) 2014-03-24 15:19:39 +01:00
Konstantin Käfer
3413ee536d Merge branch 'master' into sdf
Conflicts:
	include/llmr/map/tile_data.hpp
	include/llmr/shader/shaders.hpp
	src/map/map.cpp
	src/map/tile_data.cpp
	src/platform/platform.cpp
	src/shader/shaders.cpp
2014-03-21 13:36:32 +01:00
Konstantin Käfer
4ee0cf1791 port remainder of the the placement algorithm 2014-03-19 18:58:50 +01:00
Justin R. Miller
00a3245ce8 fixes #70: raster tile rendering as toggleable mode from vector 2014-03-18 16:57:17 -07:00
Konstantin Käfer
25ff0b253f merge vec2 and Coordinate 2014-03-18 17:57:09 +01:00
Konstantin Käfer
1f2c71ec8b port of collision class 2014-03-17 16:53:40 +01:00
Konstantin Käfer
88af0b8b6c add interpolate function 2014-03-17 13:00:44 +01:00
Konstantin Käfer
10c72f811d port rotationrange.js (still missing tests) 2014-03-14 18:23:38 +01:00
Konstantin Käfer
df56f9fbce they return bool values 2014-03-14 11:36:10 +01:00
Konstantin Käfer
117078270d add text buffer code 2014-03-14 11:36:10 +01:00
Konstantin Käfer
72ac0c9c31 use external library 2014-03-12 12:43:18 +01:00
Konstantin Käfer
60229ed7db add color parser 2014-03-11 18:42:01 +01:00
Konstantin Käfer
a1ebf3f264 move tile size to a cpp file 2014-03-11 12:12:05 +01:00
Konstantin Käfer
420cb58a5d fix pedantic warnings 2014-03-11 12:10:07 +01:00
Konstantin Käfer
4de8674f20 Merge branch 'variant' 2014-03-11 11:55:00 +01:00
Konstantin Käfer
b0cb2b85b1 return meaningful error codes 2014-03-05 16:46:27 +01:00
Konstantin Käfer
ba5070bf52 Port scanline algorithm from _getCoveringTiles()
fixes #22
2014-03-04 14:50:17 +01:00
Konstantin Käfer
e13b519745 we're not doing recursive locking 2014-03-03 13:05:01 +01:00
Konstantin Käfer
f1f146b01e remove thread naming 2014-03-03 13:01:09 +01:00
Konstantin Käfer
f850856cec move requests to global threadpool 2014-03-03 12:55:32 +01:00
Konstantin Käfer
c076da0ae2 make threadpool implementation callback agnostic 2014-03-03 12:26:04 +01:00