From d2a777416200a7d7d0df910a5e7b2de99a1bc00e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 10:32:18 +0100 Subject: reuse the wireframe 1x1 texture --- editor/app.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'editor') 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 _floor1, _floor2, _wall1, _wall2; std::shared_ptr _door; - wireframe_mesh _wireframe_quad; - wireframe_mesh _wireframe_wall_n; - wireframe_mesh _wireframe_wall_w; - wireframe_mesh _wireframe_box; + GL::Texture2D _wireframe_texture = wireframe::make_constant_texture(); + wireframe_mesh _wireframe_quad {_wireframe_texture}; + wireframe_mesh _wireframe_wall_n {_wireframe_texture}; + wireframe_mesh _wireframe_wall_w {_wireframe_texture}; + wireframe_mesh _wireframe_box {_wireframe_texture}; editor _editor; key_set keys; std::array key_modifiers; -- cgit v1.2.3