Commit Graph

396 Commits

Author SHA1 Message Date
Tim Sylvester
010b8f9280 Drawable Renderer (#1570), Evaluate and apply color 2023-08-31 15:36:19 +02:00
Tim Sylvester
b8c0b1a97c Drawable Renderer (#1570), Move layer update to where more state is available.
Evaluate properties and use actual style color.
Fix problems with attribute bindings and depth modes.
2023-08-31 15:36:19 +02:00
Tim Sylvester
3122f81328 Drawable Renderer (#1570), Rebase on main.
Fix drawable ordering issue that was leading to rendering without setting up the VAO
2023-08-31 15:36:19 +02:00
Tim Sylvester
107a4ef467 Drawable Renderer (#1570), Fix duplicate drawable and vertex state bug 2023-08-31 15:36:19 +02:00
Tim Sylvester
5a9b4c3422 Drawable Renderer (#1570), Drawable per tile 2023-08-31 15:36:19 +02:00
Tim Sylvester
e7d32a613a Topic/drawable (#1052) 2023-08-31 15:36:19 +02:00
Tim Sylvester
92ce58db86 Rework attributes (#1048) 2023-08-31 15:36:19 +02:00
Tim Sylvester
f76fb98745 Drawable Renderer (#1570), Rebase on main, squash trivial commits 2023-08-31 15:36:19 +02:00
Tim Sylvester
a646cbf938 Topic/drawable 2 (#1047)
uniforms
2023-08-31 15:36:19 +02:00
Tim Sylvester
aceb0394ba Topic/drawable 2 (#1032)
More vertex attribute work
Move drawables above existing layer rendering. 
Use context for the actual draw call.
Fake the vertexes in the shader to get something actually showing up.
Simplify shader state management
2023-08-31 15:36:19 +02:00
Tim Sylvester
e2bc75289c Topic/drawable 2 (#1029) 2023-08-31 15:36:19 +02:00
Tim Sylvester
14b53e54ec First cut at Drawable fundamentals (#983)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
2023-08-31 15:36:19 +02:00
Siarhei Fedartsou
09f17c0fc4 Implement slice expression (#1133)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-08-26 18:32:45 +02:00
Birk Skyum
288391cac2 Update style spec references (#1150) 2023-06-07 15:08:29 +02:00
Siarhei Fedartsou
379b1fc606 Implement index-of expression (#1113) 2023-05-09 00:16:58 +02:00
pre-commit-ci[bot]
958cdb8206 [pre-commit.ci] pre-commit autoupdate (#1096)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-02 10:15:53 +02:00
Bart Louwers
71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00
Alex Cristici
19b84464a3 Fix render tests failing on Xcode 14.3 (#1046) 2023-04-24 17:45:09 +02:00
Bart Louwers
453af362cb Linux C++ test & render tests on CI (#1033)
Co-authored-by: rpitre-wetdog <129877142+rpitre-wetdog@users.noreply.github.com>
Co-authored-by: Tadej Novak <tadej@tano.si>
Co-authored-by: Robin <boldtrn@users.noreply.github.com>
Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com>
2023-04-22 14:24:42 +02:00
rpitre-wetdog
94e15b7c21 Deleted the Pass file, replacing it with [[nodiscard]] (#1030) 2023-04-18 15:16:41 +02:00
Alex Cristici
8ff6704fc4 API links for OpenGL ES 3.0 (#1007)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-04-14 22:48:53 +02:00
mwilsnd
4828cc7a8b Upgrade OpenGL backend to ES 3.0 (#995)
Co-authored-by: Tadej Novak <tadej@tano.si>
2023-04-13 23:24:45 +02:00
mwilsnd
4d08f6a0c5 Add custom name support to shader registry (#989) 2023-04-09 18:49:44 +03:00
mwilsnd
f207aee091 Migrate shaders to the registry (#964)
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
2023-04-04 21:00:12 +02:00
Andrei-Florin Bencsik
522ca9ed84 Remove not used includes (#962) 2023-03-31 22:53:48 +02:00
mwilsnd
1d8c4b527f Add shader registry (#924) 2023-03-27 19:41:38 +02:00
Bart Louwers
15ad65dd3d Use std::optional instead of mbgl::optional (#911) 2023-03-17 13:51:59 +02:00
Bart Louwers
5b55f1527d Fix style code generation, remove package.json ios (#847) 2023-03-03 11:34:40 -08:00
Fabian Vogt
87025882ec Add some missing cstdint inclusions (#872) (#874) 2023-03-03 15:02:38 +01:00
Bart Louwers
52522277bc Doxygen-based documentation for C++ API (#796) 2023-02-12 14:45:06 +01:00
Bart Louwers
f7fa009f08 Use *_t and *_v trait helpers from C++17 STL (#731) 2023-01-26 11:10:33 +01:00
tdcosta100
d5acff3c74 Avoid implicit casts and make code more portable (#716) 2023-01-23 11:32:53 +01:00
tdcosta100
3bfc6c2c87 Make pointer to glGetString function const (#708) 2023-01-19 12:09:58 +01:00
Tadej Novak
1341f33ba4 Add ClientOptions to be able to pass around client name and version (#365)
* ClientOptions and Qt user agent

* Update CHANGELOG.md

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
2022-08-13 15:36:50 +02:00
Tadej Novak
9cd70bfe7f Qt build improvements and documentation (#277)
* Qt build improvements and documentation

* Update include/mbgl/actor/actor_ref.hpp

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
2022-06-16 20:52:52 +02:00
Tadej Novak
32ed70c95d [msvc] Fix warnings, mainly casting to smaller types (#270)
If the checks by GitHub Actions checks are met, then it seems good to go.  Thanks for supporting FOSS4G!
2022-04-22 11:40:55 -07:00
Oleksandr Stepanov
6db27f50ad Implement map projection functionality (#254)
* Implement map projection functionality

* Add missing MGL_EXPORT

* Remove the automatic copyright header
2022-03-14 07:03:05 -07:00
Tadej Novak
811b18b74e [win] Additional fixes for MSVC and MinGW (#142) 2021-10-19 08:53:23 -07:00
Nuno Goncalves
340f3d6cd6 add missing include to fix error: ‘exception_ptr’ in namespace ‘std’ does not name a type (#172)
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2021-10-19 08:51:51 -07:00
Nathan Gass
cae0fc272e Compression (#147)
* enable header detection in util::decompress and also use it for gziped data

* expose zlib windowBits so mbgl::util::compress can be used for different formats

* also expose windowBits in decompress function for consistency
2021-10-13 16:22:49 -07:00
Tadej Novak
2646f9c414 Add additional 'toString' specialisation (#140) 2021-08-29 22:54:53 +02:00
Tadej Novak
fe041b80ca [msvc] Fix compilation errors and warnings (#141) 2021-08-29 22:53:42 +02:00
Dan Paulat
8b804a1903 maplibre support for Qt6 and MSVC 2019 (#125)
* [qt] Updating CMake project files for Qt6

* [qt] Updating non-test projects for Qt6 and msvc2019

* [qt] Test fixes for Qt6 and msvc2019

* [qt] Link whole test archive for Qt and msvc2019

* [qt] Fixing Qt6 headless backend renderer

* [qt] Fixes for test failures

* [qt] Expression and style parser test fixes

* [qt] Backwards compatibility with Qt5 and Qt6

Minimum version is Qt 5.4 due to use of QOpenGLWidget

* [qt] LLVM is no longer required for a Windows build

* [msvc] msvc2019 fixes for maplibre

* Update test/storage/offline_database.test.cpp

Co-authored-by: Tadej Novak <tadej@tano.si>

* Vector + const is not standard C++

Co-authored-by: Tadej Novak <tadej@tano.si>
2021-08-07 11:10:45 -04:00
Petr Pokorny
d62ff400c6 Replacing hardcoded configuration with configurable API and removing Mapbox assets (#90)
* Refactoring online file source so that tile server configuration is not hardcoded - part 1

* Added default templates

* Update from master

* Renaming MGLAccountManager to MGLSettings. Passing ResourceOptions and TileServerOptions to relevant classes and method in order to remove mapbox hardocded configuration

* Fixing build

* Addedm missing theme

* Unit tests fixes

* Fixing unit tests, adding factory methods for creating predefined configuration.

* Fixing mapbox unit tests

* Additional unit test fixes

* Making MapboxConfiguration default

* Making get/set resource options available in all classes that inherits from FileSource

* Making get/set resource options available in all classes that inherits from FileSource - part 2

* Fixes for Android

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Removing hardcoded configuration in iOS project - part 1

* Fixing wrong file extension, making use of tile server options.

* Use apiKey and MGL_API_KEY everywhere

* Just a rename

* Re-enabling tests and improving MGLSettings init

* Removing mapbox hardcoded configuration, using api key everywhere, implementing JNI conversion for TileServerOptions

* Lint issues.

* Integrating configurable tile server properties into Android SDK - part 2

* Removing mabox accounts

* Exposing multiple configurations to Android SDK - bug fixes

* Removing TileServerOptions from public interface - native methods dont work before mapbox-gl library is loaded

* Adding support for configurable predefined styles

* Migrating predefined styles in test app + cleanup

* Parameter fix

* Bug fixes

* Fixing render test build

* Fixing offline tester

* Fixing benchmark tool

* Fix: typo in method name

* Adding code for public access to TileServerOptions

* Bug fixes and debug code removal

* Fixes for macOS, adding unit tests from MapLibre, removing redundant members from OnlineFileSource

* Unit test fixes

* MacOS test app - migrating to configurable tile server options, part 1

* Fixing offline maps

* Migrating macOS test app to MapTiler

* Minor improvements

* Putting back apiKey test

* Added unit tests for MapTiler configuration

* Migrating test resources to MapTiler

* minor fix

* A few fixes

* Fixing macOS tests, removing feedback functionality

* Migrating ios test app to MapTiler

* Migrating ui tests

* UI tests fix

* Benchmarking app fix

* Cleanup and strings updates

* Migrating benchmark app to maptiler

* API key injection in benchmark app

* Putting back release configuration

* Additional tests and fixing issues identified by thread sanitizer.

* Removing test filters

* Fixes and addressing lint issues

* More Maptiler tests + minro fix

* Android instrumentation test migration to MapTiler. Exposing missing TileServerOptions in Android SDK. Minor fixes.

* No requirements on API key format.

* Fixing offline cache test tool

* Adding configurable domain name for sources, adding source domain int MapTiler configuration, cleanup

* Migrating tests to MapTiler, adding code for canonicalizing URLs, removing mapbox stuff from comments, cleanup

* More tests

* Updated database size

* Lint issues

* Fixed test

* Updating developer config API key

* Fixes for Android, propagaing updated tileServerOptions to native file sources, more tests

* Just a few more fixes

* Propagating updated settings to file sources + additional unit test

* Lint issues

* Removing test filter and fixing incorrect uri

* Release preparation

* macos release notes
2021-06-29 12:44:51 +02:00
Petr Pokorny
2f67fd30d8 Added the mbtiles file source for rendering vector tiles from file stored locally on the device. 2021-01-06 14:06:03 +01:00
Petr Pokorny
41f0be34e7 [general] moving ios and android project under ./platform folder 2020-12-20 12:38:56 +01:00