#include #include "Sun.h" #include "Bullet.h" #include "src/Shader_Loader.h" #pragma once class GameUtils { private: // Private constructor to prevent external instantiation GameUtils() : aspectRatio(1.f) { this->suns = new std::list(); this->shaderLoader = new Core::Shader_Loader(); } std::list* suns; std::list bullets; float aspectRatio; public: Core::Shader_Loader* shaderLoader; Core::RenderContext sphereContext; float getAspectRatio() { return aspectRatio; } void setAspectRatio(float value) { aspectRatio = value; } std::list* getSuns() { return suns; } static GameUtils* getInstance() { static GameUtils instance; // Jedna i jedyna instancja return &instance; } };