aboutsummaryrefslogtreecommitdiff
path: root/extension/src/MapMesh.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-14 09:52:25 +0200
committer Hop311 <hop3114@gmail.com>2023-09-14 09:52:25 +0200
commit70c040d042cb536e5ce16b0cfff0e0afa39e8ed7 (patch)
tree559681d5a2569adc307409d818311760edc12654 /extension/src/MapMesh.hpp
parent9dc8c3c89a86b8be2084890f3207adc6c9cda496 (diff)
Logger::warning, format cleanup + req comments
Diffstat (limited to 'extension/src/MapMesh.hpp')
-rw-r--r--extension/src/MapMesh.hpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/extension/src/MapMesh.hpp b/extension/src/MapMesh.hpp
deleted file mode 100644
index 38b208c..0000000
--- a/extension/src/MapMesh.hpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#pragma once
-
-#include <godot_cpp/classes/primitive_mesh.hpp>
-
-namespace OpenVic {
- class MapMesh : public godot::PrimitiveMesh {
- GDCLASS(MapMesh, godot::PrimitiveMesh)
-
- float aspect_ratio = 2.0f, repeat_proportion = 0.5f;
- int32_t subdivide_w = 0, subdivide_d = 0;
-
- protected:
- static void _bind_methods();
- void _request_update();
-
- public:
- void set_aspect_ratio(const float ratio);
- float get_aspect_ratio() const;
-
- void set_repeat_proportion(const float proportion);
- float get_repeat_proportion() const;
-
- void set_subdivide_width(const int32_t divisions);
- int32_t get_subdivide_width() const;
-
- void set_subdivide_depth(const int32_t divisions);
- int32_t get_subdivide_depth() const;
-
- godot::AABB get_core_aabb() const;
- bool is_valid_uv_coord(godot::Vector2 const& uv) const;
-
- godot::Array _create_mesh_array() const override;
- };
-}