wavelength 1.0.0
Loading...
Searching...
No Matches
RndMatAnim::Stage Class Reference

The keys of one texture stage. More...

#include <rndmatanim.h>

Public Member Functions

 Stage ()
 Construct a stage without keys.
 ~Stage ()=default
 Release the keys.
void Print (PrnStream &stream) const
 Write a description of the keys.
void Save (BinStream &stream) const
 Write the keys.
void Load (BinStream &stream)
 Read what Save() wrote, or an earlier version of it.
RndMatAnim * GetMatAnim () const
void SetMatAnim (RndMatAnim *pMatAnim)
const std::vector< Key< Vector3 > > & GetRotKeys () const
std::vector< Key< Vector3 > > & GetRotKeys ()
void SetRotKeys (const std::vector< Key< Vector3 > > &keys)
const std::vector< Key< Vector3 > > & GetScaleKeys () const
std::vector< Key< Vector3 > > & GetScaleKeys ()
void SetScaleKeys (const std::vector< Key< Vector3 > > &keys)
const std::vector< Key< RndTex * > > & GetTexKeys () const
std::vector< Key< RndTex * > > & GetTexKeys ()
const std::vector< Key< Vector3 > > & GetTransKeys () const
std::vector< Key< Vector3 > > & GetTransKeys ()
void SetTransKeys (const std::vector< Key< Vector3 > > &keys)

Detailed Description

The keys of one texture stage.

The RTTI includes the nested class name.

Constructor & Destructor Documentation

◆ Stage()

RndMatAnim::Stage::Stage ( )
inline

Construct a stage without keys.

mMatAnim is left unset, as the binary leaves it. RndMatAnim sets it before use.

Ghidra address:
NTSC-U/C: 0x00388600
Ghidra address:
PAL: 0x003f6d08

◆ ~Stage()

RndMatAnim::Stage::~Stage ( )
default

Release the keys.

Ghidra address:
NTSC-U/C: 0x00388478
Ghidra address:
PAL: 0x003f6b80

Member Function Documentation

◆ Print()

void RndMatAnim::Stage::Print ( PrnStream & stream) const

Write a description of the keys.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x002302b8
Ghidra address:
PAL: 0x00238e80

◆ Save()

void RndMatAnim::Stage::Save ( BinStream & stream) const

Write the keys.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x00230380
Ghidra address:
PAL: 0x00238f48

◆ Load()

void RndMatAnim::Stage::Load ( BinStream & stream)

Read what Save() wrote, or an earlier version of it.

The version is the one RndMatAnim::Load() read last. An early version stores a texture list in place of the texture keys, which becomes one key per texture at frames 0, 1, 2, and so on.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x002303d0
Ghidra address:
PAL: 0x00238f98

◆ GetMatAnim()

RndMatAnim * RndMatAnim::Stage::GetMatAnim ( ) const
inline
Returns
The animation that has the stage.

◆ SetMatAnim()

void RndMatAnim::Stage::SetMatAnim ( RndMatAnim * pMatAnim)
inline
Parameters
pMatAnimThe animation that has the stage.

◆ GetRotKeys() [1/2]

const std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetRotKeys ( ) const
inline
Returns
The texture rotation keys, as Euler angles.

◆ GetRotKeys() [2/2]

std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetRotKeys ( )
inline
Returns
The texture rotation keys, as Euler angles, for writing.

◆ SetRotKeys()

void RndMatAnim::Stage::SetRotKeys ( const std::vector< Key< Vector3 > > & keys)
inline
Parameters
keysThe texture rotation keys, as Euler angles.

◆ GetScaleKeys() [1/2]

const std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetScaleKeys ( ) const
inline
Returns
The texture scale keys.

◆ GetScaleKeys() [2/2]

std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetScaleKeys ( )
inline
Returns
The texture scale keys, for writing.

◆ SetScaleKeys()

void RndMatAnim::Stage::SetScaleKeys ( const std::vector< Key< Vector3 > > & keys)
inline
Parameters
keysThe texture scale keys.

◆ GetTexKeys() [1/2]

const std::vector< Key< RndTex * > > & RndMatAnim::Stage::GetTexKeys ( ) const
inline
Returns
The texture keys.

◆ GetTexKeys() [2/2]

std::vector< Key< RndTex * > > & RndMatAnim::Stage::GetTexKeys ( )
inline
Returns
The texture keys, for writing.

◆ GetTransKeys() [1/2]

const std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetTransKeys ( ) const
inline
Returns
The texture translation keys.

◆ GetTransKeys() [2/2]

std::vector< Key< Vector3 > > & RndMatAnim::Stage::GetTransKeys ( )
inline
Returns
The texture translation keys, for writing.

◆ SetTransKeys()

void RndMatAnim::Stage::SetTransKeys ( const std::vector< Key< Vector3 > > & keys)
inline
Parameters
keysThe texture translation keys.

The documentation for this class was generated from the following file: