Commit Graph

33 Commits

Author SHA1 Message Date
Konstantin Käfer
2135f855d1 do not define variables until they're needed 2014-05-13 18:41:37 +02:00
Konstantin Käfer
d9d9b281c4 disable texture deleting for now 2014-05-12 18:25:58 +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
485a9a40bc formatting 2014-05-02 10:25:58 +02:00
Konstantin Käfer
4ac34b49a0 there's no need to reset the image data 2014-05-02 10:25:58 +02: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
e7274c7866 fix compile on linux 2014-04-17 09:33:04 -07:00
Konstantin Käfer
6872ac1b49 add flag to allow flipping the png image 2014-04-16 14:31:48 -04:00
Konstantin Käfer
49718ed60d clean up use of C99 2014-04-16 11:01:07 -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
9bb88711b8 always start animations with a common start time
fixes #134
2014-04-14 19:30:09 -04:00
Justin R. Miller
acd95168eb re-bind texture in right circumstances 2014-03-19 14:26:15 -07:00
Justin R. Miller
4dc6aa9aec don't attempt texture binding before the texture pool is setup 2014-03-19 14:22:00 -07: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
72ac0c9c31 use external library 2014-03-12 12:43:18 +01:00
Konstantin Käfer
b3e9a1b42c make sure color values are lowercased 2014-03-12 11:48:49 +01:00
Konstantin Käfer
60229ed7db add color parser 2014-03-11 18:42:01 +01:00
Konstantin Käfer
c5dca2c8a8 change tile size 2014-03-11 12:22:20 +01:00
Konstantin Käfer
a1ebf3f264 move tile size to a cpp file 2014-03-11 12:12:05 +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
Konstantin Käfer
b26f3d319b add threadpool implementation 2014-03-03 12:17:32 +01:00
Konstantin Käfer
d5c611d707 add timeouts for panning,scaling,rotating 2014-02-21 11:31:24 +01:00
Konstantin Käfer
1233537713 float[16] => std::array<float, 16> 2014-01-29 15:09:00 +01:00
Konstantin Käfer
15d4327229 rename + move to c++ 2014-01-20 11:35:29 +01:00
Konstantin Käfer
509b223fbf animate northing 2014-01-17 13:33:39 +01:00
Konstantin Käfer
04d9d6b9f9 rotation support 2014-01-08 17:31:35 +01:00
Konstantin Käfer
44b43fe5a6 glfw version of sample app 2014-01-07 12:10:14 +01:00