Leith Bade
71549e7b93
Adds the function Map::terminate() to allow all GL resources held
...
by the map to be released immediately.
Map::terminate() will call any GL functions on the current thread
without blocking or defering to the rendering thread.
This function allows a GL context to be destroyed and recreated
safely without having to delete the Map object.
Fixes mapbox/mapbox-gl-native#341
Conflicts:
include/llmr/renderer/painter.hpp
test/headless.cpp
2014-09-10 18:31:20 -04:00
Leith Bade
c004c03696
Add View::make_inactive() to remove context from rendering thread
...
View::make_inactive() is called just before termination of the
rendering thread. The implementation must clear the thread's GL
context.
This ensures there is no context still bound to a thread during
GL shutdown. This is needed as GL will not actually delete a
context until it is not active on any thread.
Fixes mapbox/mapbox-gl-native#340
Conflicts:
common/glfw_view.hpp
include/llmr/map/view.hpp
test/headless.cpp
2014-09-10 18:21:03 -04:00
John Firebaugh
70a31baf5c
Eliminate warnings
2014-08-07 13:02:40 -07:00
Konstantin Käfer
05b95ab057
show zom/lat/lon/bearing in window title
2014-08-05 15:28:46 +02:00
Konstantin Käfer
4ea281c750
rename llmr => mbgl
2014-07-16 18:53:56 -07:00
Justin R. Miller
a902446e7f
refs #342 & #346 : per-map change callbacks
2014-07-16 18:18:04 -07:00
Justin R. Miller
1f06f518b2
allow for delayed map notifications during animations
2014-07-15 18:48:01 -07:00
Justin R. Miller
9e9623d2ec
fix up OS X/headless notify_map_change() for new API
2014-07-03 19:08:26 -07:00
Konstantin Käfer
ba4294ae0c
saving current state
2014-06-23 18:05:25 +02:00
Konstantin Käfer
f51fd9be58
make sure to use OpenGL ES 2.0 when compiling for nvidia chips
2014-06-17 05:52:39 -07:00
Konstantin Käfer
68c621b2a6
load glDiscardFramebufferEXT with a library function if needed
2014-06-17 05:52:24 -07:00
Justin R. Miller
4ae6c8ec2c
fix style toggle on OS X
2014-06-01 12:12:54 -07:00
Justin R. Miller
a81a336638
programmatic styling API
2014-05-31 11:32:42 -07:00
Justin R. Miller
661860d12f
foundations of delegate/callback API
2014-05-23 18:32:55 -07:00
Konstantin Käfer
53a6992728
fix alpha blending + add depth/stencil buffers
2014-05-21 18:34:41 +02:00
Ansis Brammanis
4a0015c5ab
shift dblclick zooms out
2014-05-20 16:26:14 -04:00
Konstantin Käfer
92706445d9
init glfw for debug images + actually copy images over
2014-05-19 14:21:15 +02:00
Konstantin Käfer
898c6d6714
fix for retina screens
2014-05-19 11:13:22 +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
9bbdba9eab
remove concept of settings object from library
2014-04-30 13:47:03 +02:00
Konstantin Käfer
f683cbf02a
hide atomic flags as implementation detail
2014-04-30 12:29:50 +02:00
Konstantin Käfer
1216a061d3
move to libuv for the rendering loop
2014-04-30 12:01:26 +02:00
Konstantin Käfer
666f593803
use an event loop per map that is not the render thread
2014-04-25 14:26:59 +02:00
Konstantin Käfer
1ecff57829
use libuv event loop in the glfw view
...
Integrates libuv's default loop with GLFW's glfwWaitEvents() call. See https://github.com/joyent/libuv/issues/1246 for more details on integrating event loops.
fixes #149
2014-04-22 16:54:55 +02:00
Konstantin Käfer
a807ace3c1
rename to glfw_view.cpp/hpp
2014-04-16 11:10:54 -04:00