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

One texture stage. More...

#include <rndmat.h>

Public Member Functions

 Stage ()
 Construct a multiplying stage with an identity transform and no texture.
void SetTex (RndTex *pTex)
 Set the texture, moving the material's reference to it.
void Print (PrnStream &stream) const
 Write a description of the stage.
void Save (BinStream &stream) const
 Write the stage.
void Load (BinStream &stream)
 Read what Save() wrote, or an earlier version of it.
int GetBlend () const
void SetBlend (int nBlend)
int GetGenMode () const
RndMat * GetMat () const
void SetMat (RndMat *pMat)
RndTex * GetTex () const
int GetUseXfm () const
void SetUseXfm (int nUseXfm)
int GetWrap () const
void SetWrap (int nWrap)
const Transform & GetXfm () const
Transform & GetXfm ()
void SetXfm (const Transform &xfm)

Detailed Description

One texture stage.

The RTTI includes the nested class name.

Constructor & Destructor Documentation

◆ Stage()

RndMat::Stage::Stage ( )

Construct a multiplying stage with an identity transform and no texture.

Ghidra address:
NTSC-U/C: 0x0022ebb8
Ghidra address:
PAL: 0x002377a0

Member Function Documentation

◆ SetTex()

void RndMat::Stage::SetTex ( RndTex * pTex)

Set the texture, moving the material's reference to it.

Parameters
pTexThe texture, or null.
Ghidra address:
NTSC-U/C: 0x0022ec28
Ghidra address:
PAL: 0x00237810

◆ Print()

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

Write a description of the stage.

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

◆ Save()

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

Write the stage.

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

◆ Load()

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

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

The version is the one RndMat::Load() read last.

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

◆ GetBlend()

int RndMat::Stage::GetBlend ( ) const
inline
Returns
The Blend of the stage.

◆ SetBlend()

void RndMat::Stage::SetBlend ( int nBlend)
inline
Parameters
nBlendThe Blend of the stage.

◆ GetGenMode()

int RndMat::Stage::GetGenMode ( ) const
inline
Returns
The TexGen of the stage.

◆ GetMat()

RndMat * RndMat::Stage::GetMat ( ) const
inline
Returns
The material that has the stage.

◆ SetMat()

void RndMat::Stage::SetMat ( RndMat * pMat)
inline
Parameters
pMatThe material that has the stage.

◆ GetTex()

RndTex * RndMat::Stage::GetTex ( ) const
inline
Returns
The texture, or null.

◆ GetUseXfm()

int RndMat::Stage::GetUseXfm ( ) const
inline
Returns
Non-zero to apply mXfm.

◆ SetUseXfm()

void RndMat::Stage::SetUseXfm ( int nUseXfm)
inline
Parameters
nUseXfmNon-zero to apply mXfm.

◆ GetWrap()

int RndMat::Stage::GetWrap ( ) const
inline
Returns
The TexWrap of the stage.

◆ SetWrap()

void RndMat::Stage::SetWrap ( int nWrap)
inline
Parameters
nWrapThe TexWrap of the stage.

◆ GetXfm() [1/2]

const Transform & RndMat::Stage::GetXfm ( ) const
inline
Returns
The texture coordinate transform.

◆ GetXfm() [2/2]

Transform & RndMat::Stage::GetXfm ( )
inline
Returns
The texture coordinate transform, for writing.

◆ SetXfm()

void RndMat::Stage::SetXfm ( const Transform & xfm)
inline
Parameters
xfmThe texture coordinate transform.

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