John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
John Firebaugh
77b0723476
[ios, osx, linux] Remove unused "applicationRoot" function
2016-03-31 17:08:00 -07:00
Konstantin Käfer
61920071cd
[core] split headless_view.cpp into implementation-specific files
...
also adds a EAGL implementation for iOS
2016-03-22 11:56:01 -07:00
Thiago Marcos P. Santos
baf30cd1f7
[glfw] Main loop integration
...
This new code can be used for rendering on the Main thread
while it will also work for rendering on the Map thread
before we make the switch. Needed by #2909 .
2016-03-21 23:58:48 -03:00
Konstantin Käfer
8112ac3371
[core] explicitly initialize a few fields to null
2016-03-04 16:01:41 -08:00
Konstantin Käfer
33b63f0ef6
[glfw] add "C" button to show stencil clip masks
2016-02-10 11:35:17 +01:00
Konstantin Käfer
e74987b07f
[core] move GL value objects from gl_config.hpp to gl_values.hpp
...
Also removes duplicate code from gl_helper.hpp by reusing the GL values that we already have anyway.
2016-02-08 12:50:00 +01:00
Konstantin Käfer
2f06ca74e2
[core] move platform/gl.hpp to gl/gl.hpp
2016-02-08 12:50:00 +01:00
Konstantin Käfer
a88e58ef3a
[core] use stale glyphs
...
Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
2016-01-15 17:04:08 +01:00
John Firebaugh
5a7d2fd60e
[core] Eliminate platform::assetRoot()
...
I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
2016-01-13 13:40:31 -08:00
John Firebaugh
7c22792bdf
[tests] Rewrite resource loading test
...
Make it more readable and easier to debug.
2015-12-22 18:00:30 -08:00
Konstantin Käfer
4fc8226838
[core] allow changing the orientation
...
You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
2015-12-15 11:41:58 -08:00
Mike Morris
f4d394d935
[node] code review cleanup
2015-12-15 10:19:56 -08:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
John Firebaugh
622f6691b7
[glfw] No longer necessary to wait for style load to add default marker
2015-12-01 09:15:05 -08:00
John Firebaugh
12fc949006
[tests] Don't use icons from the style for annotations
2015-11-30 12:40:09 -08:00
Bruno de Oliveira Abinader
1f0820c8e8
[core] Added MapDebugOptions
...
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00
John Firebaugh
0c1e378bc9
[core] Rewrite image handling
...
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00
John Firebaugh
6ff3ef55f8
[core] Remove unused
2015-11-23 17:28:44 -08:00
John Firebaugh
36081f6486
[core] For binary image data use uint8_t, not char
2015-11-23 17:28:44 -08:00
Konstantin Käfer
85ab48636c
[core] allow changing pitch in GLFW based apps
2015-11-17 19:02:12 +01:00
Adam Hunter
1179096dd8
VAO and extension tracking code.
2015-10-06 13:54:36 -07:00
Adam Hunter
3f9f259619
Added GL logging utility
2015-09-29 15:07:39 -07:00
John Firebaugh
abc1c84fb8
Merge branch 'master' into node
2015-08-31 16:45:21 -07:00
Jason Wray
42dc5336db
iOS perspective gesture support
...
Drag two fingers upward to tilt the map.
Implements #2116
2015-08-26 11:23:03 -07:00
Mike Morris
4540c3c0e8
View::swap -> View::beforeRender View::afterRender
...
To be able to resize the framebuffer on the map thread
in HeadlessView.
2015-08-25 14:39:49 -04:00
Konstantin Käfer
21ec505648
add benchmark mode that shows the real frame time rather than the vsync time
2015-08-11 16:40:40 +03:00
Konstantin Käfer
66f0473bcf
add MBGL_USE_GLES2 define
2015-08-04 14:08:20 +02:00
Konstantin Käfer
62ac43a85b
add ability to add random custom markers to test app
2015-07-08 19:46:02 +02:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
Konstantin Käfer
84e2ea886d
drive map rendering from main thread
2015-06-26 10:32:06 -07:00
Thiago Marcos P. Santos
1f12bcee90
Support shape annotations on GLFWView
...
Add different random triangles count by using the keys 7, 8, 9 or 0.
Q will clear all the annotations.
W will remove one annotation.
2015-06-18 13:39:18 +03:00
Minh Nguyễn
4176d21d1c
Namespaced reachability notification constant
...
Fixes #1717 .
2015-06-12 11:54:46 -07:00
Konstantin Käfer
0c5f8a2c59
press 1 through 6 to add 10^(n-1) points in the current viewport
...
(only works correctly when rotated to north, but this is a just a debug functionality anyway)
2015-06-09 10:29:07 -04:00
Thiago Marcos P. Santos
68989e671c
Remove references to ResourceLoader
...
ResourceLoader got merged with Style.
2015-06-02 20:23:03 +03:00
Konstantin Käfer
f4707f72e0
Replace mbgl::util::make_unique<> with std::make_unique<>
2015-05-26 17:57:38 +02:00
Konstantin Käfer
f11a9f8fd9
prefix Reachability with "MGL" to avoid linking conflicts and app store rejections
2015-05-26 11:13:08 +02:00
Konstantin Käfer
ba3a6ea2b0
update Reachability with latest version
2015-05-26 11:08:31 +02:00
Thiago Marcos P. Santos
da81211fea
Add callback for error notifications on renderStill()
...
The callback will be called when any of the resources requested
from the network failed to load.
There is not recovery implemented yet, so the closest thing to
reseting the Map object and reloading all the resources would
be setting a new style.
2015-05-22 10:44:18 +03:00
John Firebaugh
a2344c36c3
Extensible GL extension support
2015-05-13 19:01:58 -07:00
John Firebaugh
0f7c6b0b52
Remove unused GL feature flags
...
These were used only for prerendered textures, which were removed.
2015-05-13 19:01:57 -07:00
Thiago Marcos P. Santos
0819628fea
Fix Linux GCC Debug build
...
Compiler was complaining about shadowed variable after
macro expansion.
2015-05-08 15:54:17 +03:00
Konstantin Käfer
7dbe768ffc
change the window title to indicate the current style
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
769364c117
Make all GLFWView attributes private
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
168d7c4f17
Add style change functionality to the Linux test app
...
Makes the life of people using Linux as development environment way
easier.
Just press 's' to cycle through 3 different styles.
2015-05-07 11:01:15 +02:00
Konstantin Käfer
27d8e82e1c
lower thread priority of worker threads
2015-05-04 17:33:05 +02:00
Konstantin Käfer
914b6f01f8
add gl::groups back for easier debugging in Xcode
2015-05-04 17:33:05 +02:00
Dane Springmeyer
74604af9c5
fix compile with clang-3.6
2015-05-01 11:00:01 -07:00
John Firebaugh
230027e514
Resize view from map thread
2015-04-28 14:32:24 -04:00