sead
Loading...
Searching...
No Matches
sead::GraphicsContextMRT Class Reference

#include <seadGraphicsContextMRT.h>

Classes

class  BlendExpression

Public Member Functions

 GraphicsContextMRT ()
virtual ~GraphicsContextMRT ()
void apply () const
void applyAlphaTest () const
void applyDepthAndStencilTest () const
void applyColorMask () const
void applyBlendAndFastZ () const
void applyBlendConstantColor () const
void applyCullingAndPolygonModeAndPolygonOffset () const
void setDepthEnable (bool test_enable, bool write_enable)
void setDepthTestEnable (bool test_enable)
void setDepthWriteEnable (bool write_enable)
void setDepthFunc (Graphics::DepthFunc func)
void setCullingMode (Graphics::CullingMode mode)
void setBlendEnable (u32 target, bool blend)
void setBlendEnableMask (u32 mask)
BlendExpressiongetBlendExpression (u32 target)
void setBlendConstantColor (const Color4f &color)
void setAlphaTestEnable (bool enable)
void setAlphaTestFunc (Graphics::AlphaFunc func, f32 ref)
void setColorMask (u32 target, bool r, bool g, bool b, bool a)
void setColorMask (u32 mask)
void setStencilTestEnable (bool enable)
void setStencilTestFunc (Graphics::StencilFunc func, s32 ref, u32 mask)
void setStencilTestOp (Graphics::StencilOp fail, Graphics::StencilOp zfail, Graphics::StencilOp zpass)
void setPolygonMode (Graphics::PolygonMode front, Graphics::PolygonMode back)
void setPolygonOffsetEnable (bool fill_front_enable, bool fill_back_enable, bool point_line_enable)
bool getDepthTestEnable () const
bool getDepthWriteEnable () const
Graphics::DepthFunc getDepthFunc () const
Graphics::CullingMode getCullingMode () const
bool getBlendEnable (u32 target) const
u32 getBlendEnableMask () const
const BlendExpressiongetBlendExpression (u32 target) const
const Color4fgetBlendConstantColor () const
bool getAlphaTestEnable () const
Graphics::AlphaFunc getAlphaTestFunc () const
f32 getAlphaTestRef () const
bool getColorMaskR (u32 target) const
bool getColorMaskG (u32 target) const
bool getColorMaskB (u32 target) const
bool getColorMaskA (u32 target) const
u32 getColorMask () const
bool getStencilTestEnable () const
Graphics::StencilFunc getStencilTestFunc () const
s32 getStencilTestRef () const
u32 getStencilTestMask () const
Graphics::StencilOp getStencilTestOpFail () const
Graphics::StencilOp getStencilTestOpZFail () const
Graphics::StencilOp getStencilTestOpZPass () const
Graphics::PolygonMode getPolygonModeFront () const
Graphics::PolygonMode getPolygonModeBack () const
bool getPolygonOffsetFrontEnable () const
bool getPolygonOffsetBackEnable () const
bool getPolygonOffsetPointLineEnable () const

Private Attributes

bool mDepthTestEnable
bool mDepthWriteEnable
Graphics::DepthFunc mDepthFunc
Graphics::CullingMode mCullingMode
BitFlag32 mBlendEnableMask
SafeArray< BlendExpression, Graphics::cRenderTarget_NummBlendExpression
Color4f mBlendConstantColor
bool mAlphaTestEnable
Graphics::AlphaFunc mAlphaTestFunc
f32 mAlphaTestRef
u32 mColorMask
bool mStencilTestEnable
Graphics::StencilFunc mStencilTestFunc
s32 mStencilTestRef
u32 mStencilTestMask
Graphics::StencilOp mStencilOpFail
Graphics::StencilOp mStencilOpZFail
Graphics::StencilOp mStencilOpZPass
Graphics::PolygonMode mPolygonModeFront
Graphics::PolygonMode mPolygonModeBack
bool mPolygonOffsetFrontEnable
bool mPolygonOffsetBackEnable
bool mPolygonOffsetPointLineEnable

Constructor & Destructor Documentation

◆ GraphicsContextMRT()

sead::GraphicsContextMRT::GraphicsContextMRT ( )

◆ ~GraphicsContextMRT()

virtual sead::GraphicsContextMRT::~GraphicsContextMRT ( )
inlinevirtual

Member Function Documentation

◆ apply()

void sead::GraphicsContextMRT::apply ( ) const

◆ applyAlphaTest()

void sead::GraphicsContextMRT::applyAlphaTest ( ) const

◆ applyDepthAndStencilTest()

void sead::GraphicsContextMRT::applyDepthAndStencilTest ( ) const

◆ applyColorMask()

void sead::GraphicsContextMRT::applyColorMask ( ) const

◆ applyBlendAndFastZ()

void sead::GraphicsContextMRT::applyBlendAndFastZ ( ) const

◆ applyBlendConstantColor()

void sead::GraphicsContextMRT::applyBlendConstantColor ( ) const

◆ applyCullingAndPolygonModeAndPolygonOffset()

void sead::GraphicsContextMRT::applyCullingAndPolygonModeAndPolygonOffset ( ) const

◆ setDepthEnable()

void sead::GraphicsContextMRT::setDepthEnable ( bool test_enable,
bool write_enable )
inline

◆ setDepthTestEnable()

void sead::GraphicsContextMRT::setDepthTestEnable ( bool test_enable)
inline

◆ setDepthWriteEnable()

void sead::GraphicsContextMRT::setDepthWriteEnable ( bool write_enable)
inline

◆ setDepthFunc()

void sead::GraphicsContextMRT::setDepthFunc ( Graphics::DepthFunc func)
inline

◆ setCullingMode()

void sead::GraphicsContextMRT::setCullingMode ( Graphics::CullingMode mode)
inline

◆ setBlendEnable()

void sead::GraphicsContextMRT::setBlendEnable ( u32 target,
bool blend )
inline

◆ setBlendEnableMask()

void sead::GraphicsContextMRT::setBlendEnableMask ( u32 mask)
inline

◆ getBlendExpression() [1/2]

BlendExpression & sead::GraphicsContextMRT::getBlendExpression ( u32 target)
inline

◆ setBlendConstantColor()

void sead::GraphicsContextMRT::setBlendConstantColor ( const Color4f & color)
inline

◆ setAlphaTestEnable()

void sead::GraphicsContextMRT::setAlphaTestEnable ( bool enable)
inline

◆ setAlphaTestFunc()

void sead::GraphicsContextMRT::setAlphaTestFunc ( Graphics::AlphaFunc func,
f32 ref )
inline

◆ setColorMask() [1/2]

void sead::GraphicsContextMRT::setColorMask ( u32 target,
bool r,
bool g,
bool b,
bool a )
inline

◆ setColorMask() [2/2]

void sead::GraphicsContextMRT::setColorMask ( u32 mask)
inline

◆ setStencilTestEnable()

void sead::GraphicsContextMRT::setStencilTestEnable ( bool enable)
inline

◆ setStencilTestFunc()

void sead::GraphicsContextMRT::setStencilTestFunc ( Graphics::StencilFunc func,
s32 ref,
u32 mask )
inline

◆ setStencilTestOp()

void sead::GraphicsContextMRT::setStencilTestOp ( Graphics::StencilOp fail,
Graphics::StencilOp zfail,
Graphics::StencilOp zpass )
inline

◆ setPolygonMode()

void sead::GraphicsContextMRT::setPolygonMode ( Graphics::PolygonMode front,
Graphics::PolygonMode back )
inline

◆ setPolygonOffsetEnable()

void sead::GraphicsContextMRT::setPolygonOffsetEnable ( bool fill_front_enable,
bool fill_back_enable,
bool point_line_enable )
inline

◆ getDepthTestEnable()

bool sead::GraphicsContextMRT::getDepthTestEnable ( ) const
inline

◆ getDepthWriteEnable()

bool sead::GraphicsContextMRT::getDepthWriteEnable ( ) const
inline

◆ getDepthFunc()

Graphics::DepthFunc sead::GraphicsContextMRT::getDepthFunc ( ) const
inline

◆ getCullingMode()

Graphics::CullingMode sead::GraphicsContextMRT::getCullingMode ( ) const
inline

◆ getBlendEnable()

bool sead::GraphicsContextMRT::getBlendEnable ( u32 target) const
inline

◆ getBlendEnableMask()

u32 sead::GraphicsContextMRT::getBlendEnableMask ( ) const
inline

◆ getBlendExpression() [2/2]

const BlendExpression & sead::GraphicsContextMRT::getBlendExpression ( u32 target) const
inline

◆ getBlendConstantColor()

const Color4f & sead::GraphicsContextMRT::getBlendConstantColor ( ) const
inline

◆ getAlphaTestEnable()

bool sead::GraphicsContextMRT::getAlphaTestEnable ( ) const
inline

◆ getAlphaTestFunc()

Graphics::AlphaFunc sead::GraphicsContextMRT::getAlphaTestFunc ( ) const
inline

◆ getAlphaTestRef()

f32 sead::GraphicsContextMRT::getAlphaTestRef ( ) const
inline

◆ getColorMaskR()

bool sead::GraphicsContextMRT::getColorMaskR ( u32 target) const
inline

◆ getColorMaskG()

bool sead::GraphicsContextMRT::getColorMaskG ( u32 target) const
inline

