aboutsummaryrefslogtreecommitdiff
path: root/extension/src/GameSingleton.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-26 00:51:44 +0200
committer Hop311 <hop3114@gmail.com>2023-04-26 00:51:44 +0200
commit563834e7e6f9ce565bbfd553a0d9ff80a98c677d (patch)
treefcf86e6fac31430ba537a0d056e97f901ad76dd7 /extension/src/GameSingleton.hpp
parent50327abf33078c44fef85c62ce3d90e23056fb34 (diff)
Divide map texture to fit in 16384 GPU dim limit
Diffstat (limited to 'extension/src/GameSingleton.hpp')
-rw-r--r--extension/src/GameSingleton.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/extension/src/GameSingleton.hpp b/extension/src/GameSingleton.hpp
index 815c92f..d9879ef 100644
--- a/extension/src/GameSingleton.hpp
+++ b/extension/src/GameSingleton.hpp
@@ -14,7 +14,8 @@ namespace OpenVic2 {
GameManager game_manager;
- godot::Ref<godot::Image> province_index_image, province_colour_image;
+ static constexpr int image_width_divide = 2;
+ godot::Ref<godot::Image> province_index_image[image_width_divide], province_colour_image;
Mapmode::index_t mapmode_index = 0;
godot::Error _parse_province_identifier_entry(godot::String const& identifier, godot::Variant const& entry);
@@ -39,7 +40,7 @@ namespace OpenVic2 {
godot::Dictionary get_province_info_from_index(int32_t index) const;
int32_t get_width() const;
int32_t get_height() const;
- godot::Ref<godot::Image> get_province_index_image() const;
+ godot::Array get_province_index_images() const;
godot::Ref<godot::Image> get_province_colour_image() const;
godot::Error update_colour_image();