0.9.5 preview1
This commit is contained in:
32
rd7tf/source/scene.hpp
Normal file
32
rd7tf/source/scene.hpp
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <rd7.hpp>
|
||||
|
||||
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<unsigned int, unsigned int> shared_requests;
|
||||
// For Checkbox its best to use mutable
|
||||
mutable bool debug_background = false;
|
||||
mutable std::string search__ = "";
|
||||
mutable std::vector<std::string> names;
|
||||
mutable std::vector<std::string> files;
|
||||
mutable int sel;
|
||||
State state = State_Menu;
|
||||
};
|
Reference in New Issue
Block a user