aboutsummaryrefslogtreecommitdiff
path: root/extension/src/MapMesh.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-26 13:06:19 +0200
committer Hop311 <hop3114@gmail.com>2023-04-26 13:06:19 +0200
commit2455806f52f0133e5bd5e4997589c5ce4fe99b2c (patch)
treea1882d8d3a4e836ec305dd0893b6eda5ec3dd230 /extension/src/MapMesh.hpp
parent10053cf259c55ee45803268a844edf1011d8a16b (diff)
Vertical subdivision + calculation for both dims
Diffstat (limited to 'extension/src/MapMesh.hpp')
-rw-r--r--extension/src/MapMesh.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/extension/src/MapMesh.hpp b/extension/src/MapMesh.hpp
index d8727cf..89c0147 100644
--- a/extension/src/MapMesh.hpp
+++ b/extension/src/MapMesh.hpp
@@ -7,7 +7,7 @@ namespace OpenVic2 {
GDCLASS(MapMesh, godot::PrimitiveMesh)
float aspect_ratio = 2.0f, repeat_proportion = 0.5f;
- int subdivide_w = 0, subdivide_d = 0;
+ int32_t subdivide_w = 0, subdivide_d = 0;
protected:
static void _bind_methods();
@@ -20,11 +20,11 @@ namespace OpenVic2 {
void set_repeat_proportion(const float proportion);
float get_repeat_proportion() const;
- void set_subdivide_width(const int divisions);
- int get_subdivide_width() const;
+ void set_subdivide_width(const int32_t divisions);
+ int32_t get_subdivide_width() const;
- void set_subdivide_depth(const int divisions);
- int get_subdivide_depth() 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;