|
NSUNI/NSLAR Library a250670
|
Typedefs | |
| using | nnl::asset::Asset = std::map<u32, Buffer> |
| A container for related parts of a complete asset. | |
| using | nnl::asset::AssetView = std::map<u32, BufferView> |
| A non-owning view of an asset container. | |
Functions | |
| bool | nnl::asset::IsOfType (BufferView buffer) |
| Tests if the provided file is an asset container. | |
| Asset | nnl::asset::Import (BufferView buffer) |
| Parses a binary file and converts it into an Asset object. | |
| AssetView | nnl::asset::ImportView (BufferView buffer) |
| Parses a binary file and converts it into an AssetView object. | |
| Buffer | nnl::asset::Export (const Asset &asset_container) |
| Converts an asset container to a binary file representation. | |
| using nnl::asset::Asset = std::map<u32, Buffer> |
A container for related parts of a complete asset.
This container typically holds closely related components of a complete asset.
For instance, it can store parts of a 3D object, such as meshes, textures, and animations. In other instances, it can hold components of a text archive, including a bitmap font and textual data. Each individual component is typically associated with a specific numeric key, which depends on the category of the container.
| using nnl::asset::AssetView = std::map<u32, BufferView> |
Converts an asset container to a binary file representation.
This function takes an Asset container and converts it into a Buffer, which represents the binary format of the container.
| asset_container | The Asset object to be converted. |
| Asset nnl::asset::Import | ( | BufferView | buffer | ) |
Parses a binary file and converts it into an Asset object.
This function takes a binary representation of an asset container, parses its contents, and converts them into an Asset object for easier access and modification.
| buffer | The binary data to be processed. |
| AssetView nnl::asset::ImportView | ( | BufferView | buffer | ) |
| bool nnl::asset::IsOfType | ( | BufferView | buffer | ) |
Tests if the provided file is an asset container.
This function takes data representing a file and checks whether it corresponds to the in-game asset container format.
| buffer | The data to be tested. |