add try_engine

This commit is contained in:
chatlanin
2023-03-02 15:25:58 +03:00
parent 5a829fad05
commit f81f4e5e78
54 changed files with 129 additions and 1905 deletions

View File

@@ -0,0 +1,44 @@
#include "history.hpp"
namespace rrr::layers::gui
{
void history::on_attach()
{
BASE_WINDOW_FLAGS();
}
void history::on_detach()
{
}
void history::gui_render()
{
ImGui::SetNextWindowPos(ImVec2(pos_x, pos_y));
ImGui::SetNextWindowSize(ImVec2(width, height));
BEGIN_IMGUI_WIN();
END_IMGUI_WIN();
}
void history::on_event(system_event& e)
{
if (e.get_name() == try_engine::system_event::classificator::WINDOW_RESIZE())
{
height = try_engine::application::get()->get_window()->height() - 40.f;
width = try_engine::application::get()->get_window()->width() / 3.f;
}
}
void history::on_event(std::any e, std::any value)
{
}
void history::on_update(time t)
{
}
}