grafika_komputerowa/grk/project/GameUtils.h

18 lines
312 B
C
Raw Normal View History

2024-01-03 22:06:27 +01:00
#pragma once
class GameUtils
{
private:
// Private constructor to prevent external instantiation
GameUtils() : aspectRatio(1.f) {}
public:
float aspectRatio;
static GameUtils& getInstance()
{
static GameUtils instance; // Jedna i jedyna instancja
return instance;
}
};