Kohi Game Engine
kasset_importer Struct Reference

Represents the interface point for an importer. More...

#include <kasset_types.h>

Data Fields

const char * source_type
 The file type supported by the importer. More...
 
PFN_kasset_importer_import import
 Imports an asset according to the provided params and the importer's internal logic. NOTE: Some importers (i.e. .obj for static meshes) can also trigger imports of other assets. Those assets are immediately serialized to disk/package and not returned here though. More...
 

Detailed Description

Represents the interface point for an importer.

Field Documentation

◆ import

Imports an asset according to the provided params and the importer's internal logic. NOTE: Some importers (i.e. .obj for static meshes) can also trigger imports of other assets. Those assets are immediately serialized to disk/package and not returned here though.

Parameters
selfA pointer to the importer itself.
data_sizeThe size of the data being imported.
dataA block of memory containing the data being imported.
paramsA block of memory containing parameters for the import. Optional in general, but required by some importers.
out_assetA pointer to the asset being imported.
Returns
True on success; otherwise false.

◆ source_type

const char* source_type

The file type supported by the importer.


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