18 lines
312 B
C
18 lines
312 B
C
|
#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;
|
||
|
}
|
||
|
};
|