Level H Engine
WindowFrame.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include "../Maths/Vec2.h"
5 
10 {
11 public:
20  static void setWindow(std::string inTitle, Vec2 inWindowPos, Vec2 inWindowRes, bool inFullscreen, float inFrameRate);
21 
26  static void setTitle(std::string inTitle);
27 
32  static void setWindowPos(Vec2 inWindowPos);
33 
38  static void setWindowRes(Vec2 inWindowRes);
39 
44  static void setFullscreen(bool inFullscreen);
45 
50  static void setFrameRate(float inFrameRate);
51 
56  static std::string getTitle();
57 
62  static Vec2 getWindowPos();
63 
68  static Vec2 getWindowRes();
69 
74  static bool getFullscreen();
75 
80  static float getFrameRate();
81 
86  static float getAspect();
87 
88 private:
90  static std::string title;
92  static Vec2 windowPos;
94  static Vec2 windowRes;
96  static bool fullscreen;
98  static float frameRate;
99 };
static void setWindowRes(Vec2 inWindowRes)
A static function to set the resolution of the window.
Definition: WindowFrame.cpp:37
static void setWindowPos(Vec2 inWindowPos)
A static function to set the position of the window.
Definition: WindowFrame.cpp:32
static Vec2 windowPos
The position of the window.
Definition: WindowFrame.h:92
Contains the Vec2 structure with functions and overloaded operators.
Definition: Vec2.h:8
static void setTitle(std::string inTitle)
A static function to set the title of the window.
Definition: WindowFrame.cpp:27
static Vec2 getWindowPos()
A static function to get the position of the window.
Definition: WindowFrame.cpp:57
static float getFrameRate()
A static function to get the frame rate of the window.
Definition: WindowFrame.cpp:72
static void setFullscreen(bool inFullscreen)
A static function to set if the window should be fullscreen.
Definition: WindowFrame.cpp:42
static bool fullscreen
A boolean for if the window should be fullscreen.
Definition: WindowFrame.h:96
static std::string getTitle()
A static function to get the title of the window.
Definition: WindowFrame.cpp:52
static void setFrameRate(float inFrameRate)
A static function to set the frame rate of the window.
Definition: WindowFrame.cpp:47
static float getAspect()
A static function to get the aspect of the window.
Definition: WindowFrame.cpp:77
static Vec2 getWindowRes()
A static function to get the size of the window.
Definition: WindowFrame.cpp:62
static float frameRate
The wanted frame rate of the window.
Definition: WindowFrame.h:98
static bool getFullscreen()
A static function to get if the window should be fullscreen.
Definition: WindowFrame.cpp:67
static Vec2 windowRes
The resolution of the window.
Definition: WindowFrame.h:94
static void setWindow(std::string inTitle, Vec2 inWindowPos, Vec2 inWindowRes, bool inFullscreen, float inFrameRate)
A static function to set a Window.
Definition: WindowFrame.cpp:11
static std::string title
The window title.
Definition: WindowFrame.h:90
Contains details and functions for use with the window.
Definition: WindowFrame.h:9