summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [core] Get rid of user-specified refsJohn Firebaugh2017-01-042-0/+3
|
* [core] Use PropertyMap typedefJohn Firebaugh2017-01-041-2/+2
|
* [core] Remove constexpr from ColorJohn Firebaugh2017-01-041-10/+10
| | | | GCC can't cope with it.
* [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-211-1/+1
| | | | | | | | | 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`
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-202-3/+4
|\ | | | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [core] use raii to guard backend deactivationIvo van Dongen2016-12-131-6/+25
| |
| * [ios, macos] Migrate MGLCustomStyleLayerAdditions to style layer API (#7250)Minh Nguyễn2016-12-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Replaced custom style layer API with MGLOpenGLStyleLayer Replaced the custom style layer API on MGLMapView with an equally unsupported MGLOpenGLStyleLayer API that nonetheless is consistent with the broader runtime styling API and is compatible with macOS. Fixed an unrecognized selector crash when wrapping a layer of unrecognized type coming from mbgl. * [macos] Added lime green layer demo to macosapp Reprised the demo removed from iosapp in #5091. * [ios, macos] Rationalized MGLOpenGLStyleLayer API MGLStyle now strongly references any MGLOpenGLStyleLayer object that’s added to it, in order to prevent pointers from going stale and make it easy for layer drawing code to get more information about the map view. Replaced the MGLOpenGLStyleLayer callback blocks with overridable instance methods. Added internal documentation for each method. Subclassed MGLOpenGLStyleLayer as LimeGreenStyleLayer inside macosapp. Consolidated -addToMapView: into -addToMapView:belowLayer: to ensure that MGLRedundantLayerException gets raised even if the layer is being inserted rather than added to the bottom of the stack. * [core] Clarified that rendering happens on the main thread * [ios, macos] Fixed removing and re-adding MGLOpenGLStyleLayer Don’t allow index-based layer removal to circumvent -removeFromMapView:, which MGLOpenGLStyleLayer relies on to synchronize the style’s array of MGLOpenGLStyleLayers. When obtaining an MGLOpenGLStyleLayer, get the instance already added to the style instead of creating a new one to wrap the underlying CustomLayer.
| * [core, ios, macos] Add image accessor to MGLStyle (#7096)Roman Blum2016-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * [core] Add interface to get image from sprite atlas * [tests] Add tests for Map::getImage * [ios, macos] WIP: get MGLImage for name from style * [ios, macos] Fixed -imageForName: Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
* | [core] use raii to guard backend deactivationIvo van Dongen2016-12-121-6/+25
| |
* | [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-095-1/+102
| | | | | | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* | [core] Move evaluation algorithm to FunctionJohn Firebaugh2016-12-061-1/+4
| |
* | [core] Inline friend equality operatorsJohn Firebaugh2016-12-062-23/+15
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-031-0/+2
|\ \ | |/
| * [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-281-0/+2
| | | | | | | | | | | | | | | | Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom. Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil. Fixes #6003.
| * [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-131-2/+2
| | | | | | | | | | | | | | | | 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.
| * [linux] Added OSMesa headless backendBruno de Oliveira Abinader2016-11-132-0/+9
| |
* | [core] Functions must have at least one stopJohn Firebaugh2016-12-012-2/+8
| | | | | | | | This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
* | [core] Assert valid range for color componentsJohn Firebaugh2016-11-291-0/+16
| |
* | [core] remove unused umbrella header in favor of individual includesKonstantin Käfer2016-11-221-4/+0
| |
* | [build] move logging to utilKonstantin Käfer2016-11-223-1/+1
| |
* | [build] move headless rendering files to platform/defaultKonstantin Käfer2016-11-223-110/+0
| |
* | [build] move default ThreadPool implementation to platform/defaultKonstantin Käfer2016-11-221-27/+0
| |
* | [build] move GLFW-related files to platform/glfwKonstantin Käfer2016-11-222-135/+0
| |
* | [build] move default_styles to platform/defaultKonstantin Käfer2016-11-221-31/+0
| |
* | [build] move Reachability to platform/darwinKonstantin Käfer2016-11-221-95/+0
| |
* | [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-172-4/+16
| | | | | | | | | | | | | | | | 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.
* | [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-111-2/+2
| | | | | | | | | | | | | | | | 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.
* | [core] Introduce gl::Program templateJohn Firebaugh2016-11-081-5/+0
| |
* | [build] Remove unused gl/implementation.hppBruno de Oliveira Abinader2016-11-083-19/+0
| |
* | [core] Refactor HeadlessBackendBruno de Oliveira Abinader2016-11-081-43/+16
| |
* | [core] Refactor HeadlessDisplayBruno de Oliveira Abinader2016-11-081-13/+6
| |
* | [linux] Added OSMesa headless backendBruno de Oliveira Abinader2016-11-042-0/+9
| |
* | [core] add ability to upload alpha-only textures + imagesKonstantin Käfer2016-11-011-3/+6
| |
* | [core] Moved util::log2 to its own headerBruno de Oliveira Abinader2016-10-312-0/+29
| | | | | | | | | | | | - 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)
* | [core] Modern C++ bindings for OpenGLJohn Firebaugh2016-10-282-1/+5
| |
* | [core] operator bool() must always be explicitJohn Firebaugh2016-10-281-1/+1
| | | | | | | | 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==.
* | [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-276-29/+61
|/
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-257-111/+66
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-258-112/+177
|
* [core] extract weak_ptr mailbox->receive into Mailbox::maybeReceiveMike Morris2016-10-201-3/+1
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-202-2/+30
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [glfw] add map change callback methods to glfw_viewIvo van Dongen2016-10-201-0/+5
|
* [core] TileCoordinate::fromLatLng no longer depens on TransformStateBruno de Oliveira Abinader2016-10-191-1/+1
|
* [core] Move TransformState::{un,}project() to ProjectionBruno de Oliveira Abinader2016-10-191-0/+16
|
* [core] Move TransformState::worldSize() to ProjectionBruno de Oliveira Abinader2016-10-191-4/+10
|
* [core] Improve attribute binding APIJohn Firebaugh2016-10-051-32/+0
|
* [core] Move shader and uniform to gl directoryJohn Firebaugh2016-10-051-1/+1
|
* [core] Refactor BufferJohn Firebaugh2016-10-051-3/+35
|
* [core] LocalFileSource implementation and testsIvo van Dongen2016-09-301-0/+1
|
* [core] move OpenGL extension loading to their own headersKonstantin Käfer2016-09-292-44/+4
|