class PlatformUtility

Provides access to various operating system specific utility functions.

Public

Methods

staticTerminate

static void Terminate(bool force = false)

Terminates the current process.

force
True if the process should be forcefully terminated with no cleanup.

staticGetSystemInfo

static SystemInfo GetSystemInfo()

Returns information about the underlying hardware.

staticGenerateUuid

static UUID GenerateUuid()

Creates a new universally unique identifier (UUID/GUID).

staticConvertCaseUtF8

static String ConvertCaseUtF8(const String &input, bool toUpper)

Converts a UTF8 encoded string into uppercase or lowercase.

input
String to convert.
toUpper
If true, converts the character to uppercase. Otherwise convert to lowercase.

Returns: Converted string.

Internal

Methods

staticSetGPUInfoInternal

static void SetGPUInfoInternal(GPUInfo gpuInfo)

Assigns information about GPU hardware.

This data will be returned by getSystemInfo() when requested. This is expeced to be called by the render API backend when initialized.