|
Kohi Game Engine
|
Represents data and properties from an asset loaded from the VFS. More...
#include <vfs.h>
Data Fields | |
| kname | asset_name |
| The name of the asset stored as a kname. More... | |
| kname | package_name |
| The name of the package containing the asset, stored as a kname. More... | |
| const char * | path |
| A copy of the asset path. More... | |
| u64 | size |
| The size of the asset in bytes. More... | |
| union { | |
| const char * text | |
| const void * bytes | |
| }; | |
| vfs_asset_flags | flags |
| Various flags for the given asset. More... | |
| vfs_request_result | result |
| u32 | context_size |
| void * | context |
Represents data and properties from an asset loaded from the VFS.
| union { ... } |
| kname asset_name |
The name of the asset stored as a kname.
| const void* bytes |
The binary asset data, if a binary asset.
| void* context |
The context passed in from the original request.
| u32 context_size |
The size of the context in bytes.
| vfs_asset_flags flags |
Various flags for the given asset.
| kname package_name |
The name of the package containing the asset, stored as a kname.
| const char* path |
A copy of the asset path.
| vfs_request_result result |
The result of the asset load operation.
| u64 size |
The size of the asset in bytes.
| const char* text |
The asset data as a string, if a text asset. Zero-terminated.