Initial late commit
This commit is contained in:
26
open_engine/include/open_engine/imgui/imgui_layer.hpp
Normal file
26
open_engine/include/open_engine/imgui/imgui_layer.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef IMGUI_LAYER_HPP
|
||||
#define IMGUI_LAYER_HPP
|
||||
|
||||
#include "../core.hpp"
|
||||
#include "../layer.hpp"
|
||||
|
||||
namespace OpenEngine {
|
||||
class OE_API ImGuiLayer : public Layer
|
||||
{
|
||||
public:
|
||||
ImGuiLayer();
|
||||
~ImGuiLayer() = default;
|
||||
|
||||
virtual void OnAttach() override;
|
||||
virtual void OnDetach() override;
|
||||
virtual void OnImGuiRender() override;
|
||||
|
||||
void Begin();
|
||||
void End();
|
||||
|
||||
private:
|
||||
float previous_frame_time = 0.0f;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // IMGUI_LAYER_HPP
|
||||
Reference in New Issue
Block a user