Arctic Engine
Designed to give you control and not take anything away.
|
Classes | |
class | arctic::BitStream |
class | arctic::CsvRow |
Represents a row in a CSV file. More... | |
class | arctic::CsvTable |
Represents a CSV table. More... | |
struct | arctic::DataReader |
A class for reading data from a buffer. More... | |
class | arctic::Utf32FromUtf16 |
A class for converting UTF-16 encoded data to UTF-32. More... | |
struct | arctic::Utf32Reader |
A structure for reading UTF-32 characters from UTF-8 encoded data. More... | |
struct | arctic::Utf8Codepoint |
A structure representing a UTF-8 codepoint. More... | |
Enumerations | |
enum | arctic::CsvSourceType { arctic::kCsvSourceFile = 0 , arctic::kCsvSourcePure = 1 } |
Enumerates the types of CSV sources. More... | |
Functions | |
void | arctic::Check (bool condition, const char *error_message, const char *error_message_postfix=nullptr) |
Exits the application with an error if condition is false. More... | |
void | arctic::ExitProgram (Si32 exit_code=0) |
Exits the program. More... | |
void | arctic::Fatal (const char *error_message, const char *message_postfix=nullptr) |
Exits the application with an error. More... | |
Si16 | arctic::FromBe (Si16 x) |
Transform value from the big-endian representation. More... | |
Si32 | arctic::FromBe (Si32 x) |
Transform value from the big-endian representation. More... | |
Ui16 | arctic::FromBe (Ui16 x) |
Transform value from the big-endian representation. More... | |
Ui32 | arctic::FromBe (Ui32 x) |
Transform value from the big-endian representation. More... | |
bool | arctic::IsCursorVisible () |
Returns true if the OS mouse cursor (pointer) is visible. More... | |
bool | arctic::IsFullScreen () |
Returns true if the application is running in Full Screen mode. More... | |
bool | arctic::IsVSyncSupported () |
Returns true if VSync is supported by the software and hardware. More... | |
Si64 | arctic::Random (Si64 min, Si64 max) |
Returns a random number in range [min,max]. More... | |
Ui16 | arctic::Random16 () |
Returns a random Ui16. More... | |
Ui32 | arctic::Random32 () |
Returns a random Ui32. More... | |
Si32 | arctic::Random32 (Si32 min, Si32 max) |
Returns a random number in range [min,max]. More... | |
Ui64 | arctic::Random64 () |
Returns a random Ui64. More... | |
Ui8 | arctic::Random8 () |
Returns a random Ui8. More... | |
void | arctic::ResizeScreen (const Si32 width, const Si32 height) |
Set the backbuffer resolution in pixels. More... | |
void | arctic::ResizeScreen (const Vec2Si32 size) |
Set the backbuffer resolution in pixels. More... | |
Vec2Si32 | arctic::ScreenSize () |
Get the backbuffer resolution in pixels. | |
void | arctic::SetCursorVisible (bool is_enable) |
Sets OS mouse cursor visibility. More... | |
void | arctic::SetFullScreen (bool is_enable) |
Toggles between the Full Screen mode and the Windowed mode. More... | |
void | arctic::SetInverseY (bool is_inverse) |
Enables/disables Y-coordinate inversion. By default Y-axis is directed upward. More... | |
bool | arctic::SetVSync (bool is_enable) |
Sets the VSync mode. More... | |
void | arctic::Sleep (double duration_seconds) |
Waits for the time specified before returning. More... | |
void | arctic::Swap () |
Swaps virtual frontbuffer and backbuffer and updates user input. | |
double | arctic::Time () |
Returns time in seconds since the game start. More... | |
Si16 | arctic::ToBe (Si16 x) |
Transform value to the big-endian representation. More... | |
Si32 | arctic::ToBe (Si32 x) |
Transform value to the big-endian representation. More... | |
Ui16 | arctic::ToBe (Ui16 x) |
Transform value to the big-endian representation. More... | |
Ui32 | arctic::ToBe (Ui32 x) |
Transform value to the big-endian representation. More... | |
std::string | arctic::Utf16ToUtf8 (const void *data) |
Convers a UTF-16 encoded string to UTF-8. More... | |
std::string | arctic::Utf32ToUtf8 (const void *data) |
Convers a UTF-32 encoded string to UTF-8. More... | |
Vec2Si32 | arctic::WindowSize () |
Get the window size in actual pixels of the OS. | |
void arctic::Check | ( | bool | condition, |
const char * | error_message, | ||
const char * | error_message_postfix = nullptr |
||
) |
Exits the application with an error if condition is false.
condition | Condition to check | |
[in] | error_message | Error message to display upon exiting |
[in] | error_message_postfix | A postfix to append to the error message. Nothing is appended if error_message_postfix is nullptr |
The function does not return if the condition is false
void arctic::ExitProgram | ( | Si32 | exit_code = 0 | ) |
Exits the program.
exit_code | Exit code returned to the OS |
void arctic::Fatal | ( | const char * | error_message, |
const char * | message_postfix = nullptr |
||
) |
Exits the application with an error.
[in] | error_message | Error message to display upon exiting |
[in] | message_postfix | A postfix to append to the error message. Nothing is appended if error_message_postfix is nullptr |
The function does not return
Si16 arctic::FromBe | ( | Si16 | x | ) |
Transform value from the big-endian representation.
[in] | x | Big-endian value to transform |
Si32 arctic::FromBe | ( | Si32 | x | ) |
Transform value from the big-endian representation.
[in] | x | Big-endian value to transform |
Ui16 arctic::FromBe | ( | Ui16 | x | ) |
Transform value from the big-endian representation.
[in] | x | Big-endian value to transform |
Ui32 arctic::FromBe | ( | Ui32 | x | ) |
Transform value from the big-endian representation.
[in] | x | Big-endian value to transform |
bool arctic::IsCursorVisible | ( | ) |
Returns true if the OS mouse cursor (pointer) is visible.
bool arctic::IsFullScreen | ( | ) |
Returns true if the application is running in Full Screen mode.
bool arctic::IsVSyncSupported | ( | ) |
Returns true if VSync is supported by the software and hardware.
Si64 arctic::Random | ( | Si64 | min, |
Si64 | max | ||
) |
Returns a random number in range [min,max].
min | The minimum value of the range (inclusive) |
max | The maximum value of the range (inclusive) |
Ui16 arctic::Random16 | ( | ) |
Returns a random Ui16.
Ui32 arctic::Random32 | ( | ) |
Returns a random Ui32.
Si32 arctic::Random32 | ( | Si32 | min, |
Si32 | max | ||
) |
Returns a random number in range [min,max].
min | The minimum value of the range (inclusive) |
max | The maximum value of the range (inclusive) |
Ui64 arctic::Random64 | ( | ) |
Returns a random Ui64.
Ui8 arctic::Random8 | ( | ) |
Returns a random Ui8.
void arctic::ResizeScreen | ( | const Si32 | width, |
const Si32 | height | ||
) |
Set the backbuffer resolution in pixels.
width | The desired width of the backbuffer in pixels |
height | The desired height of the backbuffer in pixels |
void arctic::ResizeScreen | ( | const Vec2Si32 | size | ) |
Set the backbuffer resolution in pixels.
size | The desired size of the backbuffer in pixels |
void arctic::SetCursorVisible | ( | bool | is_enable | ) |
Sets OS mouse cursor visibility.
is_enable | true makes the cursor visible, false hides it |
void arctic::SetFullScreen | ( | bool | is_enable | ) |
Toggles between the Full Screen mode and the Windowed mode.
is_enable | true swithes the application into the Full Screen mode false switches the application into the Windowed mode |
void arctic::SetInverseY | ( | bool | is_inverse | ) |
Enables/disables Y-coordinate inversion. By default Y-axis is directed upward.
is_inverse | If true, inverts the Y-axis; if false, Y-axis is directed upward (default) |
bool arctic::SetVSync | ( | bool | is_enable | ) |
Sets the VSync mode.
is_enable | true enables VSync, false disables VSync |
void arctic::Sleep | ( | double | duration_seconds | ) |
Waits for the time specified before returning.
duration_seconds | The duration to wait in seconds |
double arctic::Time | ( | ) |
Returns time in seconds since the game start.
Si16 arctic::ToBe | ( | Si16 | x | ) |
Transform value to the big-endian representation.
[in] | x | Local cpu-specific representation of a value to transform |
Si32 arctic::ToBe | ( | Si32 | x | ) |
Transform value to the big-endian representation.
[in] | x | Local cpu-specific representation of a value to transform |
Ui16 arctic::ToBe | ( | Ui16 | x | ) |
Transform value to the big-endian representation.
[in] | x | Local cpu-specific representation of a value to transform |
Ui32 arctic::ToBe | ( | Ui32 | x | ) |
Transform value to the big-endian representation.
[in] | x | Local cpu-specific representation of a value to transform |
std::string arctic::Utf16ToUtf8 | ( | const void * | data | ) |
Convers a UTF-16 encoded string to UTF-8.
[in] | data | Address of the UTF-16 encoded string. |
std::string arctic::Utf32ToUtf8 | ( | const void * | data | ) |
Convers a UTF-32 encoded string to UTF-8.
[in] | data | Address of the UTF-32 encoded string. |