Onyx-Engine/src/core/Core.h

50 lines
826 B
C
Raw Normal View History

2025-05-18 17:42:48 +00:00
//
// Created by spenc on 5/14/2025.
//
#ifndef CORE_H
#define CORE_H
#include <utility>
#include <vector>
#include <memory>
#include "Layer.h"
#include "systems/Logger.h"
#include "systems/Profiler.h"
#include "systems/WindowManager.h"
2025-05-18 18:29:55 +00:00
#include "systems/MACROS.h"
2025-05-18 17:42:48 +00:00
namespace OX
{
class Core {
public:
Core(std::string name) : m_name(std::move(name)) {};
~Core() = default;
void Init();
void Run();
void Shutdown();
WindowManager& GetWindow() {return window;}
void AddLayer(std::unique_ptr<Layer> layer);
private:
void Update();
void Draw();
std::vector<std::unique_ptr<Layer>> m_layers;
WindowManager window;
bool m_running = false;
std::string m_name = "Application";
};
}
#endif // CORE_H