summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/layers
Commit message (Collapse)AuthorAgeFilesLines
* [core] Replace remaining dynamic_cast with static_castBruno de Oliveira Abinader2018-08-082-3/+3
|
* [core] Use hand-rolled RTTIJohn Firebaugh2018-07-248-10/+10
|
* [core] Check all bucket dynamic_castsJohn Firebaugh2018-07-248-22/+51
| | | | A mismatch can occur when a layer changes from one type to another.
* [core] Add `symbol-placement: line-center`Chris Loer2018-07-232-20/+4
| | | | | - Remove unused/vestigial 'maxCameraDistance' - Create a single collision circle for line labels that are less than half the width of a collision circle
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-211-4/+6
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-041-2/+2
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-179-137/+344
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mapbox-gl-js # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/gradle/dependencies.gradle # platform/darwin/src/MGLVectorTileSource.mm # platform/darwin/src/MGLVectorTileSource_Private.h # platform/ios/CHANGELOG.md # src/mbgl/style/expression/compound_expression.cpp
| * [core] Don't crash when attribute count is exceededKonstantin Käfer2018-05-039-137/+344
| |
* | [core] only index features within tile boundariesAnsis Brammanis2018-04-261-1/+1
| | | | | | | | | | | | | | Previously we relied on tile buffers for querying features who's rendered representations cross tile boundaries. Now we query multiple tiles making it unnecessary to index features that are completely outside a tile's boundaries.
* | [core] fix circle querying for scale and alignmentChris Loer2018-04-2610-26/+82
| | | | | | | | | | | | | | This fixes circle querying for cases where either circle-pitch-alignment=map or circle-pitch-scaling=viewport
* | [core] Streaming TileCover for polygonal regions (#11267)Asheem Mamoowala2018-04-261-0/+1
|/ | | A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
* [core] Add Projection matrix to CustomLayerRenderParameters to transform web ↵Asheem Mamoowala2018-04-051-0/+4
| | | | mercator world coordinates to GL coordinates.
* Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-022-18/+14
| | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
* [core] check opengl error state after custom layer invocationsIvo van Dongen2018-03-011-3/+4
|
* [core] Don't reuse heatmap render texture on viewport resize.Chris Loer2018-02-221-1/+1
| | | | Fixes issue #11228.
* [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-152-0/+226
| | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* [core] add maxzoom uniform for raster-dem tilesets (#11134)Molly Lloyd2018-02-142-2/+8
| | | | | | | | | | * add maxzoom uniform to support external tilesets * update git sha for gl-js * try and fix android crash * name default maxzoom constant
* [core] align raster-dem tiles to pixel grid (#11119)Molly Lloyd2018-02-061-2/+2
| | | | | | * align raster-dem tiles to pixel grid * revert ignored hillshade tests
* [core] Account for overscaling in debug collision circles.Chris Loer2018-02-061-1/+2
| | | | | Fixes issue #11116. Port of GL JS issue $6041.
* [core] align raster imagery rendering to pixel rid to avoid blurrinessKonstantin Käfer2018-01-241-2/+2
|
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-232-0/+196
|
* [core] Account for circle-stroke-width in queryRenderedFeaturesJohn Firebaugh2018-01-101-5/+4
|
* [core] Use separate shaders for background and clippingLauren Budorick2018-01-091-15/+12
|
* Merge branch 'release-agua' into masterupstream/fabian-merge-release-aguaFabian Guerra2018-01-042-8/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # cmake/core-files.cmake # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/text/LocalGlyphRasterizer.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/LocalGlyphActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationTintActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_local_glyph.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml # platform/darwin/src/MGLMapSnapshotter.mm # platform/darwin/src/MGLRendererConfiguration.h # platform/ios/CHANGELOG.md # platform/ios/DEVELOPING.md # platform/ios/INSTALL.md # platform/ios/README.md # platform/ios/resources/bg.lproj/Localizable.strings # platform/ios/resources/es.lproj/Localizable.strings # platform/ios/resources/vi.lproj/Localizable.strings # platform/ios/src/MGLMapView.mm # platform/macos/macos.xcodeproj/project.pbxproj # src/mbgl/text/glyph_manager.cpp
| * Fix CustomLayer context retain count (#10765)Asheem Mamoowala2017-12-202-8/+14
| | | | | | | | | | | | * [core] RenderCustomLayer should de-initialize old context * [iOS, macOS] Use toll-free bridging to retain/release MGLOpenGLStyleLayer instead of a separate array.
* | [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-172-7/+2
| | | | | | | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* | [core] Remove dead codeChris Loer2017-11-171-3/+0
| | | | | | | | | | | | - CollisionTile - FrameHistory - PlacementConfig
* | [core] Update shaders/tests from GL JS.Chris Loer2017-11-171-18/+56
|/
* [core] custom layer - add contextLost callbackIvo van Dongen2017-09-221-2/+6
| | | | - optional callback method that can be used to do cleanup when the context has been lost before re-initialisation
* [core] send signal to RenderCustomLayer when gl context has been lostIvo van Dongen2017-09-222-1/+6
| | | | - Prevents cleaning up of GL resources that no longer exist, resulting in a crash
* Preserve depth buffer between 3D layers + optimize render order (#9931)Lauren Budorick2017-09-212-103/+95
| | | Port of https://github.com/mapbox/mapbox-gl-js/pull/5101: adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
* [core] Fix z-fighting of translucent fillsJohn Firebaugh2017-09-081-1/+3
|
* [core] fix rendering of fill outlines that have a different color than the ↵Konstantin Käfer2017-08-071-30/+22
| | | | fill itself
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-262-4/+4
|
* [core] generate masks for raster tiles to avoid painting over childrenKonstantin Käfer2017-07-241-4/+13
|
* [core] Refactor Painter awayJohn Firebaugh2017-07-1916-187/+186
|
* [core] Move extrusion rendering to RenderFillExtrusionLayerJohn Firebaugh2017-07-191-0/+39
|
* [core] Inline Painter::renderSymbolJohn Firebaugh2017-07-191-8/+195
|
* [core] Inline Painter::renderLine and RenderImageSource::renderJohn Firebaugh2017-07-191-10/+100
|
* [core] Inline Painter::renderLineJohn Firebaugh2017-07-191-7/+78
|
* [core] Inline Painter::renderFillExtrusionJohn Firebaugh2017-07-191-8/+77
|
* [core] Inline Painter::renderFillJohn Firebaugh2017-07-191-8/+134
|
* [core] Inline Painter::renderCircleJohn Firebaugh2017-07-191-7/+46
|
* [core] Inline Painter::renderBackgroundJohn Firebaugh2017-07-191-1/+74
|
* [core] Eliminate Bucket::renderJohn Firebaugh2017-07-1913-11/+103
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-181-1/+1
|
* [core] Rework attribute binding (again)John Firebaugh2017-07-121-1/+1
| | | | | | | | | | These changes are necessary for programs whose set of active attributes is not fixed at compile time by a template parameter pack, but rather varies based on the generated shader text at runtime. In such cases, the attribute location of a given named attribute may vary between instances of the same Program. Previously, attribute bindings were implicitly associated with a location based on template parameter order, and -1 was used to indicate an inactive attribute. This left us unable to disable the appropriate attribute when it went from active to inactive. Now, the state tracker for bindings explicitly associates locations and state, and an empty optional is used to indicate an inactive attribute. In addition, a gl::VertexArray class is now exposed, allowing more flexibility in the relationship between Programs, Segments, and attribute bindings. In this commit, that relationship does not change, but the subsequent commit adjusts it to match gl-js, reduce rebinds, and work around buggy VAO implementations. VertexArray uses a pimpl idiom in order to support implementations that lack the VAO extension. In that case, all VertexArrays share global binding state, reflecting the platform reality in the absence of VAOs, while still providing a uniform API.
* [core] Update shaders.Chris Loer2017-07-121-1/+1
| | | | | Implements 'icon-pitch-alignment' (issue #9345) Fixes issue #9456 (map-aligned point label regression)
* [core] improve legibility of labels that follow linesAnsis Brammanis2017-07-112-0/+3
| | | | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/4781 This improves legibility of labels that follow lines in pitched views. The previous approach used the limited information in the shader to calculate put the glyph in approximatelyright place. The new approach does this more accurately by doing it on the cpu where we have access to the entire line geometry.
* [core] Set "max_camera_distance" to 1.5 for viewport-aligned road labels.Chris Loer2017-07-112-2/+18
| | | | Viewport-aligned curved labels start to look very strange in the distance. Until we have a better system for projecting them, just prevent them from showing.