Windowing¶
Create window¶
To create a window were thing are draw, then you need to use this:
Start loop¶
In a loop you can draw things and it will run with the FPS that is setup. To start a loop, you have two choices:
Choice 1:
Choice 2:
There is basically no difference, they all are doing the same thing, you use what you prefer. In our examples we use choice 1.
Set FPS¶
To set the framerate of your window, you use this:
Window icon¶
So you want to change the icon of your window? Well, its easy:
DeltaTime¶
if you want to access delta time, you use this:
Quit¶
The quitting of the engine is done automaticly for you, so you dont have to worry about it.
Force to quit¶
If you want to force quit due to some reason, its pretty easy:
Full Screen¶
If you want to know if the window is full screen then run the following command:
If you want to toggle the fullscreen on your window then run the following command:
Screen Safer¶
If you want to know if screen safer is allowed on the current machine then run the following command:
If you want to toggle the screen safer allowed on the current machine then run the following command:
Vsync¶
If you want to know if VSync in enabled on the current machine then run the following command:
Displays¶
Refresh rate¶
If you want to get the display refresh rate on the current machine then run the following command:
Display amount¶
If you want to get the display amount on the current machine then run the following command:
Active¶
If you want to get the active state on the current machine then run the following command: