NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
state.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  nw4r::g3d
 3D graphics drawing library.
 

Enumerations

enum  nw4r::g3d::G3DState::InvalidateFlag {
  nw4r::g3d::G3DState::INVALIDATE_TEXOBJ = BIT_FLAG(0) ,
  nw4r::g3d::G3DState::INVALIDATE_TLUT = BIT_FLAG(1) ,
  nw4r::g3d::G3DState::INVALIDATE_TEV = BIT_FLAG(2) ,
  nw4r::g3d::G3DState::INVALIDATE_GENMODE2 = BIT_FLAG(3) ,
  nw4r::g3d::G3DState::INVALIDATE_CULLVTXDESC = BIT_FLAG(4) ,
  nw4r::g3d::G3DState::INVALIDATE_CURRENTMTX = BIT_FLAG(5) ,
  nw4r::g3d::G3DState::INVALIDATE_TEXMTX = BIT_FLAG(6) ,
  nw4r::g3d::G3DState::INVALIDATE_MISC = BIT_FLAG(7) ,
  nw4r::g3d::G3DState::INVALIDATE_FOG = BIT_FLAG(8) ,
  nw4r::g3d::G3DState::INVALIDATE_LIGHT = BIT_FLAG(9) ,
  nw4r::g3d::G3DState::INVALIDATE_MTXARRAY = BIT_FLAG(10) ,
  nw4r::g3d::G3DState::INVALIDATE_ALL
}
 Specifies the states invalidated by the G3DState::Invalidate function. More...
 

Functions

void nw4r::g3d::G3DState::Invalidate (ulong flag)
 Invalidates the state recorded within the G3D library, depending on the flag. See G3DState::InvalidateFlag.
 

Enumeration Type Documentation

◆ InvalidateFlag

Specifies the states invalidated by the G3DState::Invalidate function.

Enumerator
INVALIDATE_TEXOBJ 

Invalidates the texture object cache.

INVALIDATE_TLUT 

Invalidates the texture lookup table cache.

INVALIDATE_TEV 

Invalidates the TEV data cache.

INVALIDATE_GENMODE2 

Invalidates the cached number of TexCoords/channels/TEV stages/indirect stages and the cached cull mode.

INVALIDATE_CULLVTXDESC 

Invalidates the vertex descriptor cache.

INVALIDATE_CURRENTMTX 

Invalidates the current matrix cache.

INVALIDATE_TEXMTX 

Invalidates the pre/post-conversion texture matrix cache.

INVALIDATE_MISC 

Invalidates the Z buffering state cache.

INVALIDATE_FOG 

Invalidates the fog cache.

INVALIDATE_LIGHT 

Invalidates the light cache.

INVALIDATE_MTXARRAY 

Invalidates the cached position coordinate and normal vector matrix arrays.

INVALIDATE_ALL 

Invalidates all states.

Definition at line 10 of file state.hpp.

Function Documentation

◆ Invalidate()

void nw4r::g3d::G3DState::Invalidate ( ulong flag)

Invalidates the state recorded within the G3D library, depending on the flag. See G3DState::InvalidateFlag.

Must be used when calling GX functions outside of G3D.