summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-12 10:32:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-12 10:32:18 +0100
commitd2a777416200a7d7d0df910a5e7b2de99a1bc00e (patch)
tree46bb49d4545bf2413c0829b8f2217391c29ad797 /editor
parentc8f0c67d56716bde17b8699c300332eeac9fd0c4 (diff)
reuse the wireframe 1x1 texture
Diffstat (limited to 'editor')
-rw-r--r--editor/app.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index c161a2aa..6be1eed3 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -99,10 +99,11 @@ private:
ImGuiIntegration::Context _imgui{NoCreate};
std::shared_ptr<tile_atlas> _floor1, _floor2, _wall1, _wall2;
std::shared_ptr<anim_atlas> _door;
- wireframe_mesh<wireframe::quad_floor> _wireframe_quad;
- wireframe_mesh<wireframe::quad_wall_n> _wireframe_wall_n;
- wireframe_mesh<wireframe::quad_wall_w> _wireframe_wall_w;
- wireframe_mesh<wireframe::box> _wireframe_box;
+ GL::Texture2D _wireframe_texture = wireframe::make_constant_texture();
+ wireframe_mesh<wireframe::quad_floor> _wireframe_quad {_wireframe_texture};
+ wireframe_mesh<wireframe::quad_wall_n> _wireframe_wall_n {_wireframe_texture};
+ wireframe_mesh<wireframe::quad_wall_w> _wireframe_wall_w {_wireframe_texture};
+ wireframe_mesh<wireframe::box> _wireframe_box {_wireframe_texture};
editor _editor;
key_set keys;
std::array<int, key_set::COUNT> key_modifiers;