Go to the source code of this file.
◆ basename_without_suffix()
char* basename_without_suffix |
( |
const char * |
filename | ) |
|
Return the file name without the leading directories and without the extension.
- Parameters
-
filename | The original filename. |
- Returns
- A newly allocated string containing the output of basename(3) without the extension.
◆ capture_screenshot()
Capture a screenshot of the current window.
Takes the dimensions of the viewport to save a pixel array of the same dimensions. Uses FreeImage to create an image from the raw pixels and save it to disk.
- Parameters
-
state | The renderer state, needed to get the name of the current shader and the frame count. |
◆ process_input()
Ensure the window is closed when the user presses the escape key.
- Parameters
-
state | The current state of the renderer. |