wavelength 1.0.0
Loading...
Searching...
No Matches
rndanimatable.h File Reference
#include <list>
#include "os/binstream.h"
#include "os/prnstream.h"
#include "rnd/rndobject.h"
Include dependency graph for rndanimatable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RndAnimatable
 Mix-in for an object driven by a frame. More...
class  RndAnimatable::Filter
 One stage of the frame filter chain. More...
class  RndAnimatable::ScaleOffset
 Stage that scales the frame and adds an offset. More...
class  RndAnimatable::MinMaxLoop
 Stage that clamps the frame to a range, or wraps it around the range. More...
class  RndAnimatable::ZeroOrder
 Stage that follows the frame by at most a fixed step a call. More...
class  RndAnimatable::FirstOrder
 Stage that moves the level toward the frame by a fixed ratio of the gap. More...
class  RndAnimatable::SecondOrder
 Stage that follows the frame like a damped spring. More...

Functions

PrnStream & operator<< (PrnStream &stream, RndAnimatable::Filter *pFilter)
 Write a filter stage as its type tag and its parameters.
PrnStream & operator<< (PrnStream &stream, RndAnimatable::FilterType eType)
 Write the name of a filter type.
BinStream & operator>> (BinStream &stream, RndAnimatable::Filter *&pFilter)
 Read a filter stage as its type tag and its parameters.
BinStream & operator<< (BinStream &stream, const std::list< RndAnimatable::Filter * > &filters)
 Write a filter chain as its size followed by each stage's type tag and parameters.
BinStream & operator>> (BinStream &stream, std::list< RndAnimatable::Filter * > &filters)
 Read a filter chain the chain writer wrote.

Function Documentation

◆ operator<<() [1/3]

PrnStream & operator<< ( PrnStream & stream,
RndAnimatable::Filter * pFilter )

Write a filter stage as its type tag and its parameters.

Parameters
streamThe stream to write to.
pFilterThe stage.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0021c0a8
Ghidra address:
PAL: 0x00224ec0

◆ operator<<() [2/3]

PrnStream & operator<< ( PrnStream & stream,
RndAnimatable::FilterType eType )

Write the name of a filter type.

The program has no caller. An unknown type writes nothing.

Parameters
streamThe stream to write to.
eTypeThe type.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0021c1a8
Ghidra address:
PAL: 0x00224fc0

◆ operator>>() [1/2]

BinStream & operator>> ( BinStream & stream,
RndAnimatable::Filter *& pFilter )

Read a filter stage as its type tag and its parameters.

Parameters
streamThe stream to read from.
pFilterReceives the new stage.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0021c148
Ghidra address:
PAL: 0x00224f60

◆ operator<<() [3/3]

BinStream & operator<< ( BinStream & stream,
const std::list< RndAnimatable::Filter * > & filters )

Write a filter chain as its size followed by each stage's type tag and parameters.

Parameters
streamThe stream to write to.
filtersThe chain.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0037dd28
Ghidra address:
PAL: 0x003ec458

◆ operator>>() [2/2]

BinStream & operator>> ( BinStream & stream,
std::list< RndAnimatable::Filter * > & filters )

Read a filter chain the chain writer wrote.

Parameters
streamThe stream to read from.
filtersReceives the chain.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0037e050
Ghidra address:
PAL: 0x003ec780