17 static Engine& Instance() {
18 static Engine instance;
22 std::string getFileName(
const std::string& path) {
23 size_t lastSlashPos = path.find_last_of(
"/");
24 if (lastSlashPos != std::string::npos) {
25 return path.substr(lastSlashPos + 1);
30 std::vector<std::shared_ptr<Raftel::Mesh>> meshes;
31 std::vector<std::shared_ptr<Raftel::Mesh>> internalMeshes;
32 std::vector<std::shared_ptr<Raftel::Entity>> lights;
33 std::vector<std::shared_ptr<Raftel::Entity>> point_lights;
34 std::vector<std::shared_ptr<Raftel::Entity>> spot_lights;
39 int has_ambient_light = TRUE;
40 glm::vec3 ambient_light = glm::vec3(0.1f, 0.1f, 0.1f);
46 Engine() : numLights(0), numEntities(0),selectedEntity(-1), SCREEN_W(1280.0f), SCREEN_H(720.0f) {}
49 Engine(
const Engine&) =
delete;
50 Engine& operator=(
const Engine&) =
delete;