Reworked file structure

This commit is contained in:
antopilo
2025-01-30 22:41:17 -05:00
parent e8a84c98ec
commit 92a64f19ea
2215 changed files with 1832 additions and 2069 deletions

View File

@@ -0,0 +1,21 @@
#include "Viewport.h"
#include <imgui/imgui.h>
Viewport::Viewport(const std::string& name, Ref<Nuake::Texture> texture)
{
Name = name;
Texture = texture;
}
void Viewport::Draw()
{
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0));
if (ImGui::Begin(Name.c_str()))
{
ImGui::Image((void*)Texture->GetID(), ImGui::GetContentRegionAvail(), ImVec2(0, 1), ImVec2(1, 0));
}
ImGui::PopStyleVar();
ImGui::End();
}