You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
501 B
C
31 lines
501 B
C
1 year ago
|
#ifndef WINDOWMANAGER_H
|
||
|
#define WINDOWMANAGER_H
|
||
|
|
||
|
#include <raylib.h>
|
||
|
|
||
|
|
||
|
class WindowManager
|
||
|
{
|
||
|
public:
|
||
|
WindowManager(char* title, float screen_width, float screen_height);
|
||
|
void UpdateScale ();
|
||
|
void Display ();
|
||
|
RenderTexture2D Screen;
|
||
|
RenderTexture2D ScaledScreen;
|
||
|
|
||
|
private:
|
||
|
|
||
|
char* _title;
|
||
|
float _screenWidth;
|
||
|
float _screenHeight;
|
||
|
double _aspectRatio;
|
||
|
|
||
|
int _scaledWidth;
|
||
|
int _scaledHeight;
|
||
|
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|