|
Polyphase Game Engine
|
#include "PolyphaseAPI.h"#include "System/SystemTypes.h"#include <string>#include <vector>#include <stdarg.h>Go to the source code of this file.
Classes | |
| struct | ScopedLock |
Macros | |
| #define | SCOPED_LOCK(mutex) ScopedLock scopedLock(mutex) |
Functions | |
| void | SYS_Initialize () |
| void | SYS_Shutdown () |
| void | SYS_Update () |
| bool | SYS_DoesFileExist (const char *path, bool isAsset) |
| void | SYS_AcquireFileData (const char *path, bool isAsset, int32_t maxSize, char *&outData, uint32_t &outSize) |
| void | SYS_ReleaseFileData (char *data) |
| std::string | SYS_GetExecutablePath () |
| std::string | SYS_GetPolyphasePath () |
| std::string | SYS_GetCurrentDirectoryPath () |
| std::string | SYS_GetAbsolutePath (const std::string &relativePath) |
| void | SYS_ExplorerOpenDirectory (const std::string &dirPath) |
| void | SYS_OpenFileWithDefaultApp (const std::string &filePath) |
| void | SYS_SetWorkingDirectory (const std::string &dirPath) |
| bool | SYS_CreateDirectory (const char *dirPath) |
| void | SYS_RemoveDirectory (const char *dirPath) |
| void | SYS_OpenDirectory (const std::string &dirPath, DirEntry &outDirEntry) |
| void | SYS_IterateDirectory (DirEntry &dirEntry) |
| void | SYS_CopyDirectory (const char *sourceDir, const char *destDir) |
| void | SYS_CopyFile (const char *sourcePath, const char *destPath) |
| bool | SYS_CopyDirectoryRecursive (const std::string &sourceDir, const std::string &destDir) |
| void | SYS_MoveDirectory (const char *sourceDir, const char *destDir) |
| void | SYS_MoveFile (const char *sourcePath, const char *destPath) |
| void | SYS_CloseDirectory (DirEntry &dirEntry) |
| void | SYS_RemoveFile (const char *path) |
| bool | SYS_Rename (const char *oldPath, const char *newPath) |
| std::vector< std::string > | SYS_OpenFileDialog () |
| std::string | SYS_SaveFileDialog () |
| std::string | SYS_SelectFolderDialog () |
| std::string | SYS_GetFileName (const std::string &path) |
| POLYPHASE_API ThreadObject * | SYS_CreateThread (ThreadFuncFP func, void *arg) |
| POLYPHASE_API void | SYS_JoinThread (ThreadObject *thread) |
| POLYPHASE_API void | SYS_DestroyThread (ThreadObject *thread) |
| POLYPHASE_API MutexObject * | SYS_CreateMutex () |
| POLYPHASE_API void | SYS_LockMutex (MutexObject *mutex) |
| POLYPHASE_API void | SYS_UnlockMutex (MutexObject *mutex) |
| POLYPHASE_API void | SYS_DestroyMutex (MutexObject *mutex) |
| POLYPHASE_API void | SYS_Sleep (uint32_t milliseconds) |
| POLYPHASE_API uint64_t | SYS_GetTimeMicroseconds () |
| void | SYS_Exec (const char *cmd, std::string *output=nullptr) |
| bool | SYS_ExecFull (const char *cmd, std::string *outStdout, std::string *outStderr, int *outExitCode) |
| Execute a command with full output capture. | |
| void * | SYS_AlignedMalloc (uint32_t size, uint32_t alignment) |
| void | SYS_AlignedFree (void *pointer) |
| std::vector< MemoryStat > | SYS_GetMemoryStats () |
| float | SYS_GetRAMUsage () |
| float | SYS_GetVRAMUsage () |
| float | SYS_GetRAM1Usage () |
| float | SYS_GetRAM2Usage () |
| float | SYS_GetCPUUsage () |
| float | SYS_GetTotalRAM () |
| float | SYS_GetTotalVRAM () |
| float | SYS_GetTotalRAM1 () |
| float | SYS_GetTotalRAM2 () |
| bool | SYS_ReadSave (const char *saveName, Stream &outStream) |
| bool | SYS_WriteSave (const char *saveName, Stream &stream) |
| bool | SYS_DoesSaveExist (const char *saveName) |
| bool | SYS_DeleteSave (const char *saveName) |
| void | SYS_UnmountMemoryCard () |
| void | SYS_SetClipboardText (const std::string &str) |
| std::string | SYS_GetClipboardText () |
| void | SYS_Log (LogSeverity severity, const char *format, va_list arg) |
| POLYPHASE_API void | SYS_Assert (const char *exprString, const char *fileString, uint32_t lineNumber) |
| void | SYS_Alert (const char *message) |
| void | SYS_UpdateConsole () |
| int32_t | SYS_GetPlatformTier () |
| void | SYS_SetWindowTitle (const char *title) |
| void | SYS_SetWindowIcon (const char *iconPath) |
| bool | SYS_DoesWindowHaveFocus () |
| void | SYS_SetScreenOrientation (ScreenOrientation orientation) |
| ScreenOrientation | SYS_GetScreenOrientation () |
| void | SYS_SetFullscreen (bool fullscreen) |
| bool | SYS_IsFullscreen () |
| void | SYS_SetWindowRect (int32_t x, int32_t y, int32_t width, int32_t height) |
| void | SYS_GetWindowRect (int32_t &outX, int32_t &outY, int32_t &outWidth, int32_t &outHeight) |
| bool | SYS_IsWindowMaximized () |
| void | SYS_MaximizeWindow () |
| #define SCOPED_LOCK | ( | mutex | ) | ScopedLock scopedLock(mutex) |
| void SYS_AcquireFileData | ( | const char * | path, |
| bool | isAsset, | ||
| int32_t | maxSize, | ||
| char *& | outData, | ||
| uint32_t & | outSize | ||
| ) |
| void SYS_Alert | ( | const char * | message | ) |
| void SYS_AlignedFree | ( | void * | pointer | ) |
| void * SYS_AlignedMalloc | ( | uint32_t | size, |
| uint32_t | alignment | ||
| ) |
| POLYPHASE_API void SYS_Assert | ( | const char * | exprString, |
| const char * | fileString, | ||
| uint32_t | lineNumber | ||
| ) |
| void SYS_CloseDirectory | ( | DirEntry & | dirEntry | ) |
| void SYS_CopyDirectory | ( | const char * | sourceDir, |
| const char * | destDir | ||
| ) |
| bool SYS_CopyDirectoryRecursive | ( | const std::string & | sourceDir, |
| const std::string & | destDir | ||
| ) |
| void SYS_CopyFile | ( | const char * | sourcePath, |
| const char * | destPath | ||
| ) |
| bool SYS_CreateDirectory | ( | const char * | dirPath | ) |
| POLYPHASE_API MutexObject * SYS_CreateMutex | ( | ) |
| POLYPHASE_API ThreadObject * SYS_CreateThread | ( | ThreadFuncFP | func, |
| void * | arg | ||
| ) |
| bool SYS_DeleteSave | ( | const char * | saveName | ) |
| POLYPHASE_API void SYS_DestroyMutex | ( | MutexObject * | mutex | ) |
| POLYPHASE_API void SYS_DestroyThread | ( | ThreadObject * | thread | ) |
| bool SYS_DoesFileExist | ( | const char * | path, |
| bool | isAsset | ||
| ) |
| bool SYS_DoesSaveExist | ( | const char * | saveName | ) |
| bool SYS_DoesWindowHaveFocus | ( | ) |
| void SYS_Exec | ( | const char * | cmd, |
| std::string * | output = nullptr |
||
| ) |
| bool SYS_ExecFull | ( | const char * | cmd, |
| std::string * | outStdout, | ||
| std::string * | outStderr, | ||
| int * | outExitCode | ||
| ) |
Execute a command with full output capture.
Unlike SYS_Exec which only captures the first 1024 bytes, this function captures complete stdout/stderr output.
| cmd | Command to execute |
| outStdout | Pointer to receive stdout (can be nullptr) |
| outStderr | Pointer to receive stderr (can be nullptr) |
| outExitCode | Pointer to receive exit code (can be nullptr) |
| void SYS_ExplorerOpenDirectory | ( | const std::string & | dirPath | ) |
| std::string SYS_GetAbsolutePath | ( | const std::string & | relativePath | ) |
| std::string SYS_GetClipboardText | ( | ) |
| float SYS_GetCPUUsage | ( | ) |
| std::string SYS_GetCurrentDirectoryPath | ( | ) |
| std::string SYS_GetExecutablePath | ( | ) |
| std::string SYS_GetFileName | ( | const std::string & | path | ) |
| std::vector< MemoryStat > SYS_GetMemoryStats | ( | ) |
| int32_t SYS_GetPlatformTier | ( | ) |
| std::string SYS_GetPolyphasePath | ( | ) |
| float SYS_GetRAM1Usage | ( | ) |
| float SYS_GetRAM2Usage | ( | ) |
| float SYS_GetRAMUsage | ( | ) |
| ScreenOrientation SYS_GetScreenOrientation | ( | ) |
| POLYPHASE_API uint64_t SYS_GetTimeMicroseconds | ( | ) |
| float SYS_GetTotalRAM | ( | ) |
| float SYS_GetTotalRAM1 | ( | ) |
| float SYS_GetTotalRAM2 | ( | ) |
| float SYS_GetTotalVRAM | ( | ) |
| float SYS_GetVRAMUsage | ( | ) |
| void SYS_GetWindowRect | ( | int32_t & | outX, |
| int32_t & | outY, | ||
| int32_t & | outWidth, | ||
| int32_t & | outHeight | ||
| ) |
| void SYS_Initialize | ( | ) |
| bool SYS_IsFullscreen | ( | ) |
| bool SYS_IsWindowMaximized | ( | ) |
| void SYS_IterateDirectory | ( | DirEntry & | dirEntry | ) |
| POLYPHASE_API void SYS_JoinThread | ( | ThreadObject * | thread | ) |
| POLYPHASE_API void SYS_LockMutex | ( | MutexObject * | mutex | ) |
| void SYS_Log | ( | LogSeverity | severity, |
| const char * | format, | ||
| va_list | arg | ||
| ) |
| void SYS_MaximizeWindow | ( | ) |
| void SYS_MoveDirectory | ( | const char * | sourceDir, |
| const char * | destDir | ||
| ) |
| void SYS_MoveFile | ( | const char * | sourcePath, |
| const char * | destPath | ||
| ) |
| void SYS_OpenDirectory | ( | const std::string & | dirPath, |
| DirEntry & | outDirEntry | ||
| ) |
| std::vector< std::string > SYS_OpenFileDialog | ( | ) |
| void SYS_OpenFileWithDefaultApp | ( | const std::string & | filePath | ) |
| bool SYS_ReadSave | ( | const char * | saveName, |
| Stream & | outStream | ||
| ) |
| void SYS_ReleaseFileData | ( | char * | data | ) |
| void SYS_RemoveDirectory | ( | const char * | dirPath | ) |
| void SYS_RemoveFile | ( | const char * | path | ) |
| bool SYS_Rename | ( | const char * | oldPath, |
| const char * | newPath | ||
| ) |
| std::string SYS_SaveFileDialog | ( | ) |
| std::string SYS_SelectFolderDialog | ( | ) |
| void SYS_SetClipboardText | ( | const std::string & | str | ) |
| void SYS_SetFullscreen | ( | bool | fullscreen | ) |
| void SYS_SetScreenOrientation | ( | ScreenOrientation | orientation | ) |
| void SYS_SetWindowIcon | ( | const char * | iconPath | ) |
| void SYS_SetWindowRect | ( | int32_t | x, |
| int32_t | y, | ||
| int32_t | width, | ||
| int32_t | height | ||
| ) |
| void SYS_SetWindowTitle | ( | const char * | title | ) |
| void SYS_SetWorkingDirectory | ( | const std::string & | dirPath | ) |
| void SYS_Shutdown | ( | ) |
| POLYPHASE_API void SYS_Sleep | ( | uint32_t | milliseconds | ) |
| POLYPHASE_API void SYS_UnlockMutex | ( | MutexObject * | mutex | ) |
| void SYS_UnmountMemoryCard | ( | ) |
| void SYS_Update | ( | ) |
| void SYS_UpdateConsole | ( | ) |
| bool SYS_WriteSave | ( | const char * | saveName, |
| Stream & | stream | ||
| ) |