New UI framework stuff + lua

This commit is contained in:
Antoine Pilote
2021-05-25 21:38:22 -04:00
parent 1f1047d23b
commit 3843a3fe2d
34 changed files with 28609 additions and 73 deletions

View File

@@ -0,0 +1,28 @@
#include "UserInterface.h"
namespace UI
{
UserInterface::UserInterface(const std::string& name)
{
m_Name = name;
}
Ref<UserInterface> UserInterface::New(const std::string& name)
{
return CreateRef<UserInterface>(name);
}
void UserInterface::Draw()
{
Renderer2D::BeginDraw();
for (auto r : m_Rects)
{
r->Draw();
}
}
void UserInterface::Update(Timestep ts)
{
}
}