#pragma once #include class Sample : public RenderD7::Scene { public: enum State { State_Menu, }; Sample(); ~Sample(); void Draw() const override; void Logic() override; private: // Just as the RD7 Settings Shows here as example // by using a mutale map you're able to process // requests from the const Draw function in the // Logic Function! you could also create lots of // mutable bool or make all Variables mutable but // i think seperating draw and logic is better // editable map request_id data/operation mutable std::map shared_requests; // For Checkbox its best to use mutable mutable bool debug_background = false; mutable std::string search__ = ""; mutable std::vector names; mutable std::vector files; mutable int sel; State state = State_Menu; };