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 = 1 ,
  nw4r::g3d::G3DState::INVALIDATE_TLUT = 2 ,
  nw4r::g3d::G3DState::INVALIDATE_TEV = 4 ,
  nw4r::g3d::G3DState::INVALIDATE_GENMODE2 = 8 ,
  nw4r::g3d::G3DState::INVALIDATE_CULLVTXDESC = 0x10 ,
  nw4r::g3d::G3DState::INVALIDATE_CURRENTMTX = 0x20 ,
  nw4r::g3d::G3DState::INVALIDATE_TEXMTX = 0x40 ,
  nw4r::g3d::G3DState::INVALIDATE_MISC = 0x80 ,
  nw4r::g3d::G3DState::INVALIDATE_FOG = 0x100 ,
  nw4r::g3d::G3DState::INVALIDATE_LIGHT = 0x200 ,
  nw4r::g3d::G3DState::INVALIDATE_MTXARRAY = 0x400 ,
  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.