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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user