core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -17,9 +17,9 @@
#include <memory>
using namespace mbgl;
using namespace mbgl::style;
using namespace mbgl::platform;
using namespace mln;
using namespace mln::style;
using namespace mln::platform;
// Note that custom layers need to draw geometry with a z value of 1 to take
// advantage of depth-based fragment culling.
@@ -40,9 +40,9 @@ void main() {
// in the layer implementation because it is intended to reflect how someone
// using custom layers might actually write their own implementation.
class TestLayer : public mbgl::style::CustomLayerHost {
class TestLayer : public mln::style::CustomLayerHost {
public:
void initialize(const mbgl::style::CustomLayerInitParameters&) override {
void initialize(const mln::style::CustomLayerInitParameters&) override {
program = MBGL_CHECK_ERROR(glCreateProgram());
vertexShader = MBGL_CHECK_ERROR(glCreateShader(GL_VERTEX_SHADER));
fragmentShader = MBGL_CHECK_ERROR(glCreateShader(GL_FRAGMENT_SHADER));
@@ -62,7 +62,7 @@ public:
MBGL_CHECK_ERROR(glBufferData(GL_ARRAY_BUFFER, 6 * sizeof(GLfloat), triangle, GL_STATIC_DRAW));
}
void render(const mbgl::style::CustomLayerRenderParameters&) override {
void render(const mln::style::CustomLayerRenderParameters&) override {
MBGL_CHECK_ERROR(glUseProgram(program));
MBGL_CHECK_ERROR(glBindBuffer(GL_ARRAY_BUFFER, buffer));
MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));