Kohi Game Engine
kasset_static_mesh_serializer.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "assets/kasset_types.h"
4 
14 
23 KAPI b8 kasset_static_mesh_deserialize(u64 size, const void* block, kasset_static_mesh* out_asset);
#define KAPI
Import/export qualifier.
Definition: defines.h:205
_Bool b8
8-bit boolean type
Definition: defines.h:58
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
KAPI b8 kasset_static_mesh_deserialize(u64 size, const void *block, kasset_static_mesh *out_asset)
Attempts to deserialize the given block of memory into an static_mesh asset.
KAPI void * kasset_static_mesh_serialize(const kasset_static_mesh *asset, u64 *out_size)
Attempts to serialize the asset into a binary blob. NOTE: allocates memory that should be freed by th...
Represents a static mesh asset.
Definition: kasset_types.h:226