CG-Project2
Loading...
Searching...
No Matches
BootstrapState.hpp
1#pragma once
2
3#include "State.hpp"
4
9class BootstrapState : public State {
10public:
11 virtual void onAttach() override;
12 virtual void onDetach() override;
13
14 virtual void onUpdate() override;
15 virtual void onRender() override;
16
17 virtual bool isCurrentStateEnd() override;
18
24 BootstrapState(const std::string &name = "Bootstrap State") :
25 State(name) {}
26
27 virtual ~BootstrapState() override = default;
28
29private:
31 Unique<ogl::Window> window;
33 Unique<ogl::ImGuiManager> igm;
34};
This State allows to load one State in an ImGui window from cached states in the StateManager.
Definition BootstrapState.hpp:9
virtual void onDetach() override
This method is called while using sync() (read sync() documentation for more info)....
Definition BootstrapState.cpp:33
virtual void onAttach() override
This method is called after using StateManager::sync() (read StateMnaager::sync() documentation for m...
Definition BootstrapState.cpp:12
virtual void onRender() override
This methods contains all the operations executed at every event::loop::LOOP_RENDER if there are any.
Definition BootstrapState.cpp:45
virtual bool isCurrentStateEnd() override
Retrieves the current binary state of the current State
Definition BootstrapState.cpp:91
BootstrapState(const std::string &name="Bootstrap State")
Instances basic state with the given name.
Definition BootstrapState.hpp:24
virtual void onUpdate() override
This methods contains all the operations executed at every event::loop::LOOP_UPDATE if there are any.
Definition BootstrapState.cpp:41
State(const std::string &name="State")
Instances a state with the given name.
Definition State.hpp:85