Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 11, 2025
1 parent 51421cb commit e5e87ad
Show file tree
Hide file tree
Showing 11 changed files with 163 additions and 107 deletions.
4 changes: 2 additions & 2 deletions include/mbgl/style/layers/custom_drawable_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class CustomDrawableLayerHost {

class CustomDrawableLayerHost::Interface {
public:

enum class LineShaderType {
Classic,
WideVector
Expand Down Expand Up @@ -181,7 +180,8 @@ class CustomDrawableLayerHost::Interface {
const std::array<std::array<float, 2>, 2>& textureCoordinates = {{{0, 0}, {1, 1}}});

util::SimpleIdentity addGeometry(std::shared_ptr<gfx::VertexVector<GeometryVertex>> vertices,
std::shared_ptr<gfx::IndexVector<gfx::Triangles>> indices, bool is3D);
std::shared_ptr<gfx::IndexVector<gfx::Triangles>> indices,
bool is3D);

/**
* @brief Finish the current drawable building session
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/app/ExampleCustomDrawableStyleLayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void update(Interface& interface) override {

// add polyline
interface.addPolyline(polyline, Interface::LineShaderType::WideVector);

// add clone
for(auto &p : polyline) {
p.y += 0.05f * extent / numLines;
Expand Down
2 changes: 1 addition & 1 deletion platform/glfw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ add_executable(

if(MLN_DRAWABLE_RENDERER)
target_sources(mbgl-glfw PRIVATE ${PROJECT_SOURCE_DIR}/platform/glfw/example_custom_drawable_style_layer.cpp)

include(${PROJECT_SOURCE_DIR}/vendor/tinyobjloader.cmake)

target_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion platform/glfw/assets/sphere.obj
Original file line number Diff line number Diff line change
Expand Up @@ -1848,4 +1848,4 @@ f 141/332/141 173/387/173 168/386/168
f 164/331/164 200/233/200 173/387/173
# 720 faces, 387 coords texture

# End of File
# End of File
Loading

0 comments on commit e5e87ad

Please sign in to comment.