Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
engine.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6
13class Engine {
14 private:
15 struct Deleter {
16 void operator()(Engine* e) const { delete e; }
17 };
18
19 Engine();
20
21 static std::unique_ptr<Engine, Deleter>
22 engine_instance_; // NOLINT(readability-identifier-naming)
23 public:
31 static Engine& instance();
32
40 static void initialize();
41
47 static void quit();
48
49 const std::unique_ptr<ServiceContainer> services;
50};
Central engine class managing core services and lifecycle.
Definition engine.h:13
static void initialize()
Initializes the engine and its core services.
const std::unique_ptr< ServiceContainer > services
Definition engine.h:49
static void quit()
Shuts down the engine and cleans up resources.
static Engine & instance()
Retrieves the singleton engine instance.