NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
nnl::asset Namespace Reference

Provides structures and functions to manage containers of interrelated asset parts. More...

Namespaces

namespace  Asset3D
 Constants for accessing entries in an asset container that stores a 3D object.
namespace  BitmapText
 Constants for accessing entries in an asset container that stores a bitmap text archive.
namespace  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.

Typedefs

using Asset = std::map<u32, Buffer>
 A container for related parts of a complete asset.
using AssetView = std::map<u32, BufferView>
 A non-owning view of an asset container.

Enumerations

enum  Category : u32 {
  kUnknown = 0 , kAsset3DModel = 0b10000001 , kAsset3DAnim = 0b10000010 , kAsset3DAction = 0b10000100 ,
  kAsset3DEffect = 0b10001000 , kSoundBank = 0b1'00000000 , kBitmapTextFont = 0b101'0'00000000 , kBitmapTextFull = 0b110'0'00000000 ,
  kUIConfigs = 0b1'000'0'00000000 , kUIConfigTextureContainer = 0b1'0'000'0'00000000 , kPlaceholder = 0x80000000
}
 Classification for asset container layouts. More...

Functions

bool IsOfType (BufferView buffer)
 Tests if the provided file is an asset container.
Asset Import (BufferView buffer)
 Parses a binary file and converts it into an Asset object.
AssetView ImportView (BufferView buffer)
 Parses a binary file and converts it into an AssetView object.
Buffer Export (const Asset &asset_container)
 Converts an asset container to a binary file representation.
Category Categorize (const Asset &asset)
 Determines the category of an asset by analyzing its contents.
Category Categorize (const AssetView &asset)
 Determines the category of an asset by analyzing its contents.

Detailed Description

Provides structures and functions to manage containers of interrelated asset parts.

See also
nnl::asset::Asset
nnl::asset::IsOfType
nnl::asset::ImportView
nnl::asset::Import
nnl::asset::Export