|
NSUNI/NSLAR Library a250670
|
Provides structures and functions to manage containers of interrelated asset parts. More...
Go to the source code of this file.
Namespaces | |
| namespace | nnl |
| namespace | nnl::asset |
| Provides structures and functions to manage containers of interrelated asset parts. | |
| namespace | nnl::asset::Asset3D |
| Constants for accessing entries in an asset container that stores a 3D object. | |
| namespace | nnl::asset::SoundBank |
| Constants for accessing entries in an asset container that stores a PHD/PBD sound bank, a proprietary format developed by Sony. More details can be found in the official PSP SDK docs. | |
| namespace | nnl::asset::BitmapText |
| Constants for accessing entries in an asset container that stores a bitmap text archive. | |
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. | |
Enumerations | |
| enum | nnl::asset::Category : u32 { nnl::asset::kUnknown = 0 , nnl::asset::kAsset3DModel = 0b10000001 , nnl::asset::kAsset3DAnim = 0b10000010 , nnl::asset::kAsset3DAction = 0b10000100 , nnl::asset::kAsset3DEffect = 0b10001000 , nnl::asset::kSoundBank = 0b1'00000000 , nnl::asset::kBitmapTextFont = 0b101'0'00000000 , nnl::asset::kBitmapTextFull = 0b110'0'00000000 , nnl::asset::kUIConfigs = 0b1'000'0'00000000 , nnl::asset::kUIConfigTextureContainer = 0b1'0'000'0'00000000 , nnl::asset::kPlaceholder = 0x80000000 } |
| Classification for asset container layouts. More... | |
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. | |
| Category | nnl::asset::Categorize (const Asset &asset) |
| Determines the category of an asset by analyzing its contents. | |
| Category | nnl::asset::Categorize (const AssetView &asset) |
| Determines the category of an asset by analyzing its contents. | |
Variables | |
| constexpr u32 | nnl::asset::Asset3D::kModel = 0 |
| constexpr u32 | nnl::asset::Asset3D::kTextureContainer = 1 |
| constexpr u32 | nnl::asset::Asset3D::kAnimationContainer = 2 |
| constexpr u32 | nnl::asset::Asset3D::kActionConfig = 3 |
| constexpr u32 | nnl::asset::Asset3D::kColboxConfig = 4 |
| constexpr u32 | nnl::asset::Asset3D::kCollectionSpline = 5 |
| constexpr u32 | nnl::asset::Asset3D::kTextureContainer2 = 6 |
| constexpr u32 | nnl::asset::Asset3D::kCollision = 7 |
| constexpr u32 | nnl::asset::Asset3D::kShadowCollision = 8 |
| constexpr u32 | nnl::asset::Asset3D::kVisanimationContainer = 9 |
| constexpr u32 | nnl::asset::SoundBank::kPHD = 0 |
| constexpr u32 | nnl::asset::SoundBank::kPBD = 1 |
| constexpr u32 | nnl::asset::BitmapText::kTextureContainer = 0 |
| constexpr u32 | nnl::asset::BitmapText::kAdvanceWidth = 1 |
| A plain u8 array specifying the advance width for each character of kText. | |
| constexpr u32 | nnl::asset::BitmapText::kText = 2 |
Provides structures and functions to manage containers of interrelated asset parts.