Bruno de Oliveira Abinader
3ae506ee13
[core] Use NDEBUG instead of DEBUG
...
CMake defines 'NDEBUG' by default for release build, so we can check if
that's not defined instead of using 'DEBUG' for debug build.
2016-08-05 11:42:22 +02:00
Bruno de Oliveira Abinader
0e60238596
[glfw] Added 'addRandomLineAnnotations'
2016-07-23 14:10:33 +03:00
Thiago Marcos P. Santos
4a1a7937ae
[core] Move set/get thread names to platform::
...
Android needs its own implementation.
2016-07-16 10:38:42 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b
[core] Avoid redundant 'inline' usage
2016-06-18 23:46:50 +03:00
Bruno de Oliveira Abinader
6b5caf4b2c
[tidy/linux] modernize-use-nullptr
2016-06-14 22:14:11 +03:00
John Firebaugh
282e626ac1
[core] Make enum ↔ string conversion more generic-friendly
...
Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types.
While there, properly validated enumerated property values.
2016-06-13 17:22:05 -07:00
Bruno de Oliveira Abinader
4d75001e9a
[tidy] Check modernize-use-override
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-override.html
2016-06-13 23:32:06 +03:00
Konstantin Käfer
2bdecdf9f9
[core] fix pedantic warning messages
2016-06-13 11:16:19 +02:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
John Firebaugh
8985b1311b
[core] Use geometry.hpp types for shape annotations
2016-06-01 17:36:50 -07:00
Konstantin Käfer
e2bcea90fc
[core] use #pragma once instead of ifdef include guards
2016-05-25 21:35:37 +02:00
Bruno de Oliveira Abinader
1769e6fcb4
[core] Move GLFW stencil clip debug to core
...
This makes the stencil clip debug available to all platforms.
Fixes #4669 .
2016-05-24 19:58:24 +03:00
Thiago Marcos P. Santos
94093493d5
[glfw] Atomic is no longer needed
...
All View events come from the same thread.
2016-04-28 16:15:07 +03:00
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