#include <pg_res_mgr.h>
Classes | |
| struct | TypeInfo |
Public Types | |
| typedef void(* | Initializer )(pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, void **exinfo) |
| typedef void(* | Finalizer )(pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, void *exinfo) |
Public Member Functions | |
| pgDefineException (ExceptionCannotOpenFile) | |
| pgDefineException (ExceptionCannotReadFile) | |
| pgDefineException (ExceptionInvalidArgument) | |
| pgDefineException (ExceptionNotFound) | |
| pgDefineException (ExceptionNotInitialized) | |
| pgDefineException (ExceptionSameExtensionExists) | |
| pgDefineException (ExceptionSameIDExists) | |
Static Public Member Functions | |
| static bool | isCreated () |
| static void | createAfterTask () |
| static void | destroyBeforeSys () |
| static u16 | getTypeNum () |
| static u16 | getResourceNum () |
| static void | addType (pgStr< char, 3 > ext, Initializer init, Finalizer final) |
| static void | removeType (pgStr< char, 3 > ext) |
| static bool | hasResource (pgID id) |
| static pgRes | getResource (pgID id) |
| static void | addResource (pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, bool is_auto_free) |
| static void | removeResource (pgID id) |
| static void | loadResource (const char *filename, bool is_type_detect) |
| static void | loadResourceAs (pgID id, const char *filename, bool is_type_detect) |
| static const pgStr< char, 3 > * | getFirstTypeN () |
| static const pgStr< char, 3 > * | getNextTypeN (pgStr< char, 3 > ext) |
| static const pgRes * | getFirstResourceN () |
| static const pgRes * | getNextResourceN (pgID id) |
1.5.8