galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::platform Namespace Reference

Functions

CPUInfo get_cpu_info () noexcept
 Generates CPU info data.
void seed_random () noexcept
 Seed the cstdlib rng algos.
void set_metadata (const char *type, const char *value) noexcept
 Sets metadata.
void set_hint (const char *hint, const char *value) noexcept
 Sets SDL hints.
std::string as_string () noexcept
 Gets the current platform name as a string.

Function Documentation

◆ get_cpu_info()

CPUInfo galaxy::platform::get_cpu_info ( )
noexcept

Generates CPU info data.

Returns
CPUInfo struct.

Definition at line 14 of file CPUInfo.cpp.

Here is the caller graph for this function:

◆ seed_random()

void galaxy::platform::seed_random ( )
noexcept

Seed the cstdlib rng algos.

Definition at line 20 of file Platform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_metadata()

void galaxy::platform::set_metadata ( const char * type,
const char * value )
noexcept

Sets metadata.

Do before init.

Parameters
typeSDL_PROP_APP_METADATA_*
valueValue for the SDL PROP.

Definition at line 25 of file Platform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_hint()

void galaxy::platform::set_hint ( const char * hint,
const char * value )
noexcept

Sets SDL hints.

Do before init.

Parameters
typeSDL_HINT_*
valueValue for the SDL HINT.

Definition at line 30 of file Platform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ as_string()

std::string galaxy::platform::as_string ( )
nodiscardnoexcept

Gets the current platform name as a string.

Returns
Returns the name of the platform. If the correct platform name is not available, returns a string beginning with the text "Unknown".

Definition at line 35 of file Platform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: