wavelength 1.0.0
Loading...
Searching...
No Matches
rndmat.h File Reference
#include <cstddef>
#include <vector>
#include "math/color.h"
#include "math/transform.h"
#include "math/triangle.h"
#include "os/binstream.h"
#include "os/mem.h"
#include "os/prnstream.h"
#include "rnd/rndobject.h"
#include "rnd/rndtex.h"
Include dependency graph for rndmat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RndMat
 Surface description: blending, lighting colours, culling, and a list of texture stages. More...
class  RndMat::Stage
 One texture stage. More...

Functions

PrnStream & operator<< (PrnStream &stream, RndMat::Blend eBlend)
 Write the name of a blend mode.
PrnStream & operator<< (PrnStream &stream, RndMat::TexGen eTexGen)
 Write the name of a texture coordinate generator.
PrnStream & operator<< (PrnStream &stream, RndMat::TexWrap eWrap)
 Write the name of a wrap mode.
PrnStream & operator<< (PrnStream &stream, const std::vector< RndMat::Stage > &stages)
 Write the stages of a material as their count followed by each stage on its own line.
BinStream & operator<< (BinStream &stream, const std::vector< RndMat::Stage > &stages)
 Write the stages of a material as their count followed by each stage.
BinStream & operator>> (BinStream &stream, std::vector< RndMat::Stage > &stages)
 Read the stages of a material the stage writer wrote.

Function Documentation

◆ operator<<() [1/5]

PrnStream & operator<< ( PrnStream & stream,
RndMat::Blend eBlend )

Write the name of a blend mode.

Parameters
streamThe stream to write to.
eBlendThe mode. An unknown mode writes nothing.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0022f330
Ghidra address:
PAL: 0x00237ef8

◆ operator<<() [2/5]

PrnStream & operator<< ( PrnStream & stream,
RndMat::TexGen eTexGen )

Write the name of a texture coordinate generator.

Parameters
streamThe stream to write to.
eTexGenThe generator. An unknown generator writes nothing.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0022f4c0
Ghidra address:
PAL: 0x00238088

◆ operator<<() [3/5]

PrnStream & operator<< ( PrnStream & stream,
RndMat::TexWrap eWrap )

Write the name of a wrap mode.

Parameters
streamThe stream to write to.
eWrapThe mode. An unknown mode writes nothing.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0022f578
Ghidra address:
PAL: 0x00238140

◆ operator<<() [4/5]

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

Write the stages of a material 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: 0x00384360
Ghidra address:
PAL: 0x003f2a68

◆ operator<<() [5/5]

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

Write the stages of a material as their count followed by each stage.

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

◆ operator>>()

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

Read the stages of a material the stage writer wrote.

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