◆ getColorMaskB()

bool sead::GraphicsContextMRT::getColorMaskB ( u32 target) const
inline

◆ getColorMaskA()

bool sead::GraphicsContextMRT::getColorMaskA ( u32 target) const
inline

◆ getColorMask()

u32 sead::GraphicsContextMRT::getColorMask ( ) const
inline

◆ getStencilTestEnable()

bool sead::GraphicsContextMRT::getStencilTestEnable ( ) const
inline

◆ getStencilTestFunc()

Graphics::StencilFunc sead::GraphicsContextMRT::getStencilTestFunc ( ) const
inline

◆ getStencilTestRef()

s32 sead::GraphicsContextMRT::getStencilTestRef ( ) const
inline

◆ getStencilTestMask()

u32 sead::GraphicsContextMRT::getStencilTestMask ( ) const
inline

◆ getStencilTestOpFail()

Graphics::StencilOp sead::GraphicsContextMRT::getStencilTestOpFail ( ) const
inline

◆ getStencilTestOpZFail()

Graphics::StencilOp sead::GraphicsContextMRT::getStencilTestOpZFail ( ) const
inline

◆ getStencilTestOpZPass()

Graphics::StencilOp sead::GraphicsContextMRT::getStencilTestOpZPass ( ) const
inline

◆ getPolygonModeFront()

Graphics::PolygonMode sead::GraphicsContextMRT::getPolygonModeFront ( ) const
inline

◆ getPolygonModeBack()

Graphics::PolygonMode sead::GraphicsContextMRT::getPolygonModeBack ( ) const
inline

◆ getPolygonOffsetFrontEnable()

bool sead::GraphicsContextMRT::getPolygonOffsetFrontEnable ( ) const
inline

◆ getPolygonOffsetBackEnable()

bool sead::GraphicsContextMRT::getPolygonOffsetBackEnable ( ) const
inline

◆ getPolygonOffsetPointLineEnable()

bool sead::GraphicsContextMRT::getPolygonOffsetPointLineEnable ( ) const
inline

Member Data Documentation

◆ mDepthTestEnable

bool sead::GraphicsContextMRT::mDepthTestEnable
private

◆ mDepthWriteEnable

bool sead::GraphicsContextMRT::mDepthWriteEnable
private

◆ mDepthFunc

Graphics::DepthFunc sead::GraphicsContextMRT::mDepthFunc
private

◆ mCullingMode

Graphics::CullingMode sead::GraphicsContextMRT::mCullingMode
private

◆ mBlendEnableMask

BitFlag32 sead::GraphicsContextMRT::mBlendEnableMask
private

◆ mBlendExpression

SafeArray<BlendExpression, Graphics::cRenderTarget_Num> sead::GraphicsContextMRT::mBlendExpression
private

◆ mBlendConstantColor

Color4f sead::GraphicsContextMRT::mBlendConstantColor
private

◆ mAlphaTestEnable

bool sead::GraphicsContextMRT::mAlphaTestEnable
private

◆ mAlphaTestFunc

Graphics::AlphaFunc sead::GraphicsContextMRT::mAlphaTestFunc
private

◆ mAlphaTestRef

f32 sead::GraphicsContextMRT::mAlphaTestRef
private

◆ mColorMask

u32 sead::GraphicsContextMRT::mColorMask
private

◆ mStencilTestEnable

bool sead::GraphicsContextMRT::mStencilTestEnable
private

◆ mStencilTestFunc

Graphics::StencilFunc sead::GraphicsContextMRT::mStencilTestFunc
private

◆ mStencilTestRef

s32 sead::GraphicsContextMRT::mStencilTestRef
private

◆ mStencilTestMask

u32 sead::GraphicsContextMRT::mStencilTestMask
private

◆ mStencilOpFail

Graphics::StencilOp sead::GraphicsContextMRT::mStencilOpFail
private

◆ mStencilOpZFail

Graphics::StencilOp sead::GraphicsContextMRT::mStencilOpZFail
private

◆ mStencilOpZPass

Graphics::StencilOp sead::GraphicsContextMRT::mStencilOpZPass
private

◆ mPolygonModeFront

Graphics::PolygonMode sead::GraphicsContextMRT::mPolygonModeFront
private

◆ mPolygonModeBack

Graphics::PolygonMode sead::GraphicsContextMRT::mPolygonModeBack
private

◆ mPolygonOffsetFrontEnable

bool sead::GraphicsContextMRT::mPolygonOffsetFrontEnable
private

◆ mPolygonOffsetBackEnable

bool sead::GraphicsContextMRT::mPolygonOffsetBackEnable
private

◆ mPolygonOffsetPointLineEnable

bool sead::GraphicsContextMRT::mPolygonOffsetPointLineEnable
private