Commit Graph

9274 Commits

Author SHA1 Message Date
John Firebaugh
d1e2fe511e [core] Introduce and use IndexedTuple 2016-11-08 08:09:29 -08:00
John Firebaugh
1db2ffbc1b [core] Use gl::Program to resolve some rough edges in the GL binding types
* Extract `ignore` util to separate header.
* `Segment` now tracks offset and length of indices, rather than primitives. This is more natural.
* Introduce `VertexVector` and `IndexVector` types. These types carry information about the intended draw mode (`Triangles`, `LineStrip`, etc.), and ensure that elements are always appended in a group size appropriate for that draw mode, for both indexed and unindexed rendering.
* `Program`, rather than `Drawable`, is now the unifying object for draw calls. `Program` is the best place to type check the draw call, because it is typed to carry information about the intended primitive, vertex type, attributes, and uniforms.
* Use the debug shaders for debug tile rendering, like gl-js.
* Fix the draw mode for background. It was drawing triangle strips with a triangles array. Surprised this didn’t cause issues. Now it’s type checked.
2016-11-08 08:09:29 -08:00
John Firebaugh
66bdbc3b96 [core] Introduce gl::Program template 2016-11-08 08:09:29 -08:00
John Firebaugh
36210fe4e9 [core] Make attribute binding more similar to uniform binding 2016-11-08 08:09:28 -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
8e99ae44dd [build] Use mesa-13.0.0-glx in CI builds 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
Fredrik Karlsson
5a828cb80f [ios, macos] override style spec documentation 2016-11-08 13:47:09 +01:00
Fredrik Karlsson
3002023a6c [ios] specify plist-file for settings bundle 2016-11-08 10:12:29 +01:00
Cameron Mace
6b85d4c2f9 added attribution tint color check (#6950) 2016-11-07 18:23:18 -05:00
John Firebaugh
2e76fca473 [tests] Update test-suite 2016-11-07 10:43:06 -08:00
John Firebaugh
aa08796767 [core] Separate pathway for notifying workers of new images/glyphs 2016-11-07 10:16:35 -08:00
Konstantin Käfer
1533d28314 [core] move Value class outside of Uniform to enforce explicit construction 2016-11-07 18:51:47 +01:00
Konstantin Käfer
bd3d4bc89a [core] force explicit initialization of uniform values
force users to use the actual names to avoid implicit conversion accidentally targeting the wrong shader
2016-11-07 18:51:47 +01:00
Konstantin Käfer
ed72581e0c [core] remove Uniforms::value in favor of direct construction 2016-11-07 18:51:47 +01:00
Tobrun
1f8f85fab3 6067 annotation manager (#6913)
* [android] - AnnotationManager and InfoWindowManager refactor

* make AnnotationManager independent from MapView/MapboxMap, add IconManager,

* make code unit testable

* added some class level documentation (for internal use)
2016-11-07 17:23:51 +01:00
Tobrun
5412191ab4 [android] - validate intent and contents before handling (#6938) 2016-11-07 14:38:04 +01:00
Ivo van Dongen
505bf7db7a [android] update custom layer example with invalidation example 2016-11-07 09:38:04 +01:00
Tobrun
ee073f6b96 [android] - rename attributes (#6894) 2016-11-07 09:37:43 +01:00
Tobrun
c5992d71f5 [android] - cleanup unused resources and gradle configurations. (#6896) 2016-11-07 09:25:17 +01:00
Konstantin Käfer
afd43eea3a [core] remove gl.hpp from all headers that don't need it 2016-11-04 21:24:05 +01:00
Konstantin Käfer
7b772611d5 [core] move pixel blitting to gl::Context 2016-11-04 21:24:05 +01:00
Konstantin Käfer
29c5c13aa2 [core] move OpenGL debug information printing to core 2016-11-04 21:24:05 +01:00
Konstantin Käfer
c90a559599 [core] move framebuffer reading to gl::Context 2016-11-04 21:24:05 +01:00
Konstantin Käfer
eed16cb1bb [core] add state tracking to pixel transfer 2016-11-04 21:24:05 +01:00
Konstantin Käfer
008a83b915 [core] add state tracking to pixel store packing alignment 2016-11-04 21:24:05 +01:00
Mike Morris
176730bff6 node-v3.4.0 2016-11-04 15:17:03 -04:00
Mike Morris
39e9b30ebc [core] add more detail to invalid metrics error in createSpriteImage 2016-11-04 14:47:34 -04:00
Bruno de Oliveira Abinader
6c30105a53 [build] Update -test-suite 2016-11-04 18:43:08 +02:00
Bruno de Oliveira Abinader
3f5972cba0 [core] Fix render tile ordering when querying sources 2016-11-04 18:43:08 +02:00
Bruno de Oliveira Abinader
48a082a91b [linux] Use OSMesa when running Node tests 2016-11-04 18:43:08 +02:00
Bruno de Oliveira Abinader
c5c3145b9a [linux] Update target headless backends
Enable OSMesa backend via WITH_OSMESA=1 envvar.

OSMesa backend uses Gallium OSMesa implementation, which uses
LLVMpipe as default driver.
2016-11-04 18:43:08 +02:00
Bruno de Oliveira Abinader
e66cc2e583 [linux] Added OSMesa headless backend 2016-11-04 18:43:08 +02:00
Bruno de Oliveira Abinader
f376827ed2 [build] Replace 'tidy' with 'check' 2016-11-04 16:10:06 +02:00
Minh Nguyễn
4f40fceb72 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.2-master 2016-11-03 13:16:27 -07:00
Minh Nguyễn
7c68d7773d [macos] Enabled runtime styling tests
Added the style layer tests to the test bundle target.

Set the access token to a bogus access token before running any tests. The macOS implementation of MGLMapView doesn’t even attempt to set a default style if the access token is missing, because in macosapp, the access token may be set asynchronously by the user when the preferences window appears.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
0ee119ad76 [macos] Fixed color roundtripping
Fixed an issue that caused the runtime styling API to return colors in the sRGB color space instead of the calibrated RGB color space.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
c38e743d45 [macos] Added MGLValueEvaluator to project
This header was missing from the project. The code was only compiling because the header was still on the search path.
2016-11-02 21:12:45 -07:00
Minh Nguyễn
f98a544886 [ios, macos] Share more tests
Moved MGLGeoJSONSourceTests and MGLTileSetTests into platform/darwin/test/ and added them to the macOS project. Also added a private header needed to compile the tests to the macOS project.
2016-11-02 21:12:45 -07:00
Jason Wray
b8a2fd390c Merge branch 'release-ios-v3.3.5' into master 2016-11-02 16:18:17 -04:00
Minh Nguyễn
2536ccc6a7 [ios] Fixed deprecation warnings 2016-11-02 12:40:40 -07:00
Minh Nguyễn
e2797d1f24 [ios, macos] Rationalized string enum names
Renamed MGLGeoJSONSourceOption and MGLOfflinePackUserInfoKey constants for clarity and to remove redundancy in the Swift-bridged names. Left the old MGLOfflinePackUserInfoKey constants in place as deprecated aliases.
2016-11-02 12:40:40 -07:00
Minh Nguyễn
c2e37f062b [ios, macos] Adopted string enumerations
Notification names and user info keys posted by MGLOfflineStorage, as well as MGLErrorDomain, are instances of string enumerations for ease of use in Swift. Added some shims for projects built with Xcode 7.x.

Fixes #6791.
2016-11-02 12:40:40 -07:00
Jesse Bounds
14663a5185 [ios] Fix bad merge in iosapp
Although functionality was not affected, a previous merge garbled
the language test with a temporary test done for annotation view
performance improvement.
2016-11-02 11:33:39 -07:00
Jason Wray
f41421ff77 ios-v3.3.5 2016-11-02 13:13:47 -04:00
Bruno de Oliveira Abinader
549929cefd [core] Set bucket segments to initialize empty 2016-11-02 18:12:28 +02:00
Tobrun
7534aa1594 [android] - fix public xml api for drawables, fixup QueryRenderedFeatursBoxSymbolCountActivity (#6879) 2016-11-02 16:20:47 +01:00
Tobrun
4d0c42e36a Prefix library resources to avoid naming conflicts (#6878)
* [android] - add library resource prefix

* update SDK resources with prefix

* fixup tests
2016-11-02 12:41:22 +01:00
Ivo van Dongen
9ad5dd1585 [android] add test activity for symbol querying 2016-11-02 13:38:07 +02:00