Commit Graph

126 Commits

Author SHA1 Message Date
Justin R. Miller
257ccd16bb clean up settings mechanism (fixes #9 & #62)
* init, load, persist, sync, clear
 * clean up frequent disk syncs which impacted iOS performance
 * insert disk sync into various iOS/OS X lifecycle events
 * implement clear
 * implement save on iOS
 * cleaner dictionary syntax
2014-02-13 12:21:35 -08:00
Konstantin Käfer
b0357e8ea7 move tile size to constants.hpp 2014-02-13 17:34:08 +01:00
Konstantin Käfer
2f32d1585d make sure we don't encode the first vertex twice 2014-02-13 17:19:49 +01:00
Konstantin Käfer
1cab7f07bd remove all mentions of degenerate things 2014-02-13 16:37:16 +01:00
Konstantin Käfer
51f526dd6a remove addDegenerate() 2014-02-13 16:36:30 +01:00
Konstantin Käfer
da06a52056 cut down on redundant gl uniform changes 2014-02-13 16:21:51 +01:00
Konstantin Käfer
f5846e1ebb change line_strip drawing for outlines to indexed lines 2014-02-13 15:32:25 +01:00
Konstantin Käfer
54454ed66a optimizations + reorder vertex index 2014-02-13 14:10:04 +01:00
Justin R. Miller
0005ca4eef fixes #57: flesh out remainder of getters & setters plus animation 2014-02-12 11:20:21 -08:00
Konstantin Käfer
02f2dea807 get point shader to work on ios 2014-02-11 17:58:33 +01:00
Konstantin Käfer
662a61a396 split line vertices into multiple buffer groups if elements overflow 2014-02-11 17:34:46 +01:00
Konstantin Käfer
eb8e5fcf15 move group struct to shared file 2014-02-11 16:00:40 +01:00
Konstantin Käfer
bec0ad10c4 drawing lines with triangles 2014-02-11 15:51:54 +01:00
Konstantin Käfer
f4996046a2 common buffer implementation 2014-02-10 15:14:52 +01:00
artemp
5e87cfed5a c++ - prefer switch over long-ish if/else (be nice to compiler) 2014-02-10 12:18:52 +00:00
Justin R. Miller
0bccb08028 clean up duplicate calculations on animation branching 2014-02-07 21:45:45 -05:00
Justin R. Miller
f6642766c1 expose transform animations cancel through map 2014-02-07 12:26:39 -05:00
Konstantin Käfer
9cef72fadb Merge branch 'master' of https://github.com/mapbox/llmr-native
Conflicts:
	src/map/transform.cpp
2014-02-07 16:10:00 +01:00
Konstantin Käfer
28ee5968f8 add cancelAnimations() function
refs #34
2014-02-07 16:08:17 +01:00
Justin R. Miller
e48207a4ef allow for animated moves 2014-02-06 16:08:44 -05:00
Konstantin Käfer
0ae3d3926b always rerender when calling update() 2014-02-06 16:13:41 +01:00
Konstantin Käfer
dd6d040cda render updates if tiles changed after movements 2014-02-06 15:44:50 +01:00
Konstantin Käfer
9553bfa159 revert back to 32767 2014-02-06 15:29:23 +01:00
Konstantin Käfer
f756768c18 Merge remote-tracking branch 'origin/animated-scale' 2014-02-06 15:18:17 +01:00
Konstantin Käfer
33beb081f5 Merge branch 'master' of https://github.com/mapbox/llmr-native
Conflicts:
	src/geometry/debug_font.cpp
2014-02-06 15:14:51 +01:00
artemp
0cf3f28d05 c++
* don't rely on implicit size_t to bool conversions (fix MSVC compiler warning)
2014-02-06 11:46:56 +00:00
artemp
bfcfb592da c++
* make it a bit more readable
2014-02-06 11:45:00 +00:00
artemp
2d3abf36b1 c++
* prefer prefix increment operator unless logically necessary
  (it doesn't make any diff foro built-in type but good practice)
2014-02-06 10:50:31 +00:00
artemp
a8fef83564 c++
* use nullptr instead of NULL
2014-02-06 10:39:10 +00:00
artemp
d6654ccaed c++
* fix typedef's
* fix virtual dtor's
* make ctor's with one argument explicit
* util::noncopyable utility class  ( class my_object : private noncopyable {} )
* update kTileURL
2014-02-06 10:33:46 +00:00
Konstantin Käfer
ed4072bdd1 skip unknown glyphs 2014-02-06 09:47:12 +01:00
Konstantin Käfer
64b072a08e make debug font const 2014-02-06 09:45:14 +01:00
Justin R. Miller
3ae58c53a2 refs #30: animated scaleBy
* add duration argument to scaleBy & setScale
 * add scale center arguments to setScale
 * add animation to Transform::setScale
2014-02-05 15:16:05 -05:00
Konstantin Käfer
cf31a80920 textured fills & enforce vao program with templates 2014-02-05 19:03:44 +01:00
Konstantin Käfer
eabd99d8f6 always pass the parameters and verify that they're correct 2014-02-05 18:46:23 +01:00
Konstantin Käfer
e94cb1b00b remove switchShader() 2014-02-05 18:35:19 +01:00
Konstantin Käfer
e30d8eb48f move to vertex array objects 2014-02-05 18:06:16 +01:00
Konstantin Käfer
f738a9e19e initialize variables 2014-02-05 13:59:02 +01:00
Konstantin Käfer
e97fcda9f3 correctly specify the number of attribute elements 2014-02-05 12:38:04 +01:00
Justin R. Miller
dbea7937b3 fixes #33: rotate around arbitrary point 2014-02-04 16:01:09 -05:00
Justin R. Miller
ca75b2a351 refs #24: Gyp-built iOS test app 2014-02-04 12:10:20 -05:00
Justin R. Miller
2b2ff9fb3f abstract hardcoded URLs for now 2014-02-04 11:46:06 -05:00
Konstantin Käfer
3b7f06ccbf fix build on linux 2014-02-04 16:53:22 +01:00
Konstantin Käfer
aff6c54c00 remove hardcoded #version 120 2014-02-04 16:46:48 +01:00
Konstantin Käfer
d77e3b6285 add <algorithm> headers 2014-02-04 14:14:20 +01:00
Konstantin Käfer
2df45d0c4a refactor header includes 2014-02-04 14:07:56 +01:00
Konstantin Käfer
7dfc535d2c remove VectorTile member variable of Tile 2014-02-04 13:44:57 +01:00
Konstantin Käfer
e3db9b1ef1 add textured water 2014-02-04 11:40:28 +01:00
Dane Springmeyer
5b783f4eb1 fix sprite.cpp compile on linux - refs #27 2014-02-03 23:02:02 +00:00
Dane Springmeyer
b8d9f7704f switch build system to gyp 2014-02-03 14:32:00 -08:00