NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
Auxiliary

Namespaces

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.

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

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.

Detailed Description

Enumeration Type Documentation

◆ Category

Classification for asset container layouts.

Defines a container's category based on the entry types expected at specific keys and the combined asset they represent.

See also
nnl::asset::Asset
nnl::asset::Categorize
Enumerator
kUnknown 

Unknown.

kAsset3DModel 

Contains kModel and possibly other parts

See also
nnl::asset::Asset3D
nnl::format::FileFormat
kAsset3DAnim 

Contains kAnimationContainer and other animation types for another kAsset3DModel

kAsset3DAction 

Contains only kActionConfig.

kAsset3DEffect 

Appears only in NSLAR, contains kActionConfig, kCollectionSpline, kTextureContainer2

kSoundBank 

A PHD/PBD pair (header + ADPCM data)

See also
nnl::asset::SoundBank
kBitmapTextFont 

Consists of kTextureContainer and kAdvanceWidth Used in NSLAR.

See also
nnl::asset::BitmapText
kBitmapTextFull 

Consists of kTextureContainer, glyph spacing, kText.

kUIConfigs 

Consists of multiple kUIConfig's.

kUIConfigTextureContainer 

Consists of pairs of kUIConfig and kTextureContainer.

kPlaceholder 

No entries.

Function Documentation

◆ Categorize() [1/2]

Category nnl::asset::Categorize ( const Asset & asset)

Determines the category of an asset by analyzing its contents.

Parameters
assetThe asset to examine.
Returns
The asset's category, or kUnknown if unrecognized.
See also
nnl::asset::Category

◆ Categorize() [2/2]

Category nnl::asset::Categorize ( const AssetView & asset)

Determines the category of an asset by analyzing its contents.

Parameters
assetThe asset to examine.
Returns
The asset's category, or kUnknown if unrecognized.
See also
nnl::asset::Category