2024-08-22 16:04:15 +00:00
|
|
|
#pragma once
|
2024-07-30 16:57:32 +00:00
|
|
|
|
2024-08-01 23:32:51 +00:00
|
|
|
#define GLFW_INCLUDE_NONE
|
2024-07-30 16:57:32 +00:00
|
|
|
#include <GLFW/glfw3.h>
|
2024-08-01 23:32:51 +00:00
|
|
|
#include "Renderer.h"
|
|
|
|
#include "Window.h"
|
|
|
|
#include "UI.h"
|
2024-07-30 16:57:32 +00:00
|
|
|
|
|
|
|
class Engine
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Engine();
|
|
|
|
~Engine();
|
|
|
|
|
2024-08-01 23:32:51 +00:00
|
|
|
Window& GetWindow() const { return *m_Window; }
|
2024-07-31 13:40:16 +00:00
|
|
|
|
2024-08-01 23:32:51 +00:00
|
|
|
static Engine& Get() { return *s_Instance; }
|
|
|
|
|
|
|
|
void Run();
|
2024-07-30 16:57:32 +00:00
|
|
|
void Render();
|
|
|
|
void Shutdown();
|
|
|
|
|
|
|
|
private:
|
2024-08-01 23:32:51 +00:00
|
|
|
Window* m_Window;
|
|
|
|
static Engine* s_Instance;
|
2024-08-22 16:04:15 +00:00
|
|
|
};
|