wavelength 1.0.0
Loading...
Searching...
No Matches
rndmatanim.h File Reference
#include <list>
#include <vector>
#include "math/color.h"
#include "math/key.h"
#include "math/vector3.h"
#include "rnd/rndanimatable.h"
#include "rnd/rndmat.h"
#include "rnd/rndtex.h"
Include dependency graph for rndmatanim.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RndMatAnim
 Animation of a material's colours, alpha, and texture stages by keys. More...
class  RndMatAnim::Stage
 The keys of one texture stage. More...

Functions

BinStream & operator<< (BinStream &stream, const Key< RndTex * > &key)
 Write a texture key as the texture's name, empty for none, followed by its frame.
BinStream & operator>> (BinStream &stream, Key< RndTex * > &key)
 Read a texture key the texture key writer wrote, resolving the name in TheManager.
PrnStream & operator<< (PrnStream &stream, const std::vector< RndMatAnim::Stage > &stages)
 Write the stages of an animation as their count followed by each stage on its own line.
BinStream & operator<< (BinStream &stream, const std::vector< RndMatAnim::Stage > &stages)
 Write the stages of an animation as their count followed by each stage.
BinStream & operator>> (BinStream &stream, std::vector< RndMatAnim::Stage > &stages)
 Read the stages of an animation the stage writer wrote.

Function Documentation

◆ operator<<() [1/3]

BinStream & operator<< ( BinStream & stream,
const Key< RndTex * > & key )

Write a texture key as the texture's name, empty for none, followed by its frame.

Parameters
streamThe stream to write to.
keyThe key.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00387640
Ghidra address:
PAL: 0x003f5d48

◆ operator>>() [1/2]

BinStream & operator>> ( BinStream & stream,
Key< RndTex * > & key )

Read a texture key the texture key writer wrote, resolving the name in TheManager.

An empty name, an unknown name, or an object of another class reads as null.

Parameters
streamThe stream to read from.
keyReceives the key.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x003882c8
Ghidra address:
PAL: 0x003f69d0

◆ operator<<() [2/3]

PrnStream & operator<< ( PrnStream & stream,
const std::vector< RndMatAnim::Stage > & stages )

Write the stages of an animation as their count followed by each stage on its own line.

Parameters
streamThe stream to write to.
stagesThe stages.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00385048
Ghidra address:
PAL: 0x003f3750

◆ operator<<() [3/3]

BinStream & operator<< ( BinStream & stream,
const std::vector< RndMatAnim::Stage > & stages )

Write the stages of an animation as their count followed by each stage.

Parameters
streamThe stream to write to.
stagesThe stages.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x003853e0
Ghidra address:
PAL: 0x003f3ae8

◆ operator>>() [2/2]

BinStream & operator>> ( BinStream & stream,
std::vector< RndMatAnim::Stage > & stages )

Read the stages of an animation the stage writer wrote.

Parameters
streamThe stream to read from.
stagesReceives the stages.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00385690
Ghidra address:
PAL: 0x003f3d98