2
3
4
5
9#include "Resources/Mesh/Mesh.h"
16
17
18 m_RenderFrontend = std::make_unique<RenderFrontend>();
31
32
33 m_RenderFrontend->BeginFrame(FrameInfo::Get());
36
37
38 m_RenderFrontend->RenderFrame(ts, FrameInfo::Get());
41
42
43 m_RenderFrontend->EndFrame(FrameInfo::Get());
46
47
55 m_RenderFrontend->OnEvent(event);
#define SPICES_PROFILE_ZONE
This Class is the basic Event Class. Inherit from it and create specific event class.
uint32_t m_FrameIndex
FrameIndex, varying during 0 - (MaxFrameInFlight - 1). Used almost anywhere.
static FrameInfo & Get()
Get FrameInfo.
FrameInfo Class. This class defines the FrameInfo data.
virtual void OnSystemInitialize() override
This interface defines the behave on specific system initialized. Called when system Pushed to System...
virtual void OnSystemUpdate(TimeStep &ts) override
This interface defines the behave on specific system updated every frame.
virtual void OnEvent(Event &event) override
This interface defines the behave on global event function pointer is called.
virtual void OnSystemShutDown() override
This interface defines the behave on specific system shutdown. Called when system poped from SystemMa...
ResourceSystem Class. This class defines the specific behaves of RenderSystem.
This Class handles our engine time step during frames. Global Unique.
constexpr uint32_t MaxFrameInFlight
Max In Flight Frame. 2 buffers are enough in this program.