#include <pg_sys_mgr.h>
Public Types | |
| enum | SysFlag { FLAG_FULLSCREEN_START = 0x0001, FLAG_VARIABLE_SIZE = 0x0002, FLAG_DISABLE_SHADER = 0x0004 } |
| TODO. | |
| enum | FileMode { FILE_MODE_READ, FILE_MODE_WRITE } |
Public Member Functions | |
| pgDefineException (ExceptionCannotCreateMutex) | |
| pgDefineException (ExceptionCannotCreateThread) | |
| pgDefineException (ExceptionCannotOpenFile) | |
| pgDefineException (ExceptionCannotReadFile) | |
| pgDefineException (ExceptionCannotWriteFile) | |
| pgDefineException (ExceptionCreateFramebufferFailed) | |
| pgDefineException (ExceptionEndPogolyn) | |
| pgDefineException (ExceptionInvalidArgument) | |
| pgDefineException (ExceptionNotInitialized) | |
Static Public Member Functions | |
| static void | printf (const char *str,...) |
| static void | wprintf (const wchar_t *str,...) |
| static void | sprintf (char *buf, u32 buf_size, const char *str,...) |
| static void | swprintf (wchar_t *buf, u32 buf_size, const wchar_t *str,...) |
| static void * | openFile (const char *filename, FileMode file_mode) |
| static u32 | getFileSize (void *file_handler) |
| static void | readFile (void *buf, u32 offset, u32 size, void *file_handler) |
| static void | writeFile (u32 offset, const void *buf, u32 size, void *file_handler) |
| static void | closeFile (void *file_handler) |
| static u64 | getUsecTime () |
| static void | sleepUsec (u64 usec) |
| static void * | newThread (void(*start_func)(void *), void *user_param) |
| static void | deleteThread (void *thread_handler) |
| static void | joinThread (void *thread_handler) |
| static void * | newMutex () |
| static void | deleteMutex (void *mutex_handler) |
| static void | lockMutex (void *mutex_handler) |
| static void | unlockMutex (void *mutex_handler) |
| static bool | isCreated () |
| static void | createAfterMem (const char *title, u16 width, u16 height, u16 sys_flag) |
| static void | destroyBeforeMem () |
| static u16 | getFramebufferWidth () |
| static u16 | getFramebufferHeight () |
| static bool | isFramebufferSizeChanged () |
| static bool | isFullScreen () |
| static void | toggleFullScreen (u16 width, u16 height) |
| static void | updateForSystem () |
| static void | readLittleEndianForSystem (void *dest, const void *src, u32 size) |
| template<class T > | |
| static T | readLittleEndianForSystem (const void *data) |
| static void | writeLittleEndianForSystem (void *dest, const void *src, u32 size) |
| template<class T > | |
| static void | writeLittleEndianForSystem (void *dest, const T &value) |
| static void | setInitialDirectoryForSystem (s32 argc, char **argv) |
1.5.8