what the fuck is a renderable

This commit is contained in:
Benjamin Kyd
2022-05-20 01:36:53 +01:00
parent 411200ddaa
commit fe3fb0101a
10 changed files with 86 additions and 20 deletions

View File

@@ -2,6 +2,7 @@
#include <Aeon/Aeon.hpp>
#include <Aeon/Core/Events.hpp>
#include <Aeon/Rendering/ImGui.hpp>
class BackgroundLevel : public Core::GameLayer {
@@ -23,6 +24,9 @@ public:
void FrameTick() override
{
}
void TimeTick() override
@@ -32,7 +36,44 @@ public:
bool EventRecieved( Core::GenericEvent& e ) override
{
return false;
}
void Detach() override
{
}
};
class DebugLayer : public Core::GameLayer
{
public:
DebugLayer()
{
}
void Attach() override
{
}
void FrameTick() override
{
ImGui::Begin( "Debug" );
ImGui::End();
}
void TimeTick() override
{
}
bool EventRecieved( Core::GenericEvent& e ) override
{
return false;
}
@@ -50,6 +91,8 @@ public:
{
Level* level = new Level;
PushLayer( (Core::GameLayer*)level );
DebugLayer* debug = new DebugLayer;
PushDebugLayer( debug );
Run();
delete level;
}