Łukasz Paczos
7d6255c860
[core] option to perform platform specific operations when creating/destroying core threads
2019-05-22 15:52:55 +02:00
Thiago Marcos P. Santos
056073a904
[build] Use the correct define on Windows
...
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
2019-02-19 16:20:56 +02:00
Thiago Marcos P. Santos
9b66be7bef
[core] Abstract the OpenGL implementation
...
The platform will be responsible to load the OpenGL implementation
and give the function pointers to Mapbox GL Core. The platform might
load OpenGL by linking against some OpenGL implementation, load it
dynamically, etc. It doesn't matter as long as it is a valid
implementation.
Also adds the `::platform` namespace where all the missing symbols and
interfaces expected to be implemented by the platforms will live.
2019-02-12 19:42:08 +02:00
Konstantin Käfer
e76de05402
[build] move logging to util
2016-11-22 20:58:51 +01:00
Konstantin Käfer
117863f111
[build] move headless rendering files to platform/default
2016-11-22 20:58:51 +01:00
Konstantin Käfer
3bc79e316e
[build] move default ThreadPool implementation to platform/default
2016-11-22 20:58:51 +01:00
Konstantin Käfer
67ed3ae3eb
[build] move GLFW-related files to platform/glfw
2016-11-22 20:58:51 +01:00
Konstantin Käfer
a71868fc8d
[build] move Reachability to platform/darwin
2016-11-22 20:58:51 +01:00
Bruno de Oliveira Abinader
687ee1e1c9
[build] Remove unused gl/implementation.hpp
2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
d0ac12309b
[core] Refactor HeadlessBackend
2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
297c303e88
[core] Refactor HeadlessDisplay
2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
e66cc2e583
[linux] Added OSMesa headless backend
2016-11-04 18:43:08 +02:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Konstantin Käfer
a4d259c33f
[core] move gl::Context to Backend and refactor View
2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694
[core] separate Backend from View for headless rendering
2016-10-25 13:52:36 -07:00
Mike Morris
817c26111a
[core] [node] pass thread pool impl to Map constructor
...
Updates mbgl::Map constructor usage everywhere
Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Ivo van Dongen
ab85fdb452
[glfw] add map change callback methods to glfw_view
2016-10-20 17:02:40 +03:00
Konstantin Käfer
2ec2860ce5
[core] move OpenGL extension loading to their own headers
2016-09-29 13:19:27 -07:00
Konstantin Käfer
cc78b74098
[core] remove dependence on gl.h types
2016-09-29 10:17:47 -07:00
Konstantin Käfer
15aece8a30
[core] introduces types for GL objects
2016-09-29 10:17:47 -07:00
Konstantin Käfer
63e53de157
[core] standardize on uint16_t for texture sizes
2016-09-27 10:42:10 +02:00
Thiago Marcos P. Santos
1d7a5b0fe0
[tests] Add unit test for style loading failures
2016-08-24 20:02:39 +03:00
Thiago Marcos P. Santos
547af7475e
[Qt] Implement a Qt headless renderer
...
Using legacy QGLWidget because we support Qt4.
2016-08-22 16:52:02 +03:00
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