John Firebaugh
3790caafa3
[core] Factor timePoint initialization
2017-05-03 11:20:01 -07:00
John Firebaugh
d5f4d0f05f
[core] Move render-related sources out of style directory/namespace
...
Moves the following to the renderer directory and out of the style namespace:
* CascadeParameters
* PropertyEvaluationParameters
* UpdateParameters
* PropertyEvaluator
* DataDrivenPropertyEvaluator
* CrossFadedPropertyEvaluator
* PaintPropertyBinder
* PaintProperyStatistics
* PossiblyEvaluatedPropertyValue
* TransitioningLight
* EvaluatedLight
2017-05-03 08:30:17 -07:00
John Firebaugh
6c7730ee7c
[core] No need to Update::Classes after removing a layer
2017-05-03 08:30:02 -07:00
John Firebaugh
b8b9978b69
[core] No need to manually set Update::Classes flag after annotation update
...
Since the advent of the runtime styling APIs, the APIs used by AnnotationManager::updateStyle will automatically set this flag as needed.
2017-05-03 08:30:02 -07:00
John Firebaugh
1e26d99e1e
[core] Remove forced style cascade
...
This should happen automatically during rendering. After removing, I can no longer replicate the original issue (#1889 ).
2017-05-03 08:29:46 -07:00
John Firebaugh
e9872b4ed0
Revert "[node] Temporary: exit(0) on exception in Painter::render"
...
This reverts commit f0d4411871 .
2017-05-02 16:13:21 -07:00
John Firebaugh
3f0c89d633
[core] Refactor Source::*Impls into RenderSources and TilePyramid
2017-05-02 08:45:09 -07:00
John Firebaugh
c2b00378b7
[all] Push querySourceFeatures back out to Map
...
Once Source and RendererSource are split, Source will no longer have access to tiles.
2017-05-02 08:45:09 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
Konstantin Käfer
59055cf403
[core] Move Sprite parsing to thread pool
2017-04-24 10:42:47 +02:00
John Firebaugh
092da9c956
[core] Remove non-Map-dependent projection methods from Map
2017-04-18 14:43:31 +03:00
Bruno de Oliveira Abinader
09a2271576
[core] Ignore shortest path in Map::pixelForLatLng
2017-04-14 12:52:20 -07:00
Bruno de Oliveira Abinader
2f4d162deb
[core] Tighten geo.hpp ctors
2017-04-14 12:33:13 -07:00
John Firebaugh
f1c06f8d83
[all] Remove redundant scale-related camera methods
...
We don't need to have two different measurement systems for map zoom.
2017-04-13 10:28:44 -07:00
John Firebaugh
62576e24a0
[core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural "empty" state
2017-04-11 14:50:22 -07:00
Bruno de Oliveira Abinader
c4fc89977b
[core] Added {set,get}{Min,Max}Pitch
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
c1c6c1e298
[core] Added Map::{get,set}LatLngBounds
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
ddc6dcf9cd
[core] Move {Map,Transform}::{get,set}{Min,Max}Zoom to bounds pragma
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
John Firebaugh
16a2839e23
[all] Make LatLng coordinates read-only
2017-04-06 09:22:51 -07:00
John Firebaugh
0314a46ee4
[core] Tighten LatLng and other geo.hpp classes
...
* Remove LatLng::null and enforce invariants
* Remove unnecessary operator bool()
2017-04-06 09:22:51 -07:00
Konstantin Käfer
a84aa453a9
[core] Privatize OpenGL/Context headers
2017-03-28 13:53:19 +02:00
John Firebaugh
34aa7f880e
[core] Move map/change.hpp to public include directory
2017-03-28 13:53:19 +02:00
Bruno de Oliveira Abinader
80915992ab
[core] Added Map::latLngBoundsForCamera
2017-03-24 13:51:35 +02:00
Konstantin Käfer
e67abfbe67
[core] Refactor OpenGL extension loading mechanism
...
Previously, we initialized global variables that held pointers to the extension functions. While this seemed to work, the spec doesn't guarantee that the function pointers are identical for different OpenGL contexts. Therefore, we are now making them a member variable of the Context object.
2017-03-23 14:50:11 -07:00
Konstantin Käfer
234384ece9
[core] Move OpenGL extension initialization to Backend
2017-03-23 14:50:11 -07:00
Konstantin Käfer
8e5214144e
[core] Ensure that a BackendScope exists when doing GL calls
2017-03-23 14:50:11 -07:00
Konstantin Käfer
3c91b6b7de
[core] cache binary shaders on Android
2017-03-22 15:59:10 +01:00
Bruno de Oliveira Abinader
c1a410be8b
[core] s/onSourceDidChange/onSourceChanged/ + source ref
2017-03-21 17:36:56 +02:00
Bruno de Oliveira Abinader
5ff4110243
[core] Pass std::exception_ptr in MapObserver::onDidFailLoadingMap
2017-03-17 11:25:48 +02:00
Bruno de Oliveira Abinader
e10e37bc20
[core] Pass std::exception_ptr in style::Observer::onStyleError
2017-03-17 11:25:48 +02:00
Bruno de Oliveira Abinader
fc70cbf1e1
[core] Replace MapChange enum with MapObserver
2017-03-15 14:53:32 +02:00
Ivo van Dongen
548675a196
[core] rename query options for query rendered features
2017-03-09 13:11:23 -08:00
Asheem Mamoowala
60d10dd27d
[core] Add support for queryRenderedFeatures filter
2017-03-04 15:42:07 -08:00
Tobrun
34fef22d95
[core] [android] - allow zooming/scaling to use AnimationOptions ( #8181 )
...
[glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
2017-02-28 13:22:47 -05:00
Tobrun
a0992f0550
[core] - allow moveBy to use AnimationOptions
...
[android] - update jni bindings for moveBy with an interpolator
2017-02-20 16:52:18 -08:00
John Firebaugh
7d3c9338c9
[core] Link BackendScopes in a list for additional assertions
2017-02-20 12:04:21 -08:00
John Firebaugh
694159c49e
[core] Nestable BackendScope
2017-02-20 12:04:21 -08:00
John Firebaugh
5524506abd
[core] Eliminate SpriteAtlas::updateDirty
...
Simplify internal datastructures. Properly remove rects from the bin pack when an image is removed.
2017-02-14 16:28:12 -06:00
Jason Wray
4c311a0091
[core] Expose Map::setZoom with anchor parameter
2017-02-13 18:35:04 -05:00
John Firebaugh
f0d4411871
[node] Temporary: exit(0) on exception in Painter::render
...
Hope to get complete apitrace with a clean exit rather than an abort.
2017-02-06 17:57:37 -06:00
John Firebaugh
b6894dd4fc
[core] Unify update and render into a single step
...
Update only when, and just prior to, rendering, giving no opportunity to interleave unexpected state changes. This means that every time anything about the state is changed, we'll have to attempt a render to reflect that change. In the case of continuous rendering this has happened before this change as well, but it leaves no room for time to pass between an update and a render. In the case of still image rendering, a render call will only actually paint something to the view when all resources have been loaded.
2017-01-06 12:03:48 -08:00
Ansis Brammanis
2cf238f74e
[core] fix matrix z range and remove hack
...
ported from -js: 0b5520fa5ab2a4659d80dcffa8b035a0d84fe1ca
This should fix the issue behind #2270 and remove the need for the hack
added in #3740 .
2016-12-21 15:46:36 -08:00
Ansis Brammanis
38b5cb0c77
[core, ios] replace altitude with fov
...
ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19
`altitude` was a terribly-named variable that was used to indirectly
control the fov. This should eliminate some confusion.
`altitude` was equivalent to `cameraToCenterDistance / height`
2016-12-21 15:46:36 -08:00
Minh Nguyễn
a6b1773a44
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
...
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
Ivo van Dongen
b221b6c5fb
[core] Swap order of Style::recalculate and Style::relayout
...
Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
2016-12-13 12:56:08 -08:00
Ivo van Dongen
18730d598d
[core] use raii to guard backend deactivation
2016-12-13 10:03:05 -08:00
Ivo van Dongen
28be37fcbe
[core] Swap order of Style::recalculate and Style::relayout
...
Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
2016-12-12 16:49:02 -08:00
Ivo van Dongen
c76a933514
[core] use raii to guard backend deactivation
2016-12-12 09:05:23 -05:00