Contains details and functions for use with the window.
More...
#include <WindowFrame.h>
|
static void | setWindow (std::string inTitle, Vec2 inWindowPos, Vec2 inWindowRes, bool inFullscreen, float inFrameRate) |
| A static function to set a Window. More...
|
|
static void | setTitle (std::string inTitle) |
| A static function to set the title of the window. More...
|
|
static void | setWindowPos (Vec2 inWindowPos) |
| A static function to set the position of the window. More...
|
|
static void | setWindowRes (Vec2 inWindowRes) |
| A static function to set the resolution of the window. More...
|
|
static void | setFullscreen (bool inFullscreen) |
| A static function to set if the window should be fullscreen. More...
|
|
static void | setFrameRate (float inFrameRate) |
| A static function to set the frame rate of the window. More...
|
|
static std::string | getTitle () |
| A static function to get the title of the window. More...
|
|
static Vec2 | getWindowPos () |
| A static function to get the position of the window. More...
|
|
static Vec2 | getWindowRes () |
| A static function to get the size of the window. More...
|
|
static bool | getFullscreen () |
| A static function to get if the window should be fullscreen. More...
|
|
static float | getFrameRate () |
| A static function to get the frame rate of the window. More...
|
|
static float | getAspect () |
| A static function to get the aspect of the window. More...
|
|
Contains details and functions for use with the window.
◆ getAspect()
float WindowFrame::getAspect |
( |
| ) |
|
|
static |
A static function to get the aspect of the window.
- Returns
- The aspect of the window.
◆ getFrameRate()
float WindowFrame::getFrameRate |
( |
| ) |
|
|
static |
A static function to get the frame rate of the window.
- Returns
- The frame rate for the window.
◆ getFullscreen()
bool WindowFrame::getFullscreen |
( |
| ) |
|
|
static |
A static function to get if the window should be fullscreen.
- Returns
- The boolean for fullscreen.
◆ getTitle()
std::string WindowFrame::getTitle |
( |
| ) |
|
|
static |
A static function to get the title of the window.
- Returns
- The tile.
◆ getWindowPos()
Vec2 WindowFrame::getWindowPos |
( |
| ) |
|
|
static |
A static function to get the position of the window.
- Returns
- The window position.
◆ getWindowRes()
Vec2 WindowFrame::getWindowRes |
( |
| ) |
|
|
static |
A static function to get the size of the window.
- Returns
- The window resolution.
◆ setFrameRate()
void WindowFrame::setFrameRate |
( |
float |
inFrameRate | ) |
|
|
static |
A static function to set the frame rate of the window.
- Parameters
-
frameRate | The frame rate for the window. |
◆ setFullscreen()
void WindowFrame::setFullscreen |
( |
bool |
inFullscreen | ) |
|
|
static |
A static function to set if the window should be fullscreen.
- Parameters
-
fullscreen | The boolean for fullscreen. |
◆ setTitle()
void WindowFrame::setTitle |
( |
std::string |
inTitle | ) |
|
|
static |
A static function to set the title of the window.
- Parameters
-
◆ setWindow()
void WindowFrame::setWindow |
( |
std::string |
inTitle, |
|
|
Vec2 |
inWindowPos, |
|
|
Vec2 |
inWindowRes, |
|
|
bool |
inFullscreen, |
|
|
float |
inFrameRate |
|
) |
| |
|
static |
A static function to set a Window.
- Parameters
-
inTitle | The tile. |
inWindowPos | The window position. |
inWindowRes | The window resolution. |
inFullscreen | The boolean for fullscreen. |
inFrameRate | The frame rate for the window. |
◆ setWindowPos()
void WindowFrame::setWindowPos |
( |
Vec2 |
inWindowPos | ) |
|
|
static |
A static function to set the position of the window.
- Parameters
-
windowPos | The window position. |
◆ setWindowRes()
void WindowFrame::setWindowRes |
( |
Vec2 |
inWindowRes | ) |
|
|
static |
A static function to set the resolution of the window.
- Parameters
-
windowRes | The window size. |
◆ frameRate
float WindowFrame::frameRate |
|
staticprivate |
The wanted frame rate of the window.
◆ fullscreen
bool WindowFrame::fullscreen |
|
staticprivate |
A boolean for if the window should be fullscreen.
◆ title
std::string WindowFrame::title |
|
staticprivate |
◆ windowPos
Vec2 WindowFrame::windowPos |
|
staticprivate |
The position of the window.
◆ windowRes
Vec2 WindowFrame::windowRes |
|
staticprivate |
The resolution of the window.
The documentation for this class was generated from the following files: