![]() |
Oficina Framework
1.3
Games Framework
|
Provides methods for loading compressed data. More...
#include <IOSystem.hpp>
Classes | |
| class | ScriptStream |
| Reads a script as a byte stream. More... | |
| class | ScriptTools |
| A class for opening and loading Gongly Script data. Works since Gongly Script v1.0. More... | |
Static Public Member Functions | |
| static void | init (const char *currentpath) |
| Initializes the path. More... | |
| static void | dispose () |
| Closes the path. More... | |
| static bool | AddToSearchPath (std::string file) |
| Adds a compressed file to the beginning of the search path. More... | |
| static byte * | Load (std::string asset_path, qword_s &size) |
| Loads a raw file, from path. More... | |
| static SDL_Surface * | LoadTexture (std::string asset_path) |
| Loads a texture, PNG format, from path. More... | |
| static bool | IsBigEndian () |
| Check whether the current system is big endian. More... | |
| static ScriptStream * | LoadScriptByteStream (std::string script_path) |
| Loads an entire entity script from path, as a binary stream. If you're not using IOSystem::ScriptTools, remember to unload it. More... | |
| static void | SwapEndianness16 (word &val) |
| Swaps endianness of 16-bit variable. More... | |
| static void | SwapEndianness16 (word_s &val) |
| static void | SwapEndianness32 (dword &val) |
| Swaps endianness of 32-bit variable. More... | |
| static void | SwapEndianness32 (int &val) |
| static void | SwapEndianness64 (qword &val) |
| Swaps endianness of 64-bit variable. More... | |
| static void | SwapEndianness64 (qword_s &val) |
| static void | SwapEndiannessF (float &val) |
| Swaps endianness of float variable. More... | |
| static void | SwapEndiannessD (double &val) |
| Swaps endianness of double variable. More... | |
| static bool | IsInitialized () |
| Gets if the IOSystem is initialized. More... | |
Provides methods for loading compressed data.
|
static |
Adds a compressed file to the beginning of the search path.
|
static |
Closes the path.
|
static |
Initializes the path.
| currentpath | Current running path - argv's [0] position. |
|
static |
Check whether the current system is big endian.
|
static |
Gets if the IOSystem is initialized.
Loads a raw file, from path.
| asset_path | Path to the asset on the actual Path. |
| size | Size of structure to be loaded. |
|
static |
Loads an entire entity script from path, as a binary stream. If you're not using IOSystem::ScriptTools, remember to unload it.
| script_path | Path to the script on the actual Path. |
|
static |
Loads a texture, PNG format, from path.
| asset_path | Path to the asset on the actual Path. |
|
static |
Swaps endianness of 16-bit variable.
| val | Value to be swapped. |
|
static |
|
static |
Swaps endianness of 32-bit variable.
| val | Value to be swapped. |
|
static |
|
static |
Swaps endianness of 64-bit variable.
| val | Value to be swapped. |
|
static |
|
static |
Swaps endianness of double variable.
| val | Value to be swapped. |
|
static |
Swaps endianness of float variable.
| val | Value to be swapped. |