Kohi Game Engine
vfs_request_info Struct Reference

The request options for getting an asset from the VFS. More...

#include <vfs.h>

Data Fields

kname package_name
 The name of the package to load the asset from. More...
 
kname asset_name
 The name of the asset to request. More...
 
b8 is_binary
 Indicates if the asset is binary. If not, the asset is loaded as text. More...
 
u32 context_size
 The size of the context in bytes. More...
 
const void * context
 
PFN_on_asset_loaded_callback vfs_callback
 

Detailed Description

The request options for getting an asset from the VFS.

Field Documentation

◆ asset_name

kname asset_name

The name of the asset to request.

◆ context

const void* context
Parameters
contextA constant pointer to the context to be used for this call. This is passed through to the result callback. NOTE: A copy of this is taken immediately, so lifetime of this isn't important.

◆ context_size

u32 context_size

The size of the context in bytes.

◆ is_binary

b8 is_binary

Indicates if the asset is binary. If not, the asset is loaded as text.

◆ package_name

kname package_name

The name of the package to load the asset from.

◆ vfs_callback


The documentation for this struct was generated from the following file: