Konstantin Käfer
afb93d4d3a
[core] track VAOs and Buffers
2016-09-26 11:14:40 +02:00
Young Hahn
08c08f6705
[core] Don't use depth test unless text is pitch-aligned to map ( #6404 )
...
* [core, ios, android] Use `auto` value for properties with calculated defaults
* Fix render tests
* [core] Don't use depth test unless text is pitch-aligned to map.
* Bump mapbox-gl-test-suite
* TransformState pitch is already in radians
* Reduce setDepthSublayer calls
* Bump test suite
2016-09-22 19:51:41 -04: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
dc1861f6d5
[core] Merge GlyphStore and GlyphAtlas
2016-09-19 09:40:43 -07:00
Brad Leege
e49c96f05c
[core] #3980 - Putting friend class SymbolLayout back
2016-09-14 16:57:54 -07:00
Brad Leege
d0f9ba4998
[core] #3980 - Switching Core GL instances of map to unordered_map
2016-09-14 16:40:20 -07:00
John Firebaugh
a9f5224664
[core] Avoid gratuitous SymbolBucket creation
2016-09-14 13:41:56 -07:00
John Firebaugh
c8217a8739
[core] Extract SymbolLayout from SymbolBucket
...
SymbolLayout lives on the worker thread and contains the persistent data needed for repeated placement. SymbolBucket contains the data generated during placement, and is transferred to the main thread for rendering.
This eliminates the risky sharing of GeometryTile::buckets between the main thread and worker thread during TileWorker::redoPlacement.
While here, rationalize the names of states a SymbolLayout may be in:
* Pending: Waiting for the necessary glyphs or icons to be available.
* Prepared: The potential positions of text and icons have been determined.
* Placed: The final positions have been determined, taking into account prior layers.
In TileWorker, all SymbolLayouts are stored in a single vector. Each SymbolLayout knows what state it is in, and TileWorker can easily determine how much progress it can make toward a final result.
2016-09-14 13:41:56 -07:00
Konstantin Käfer
f3191dbbb4
[core] change bool *AlongLine to SymbolPlacementType
2016-09-07 17:56:38 +02:00
Konstantin Käfer
3d960c8136
[core] change bool round to LinePatternCap
2016-09-07 17:56:38 +02:00
Konstantin Käfer
85e222c825
[core] change bool overdraw to PaintMode::Overdraw
2016-09-07 17:56:38 +02:00
Konstantin Käfer
ff0c895eaa
[core] change bool wrap/repeating to enum class SpritePatternMode
2016-09-07 17:56:38 +02:00
John Firebaugh
5b8d90bf00
[core] Delete the now-unused ptr.hpp
2016-09-06 12:52:13 -07:00
Konstantin Käfer
e6bcbdd5d3
[core] set correct depth values for CustomLayer so compositing works
2016-08-22 18:32:12 +02:00
Konstantin Käfer
0df60c4651
[core] add ability show visualize the depth buffer to the GLFW and macOS app
2016-08-19 17:41:55 +02: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
30f5aa72de
[core] Make MapDebugOptions::StencilClip a no-op in Release mode
2016-07-20 12:48:52 +03:00
Bruno de Oliveira Abinader
a709ea2656
[core] Make MapDebugOptions::Overdraw a no-op in Release mode
2016-07-20 12:48:52 +03:00
John Firebaugh
da35ef9f49
[core] Add support for $id key to filters
...
https://github.com/mapbox/mapbox-gl-style-spec/issues/391
2016-07-18 12:37:36 -07:00
Thiago Marcos P. Santos
389c7615eb
[core] Revert workaround for std::atomic on ARMv5
...
Got fix on r12.
https://github.com/android-ndk/ndk/issues/31
2016-07-13 17:56:51 +03:00
Bruno de Oliveira Abinader
c670b08ecb
[core] Use PropertyValue<T> for Annotation line/fill
2016-07-13 11:57:09 +03:00
John Firebaugh
fe99295970
[core] Remove unused
2016-07-11 18:39:50 -07:00
John Firebaugh
ae838b397b
[core] Move translatedMatrix to RenderTile
2016-07-11 18:39:50 -07:00
John Firebaugh
a27b5586e5
[core] Pass RenderTile rather than individual parameters
2016-07-11 18:39:50 -07:00
John Firebaugh
6e77149c13
[core] Introduce PaintParameters
...
Use it to DRY selection of regular vs. overdraw shaders and VAOs.
2016-07-11 18:39:50 -07:00
John Firebaugh
822ec091da
[core] Introduce non-anonymous Shaders class
2016-07-11 18:39:50 -07:00
Bruno de Oliveira Abinader
5d64cde6d9
[core] Fix raster shader opacity in some cases
2016-07-11 15:47:41 +03:00
Konstantin Käfer
4f26c8122a
[core] track texture state to avoid redundand binds
2016-07-08 13:11:25 +02:00
John Firebaugh
c09fb0f519
[core] Add support for circle-pitch-scale
2016-07-07 14:32:27 -07:00
John Firebaugh
c8e87128b1
[core] Make extrudeScale calculations more similar to JS
2016-07-07 14:18:00 -07:00
Konstantin Käfer
2e10c0a866
[core] don't force GL state to be set when calling .reset()
...
We are using Value::reset() to change a piece of GL state to its default value. However, the current implementation always executes the GL call, even if our state tracking system knows that it's already at that value. The new implementation of Value::reset() now respects that, resulting in a lot fewer GL calls.
2016-07-07 16:29:34 +02:00
Konstantin Käfer
69c529e264
[core] move shaders to anon struct and alias them
2016-07-07 15:06:59 +02:00
Konstantin Käfer
1311ed24ad
[core] refactor Raster and allow explicit mipmapping levels
2016-07-04 14:24:32 +02:00
Bruno de Oliveira Abinader
9f18d19a20
[core] Fix typo in coveringPlainOverdrawArray
2016-07-04 12:33:05 +03:00
Bruno de Oliveira Abinader
aa1fa49af5
[core] Update RasterShader
...
Ref: https://github.com/mapbox/mapbox-gl-shaders/issues/1
2016-07-02 18:04:20 +03:00
Bruno de Oliveira Abinader
3bf85cc55d
[core] Added StaticRasterVertexBuffer
2016-07-02 17:21:59 +03:00
Bruno de Oliveira Abinader
d8a10ac509
[core] Added missing overdraw arrays
2016-07-02 17:18:00 +03:00
Bruno de Oliveira Abinader
f94b354b53
[core] Fix typo in shader outline pattern
2016-07-02 17:17:28 +03:00
Bruno de Oliveira Abinader
b3c07b0277
[core] Enforce solid fragColor for debug frame/text
2016-07-02 13:05:21 +03:00
Bruno de Oliveira Abinader
a17b0bcd82
[core] Fix overdraw mode on Linux
...
- Use glBindAttribLocation for GLSL attributes.
- Create a separate shader for each shader that supports overdraw.
Needed because each uniform location must be known for every program.
- Create a separate VAO for each shader inside buckets.
Needed because we can only bind a VAO to a specific shader.
Fixes #5435 .
2016-07-01 19:47:35 +03:00
Konstantin Käfer
77e7846756
[core] code style cleanups
...
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
Brad Leege
8e0b06e4dc
[android] [core] #5521 - Removing extraneous equals sign
2016-06-30 13:39:49 -05:00
John Firebaugh
8956179ce0
[core] Merge TexturePool into ObjectStore; pool all textures ( #5477 )
2016-06-27 13:44:46 -07:00
Konstantin Käfer
d58ed6f9f3
[core] remove TexturePool dependency from Raster constructor
2016-06-22 16:28:32 +02:00
Bruno de Oliveira Abinader
97dffeb03d
[core] s/Wireframe/Overdraw/g
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
df5a395708
[core] Refactor wireframe to match JS overdraw mode
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b
[core] Avoid redundant 'inline' usage
2016-06-18 23:46:50 +03:00
Bruno de Oliveira Abinader
41497e9c41
[core] Cleaned up enum classes
...
- Replaced static_cast with C++ casts.
- Replaced inline with constexpr.
2016-06-18 20:23:00 +03:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
7e1a9b7274
[core] Update test suite; use linear interpolation for rotated icons
2016-06-15 17:28:47 -07:00