Optional Linux GameMode registration for the lifetime of an interactive game process.
More...
#include <gamemode.h>
Optional Linux GameMode registration for the lifetime of an interactive game process.
◆ GameModeSession() [1/2]
| coastline::GameModeSession::GameModeSession |
( |
bool | enabled | ) |
|
|
explicit |
Load the Linux client and request GameMode immediately when enabled.
Missing libraries, incomplete clients, and rejected requests are logged without stopping the game. Other platforms do not load a library or request GameMode.
- Parameters
-
| enabled | Whether to request GameMode. An enabled session requires SDL to remain initialised until destruction. |
◆ ~GameModeSession()
| coastline::GameModeSession::~GameModeSession |
( |
| ) |
|
Attempt to end a successful registration, then unload the client before SDL shuts down.
◆ GameModeSession() [2/2]
| coastline::GameModeSession::GameModeSession |
( |
const GameModeSession & | | ) |
|
|
delete |
Prevent duplicate ownership of a GameMode registration.
◆ operator=()
Prevent replacement of an active GameMode registration.
The documentation for this class was generated from the following file: