various cleanup

This commit is contained in:
Erris
2026-02-10 09:42:59 +01:00
parent a53150d228
commit 86392e0790
13 changed files with 181 additions and 155 deletions

View File

@@ -13,7 +13,7 @@ namespace OpenEngine {
class Application
{
public:
Application();
Application(const std::string& name = "OpenEngine Project");
~Application();
virtual void OnEvent(Event& event);
@@ -26,7 +26,8 @@ namespace OpenEngine {
inline static Application& Get() { return *instance; };
inline Window& GetWindow() { return *window; };
inline void StopRunning() { running = false; };
void Close();
private:
void Run();
@@ -34,6 +35,7 @@ namespace OpenEngine {
bool OnWindowResize(WindowResizeEvent& event);
private:
const std::string name;
std::unique_ptr<Window> window;
inline static Application* instance;