Castor3D 0.16.0
Multiplatform 3D engine
Functions
castor::system Namespace Reference

Functions

CU_API void sleep (uint32_t time)
 Suspends the execution of the calling thread for a given time.
 
CU_API bool getScreenSize (uint32_t screen, Size &size)
 Retrieves the given screen size.
 
CU_API String getLastErrorText ()
 Retrieves the last system error text.
 
CU_API String getOSName ()
 

Function Documentation

◆ getLastErrorText()

CU_API String castor::system::getLastErrorText ( )

Retrieves the last system error text.

Returns
The error text.

◆ getOSName()

CU_API String castor::system::getOSName ( )
Returns
The operating system name.

◆ getScreenSize()

CU_API bool castor::system::getScreenSize ( uint32_t screen,
Size & size )

Retrieves the given screen size.

Parameters
[in]screenThe screen index.
[out]sizeReceives the screen size.
Returns
true if the size was retrieved.

◆ sleep()

CU_API void castor::system::sleep ( uint32_t time)

Suspends the execution of the calling thread for a given time.

Parameters
[in]timeThe suspend time in milliseconds.