Stage that scales the frame and adds an offset.
More...
#include <rndanimatable.h>
|
| float | Apply (float fValue) override |
| | Scale and offset a frame.
|
| float | Unapply (float fValue) override |
| | Remove the offset and the scale.
|
| void | Print (PrnStream &stream) const override |
| | Write the scale and the offset.
|
| void | Save (BinStream &stream) override |
| | Write the scale and the offset.
|
| void | Load (BinStream &stream) override |
| | Read the scale and the offset.
|
| int | Type () override |
| | Report the type tag.
|
| void | Copy (const Filter *pSource) override |
| | Copy another stage.
|
| void | SetOffset (float fOffset) |
| float | GetOffset () const |
| float | GetScale () const |
| void | SetScale (float fScale) |
Stage that scales the frame and adds an offset.
◆ Apply()
| float RndAnimatable::ScaleOffset::Apply |
( |
float | fValue | ) |
|
|
inlineoverridevirtual |
Scale and offset a frame.
- Parameters
-
- Returns
- The frame times mScale plus mOffset.
- Ghidra address:
- NTSC-U/C: 0x0037e770
- Ghidra address:
- PAL: 0x003ecea0
Implements RndAnimatable::Filter.
◆ Unapply()
| float RndAnimatable::ScaleOffset::Unapply |
( |
float | fValue | ) |
|
|
inlineoverridevirtual |
Remove the offset and the scale.
- Parameters
-
| fValue | The filtered frame. |
- Returns
- The frame.
- Ghidra address:
- NTSC-U/C: 0x0037e788
- Ghidra address:
- PAL: 0x003eceb8
Implements RndAnimatable::Filter.
◆ Print()
| void RndAnimatable::ScaleOffset::Print |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the scale and the offset.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x0021c468
- Ghidra address:
- PAL: 0x00225280
Implements RndAnimatable::Filter.
◆ Save()
| void RndAnimatable::ScaleOffset::Save |
( |
BinStream & | stream | ) |
|
|
inlineoverridevirtual |
Write the scale and the offset.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x0037e7a0
- Ghidra address:
- PAL: 0x003eced0
Implements RndAnimatable::Filter.
◆ Load()
| void RndAnimatable::ScaleOffset::Load |
( |
BinStream & | stream | ) |
|
|
inlineoverridevirtual |
Read the scale and the offset.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x0037e800
- Ghidra address:
- PAL: 0x003ecf30
Implements RndAnimatable::Filter.
◆ Type()
| int RndAnimatable::ScaleOffset::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report the type tag.
- Returns
- kFilterScaleOffset.
- Ghidra address:
- NTSC-U/C: 0x0037e850
- Ghidra address:
- PAL: 0x003ecf80
Implements RndAnimatable::Filter.
◆ Copy()
| void RndAnimatable::ScaleOffset::Copy |
( |
const Filter * | pSource | ) |
|
|
inlineoverridevirtual |
Copy another stage.
- Parameters
-
| pSource | The stage to copy from. |
- Ghidra address:
- NTSC-U/C: 0x0037e858
- Ghidra address:
- PAL: 0x003ecf88
Implements RndAnimatable::Filter.
◆ SetOffset()
| void RndAnimatable::ScaleOffset::SetOffset |
( |
float | fOffset | ) |
|
|
inline |
◆ GetOffset()
| float RndAnimatable::ScaleOffset::GetOffset |
( |
| ) |
const |
|
inline |
◆ GetScale()
| float RndAnimatable::ScaleOffset::GetScale |
( |
| ) |
const |
|
inline |
◆ SetScale()
| void RndAnimatable::ScaleOffset::SetScale |
( |
float | fScale | ) |
|
|
inline |
The documentation for this class was generated from the following file: