John Firebaugh
3d2d57cd30
[core] Assert valid range for color components
2016-11-29 06:52:24 -08:00
Konstantin Käfer
4577c56745
[core] remove unused umbrella header in favor of individual includes
2016-11-22 20:58:51 +01: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
9353fcbf4c
[build] move default_styles to platform/default
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
John Firebaugh
38fcbe21d4
[core] Convert style properties to a tuple-based approach
...
This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md .
The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily.
Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
2016-11-17 15:13:38 -08:00
Jesse Bounds
edf40bb6d9
[core] Return source and layer ownership ( #7014 )
...
When a source or layer is removed transfer ownership back to the
caller so it can (optionally) take it. Preserve the behavior that
removing a CustomLayer triggers deinitialization. Deinitialize all
custom layers when a style is destroyed in case those layers are not
explicitly removed.
2016-11-11 14:40:04 -08:00
John Firebaugh
66bdbc3b96
[core] Introduce gl::Program template
2016-11-08 08:09:29 -08: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
358701f475
[core] add ability to upload alpha-only textures + images
2016-11-01 18:41:52 +01:00
Bruno de Oliveira Abinader
38f536049a
[core] Moved util::log2 to its own header
...
- Added util::{MIN,MAX}_ZOOM_F to avoid consecutive conversions from
double to float
- Move util::log2 to its own header (part of mbgl/math)
2016-10-31 16:53:07 +02:00
John Firebaugh
0e57d10d77
[core] Modern C++ bindings for OpenGL
2016-10-28 17:14:01 -07:00
John Firebaugh
a4c82b8a3b
[core] operator bool() must always be explicit
...
Otherwise, it can participate in unexpected conversions. Case in point: GlyphSet::insert was comparing the result of GlyphMetrics::operator bool() where it wanted to use operator==.
2016-10-28 17:10:45 -07: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
7bbd49c72c
[core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive
2016-10-20 14:39:11 -04: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
Bruno de Oliveira Abinader
ef62b78fce
[core] TileCoordinate::fromLatLng no longer depens on TransformState
2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
2188d68b6c
[core] Move TransformState::{un,}project() to Projection
2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
f01a829dc9
[core] Move TransformState::worldSize() to Projection
2016-10-19 08:11:41 +03:00
John Firebaugh
e4310aa874
[core] Improve attribute binding API
2016-10-05 10:52:19 -07:00
John Firebaugh
73334ac8fa
[core] Move shader and uniform to gl directory
2016-10-05 10:52:19 -07:00
John Firebaugh
7a3bef091e
[core] Refactor Buffer
2016-10-05 10:52:19 -07:00
Ivo van Dongen
1bf12e20a6
[core] LocalFileSource implementation and tests
2016-09-30 14:57:26 +02: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
a8b007daa0
[core] remove unused GL_TRACK functions
2016-09-28 16:34:07 +02:00
Konstantin Käfer
21386b3146
[core] move GL value accessors to gl::value namespace
2016-09-27 11:03:29 -07:00
Konstantin Käfer
63e53de157
[core] standardize on uint16_t for texture sizes
2016-09-27 10:42:10 +02:00
Konstantin Käfer
ffa8a7668b
[core] store viewport and FBO binding
2016-09-27 10:42:10 +02:00
Minh Nguyễn
7ff036cd01
[core] Removed map attribution API
...
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
2016-09-26 15:42:57 -07:00
Minh Nguyễn
f307652548
[core] Source-driven attribution
...
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.
Fixes #2723 .
2016-09-26 11:37:06 -07:00
Konstantin Käfer
afb93d4d3a
[core] track VAOs and Buffers
2016-09-26 11:14:40 +02:00
Konstantin Käfer
adcb449ff3
[core] make GL value defaults constexpr
2016-09-26 11:14:40 +02:00
Thiago Marcos P. Santos
486bdddb23
[core] Add interface to add sprites to the style
...
Unlike annotations, they will go away when we change the style.
2016-09-22 17:43:28 +03:00
Young Hahn
6a2ce352d1
Better handling for undefined icon|text-rotation-alignment ( #6253 )
...
* [core, ios, android] Use `auto` value for properties with calculated defaults
* Fix render tests
2016-09-21 16:07:33 -07:00
Mike Morris
6fe621bbef
[core] check GL errors in loop
...
As recommended in https://www.opengl.org/wiki/GLAPI/glGetError
char* -> std::string
2016-09-21 10:33:40 -04:00
Molly Lloyd
598f7c6ad5
[core] allow offline region metadata to be updated ( #6338 )
2016-09-20 17:43:00 +02:00
Lucas Wojciechowski
37cb2bd756
[core] Convert uses of std::set to std::unordered_set ( #6325 )
...
* src/mbgl/annotation/annotation_manager.hpp
* src/mbgl/algorithm/update_renderables.hpp
* src/mbgl/geometry/glyph_atlas.hpp
* src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp
* src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp
* src/mbgl/sprite/sprite_atlas.hpp
* include/mbgl/storage/network_status.hpp
* src/mbgl/text/collision_tile.cpp
* src/mbgl/style/update_batch.hpp
* platform/default/mbgl/storage/offline_download.hpp
* Add GlyphRangeSet typedef
* Fix whitespace & unused imports
2016-09-19 17:26:25 -07:00
John Firebaugh
41bbd4e4f7
[core] Use an actor model for tile worker concurrency
2016-09-16 12:01:06 -07:00
Tobrun
9ef65440b6
[core] [android] - public api configurable base endpoint ( #6309 )
...
add runloop to test
2016-09-15 22:01:09 -07:00