NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
state.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
3/// @file
4
5namespace nw4r {
6namespace g3d {
7namespace G3DState {
8
9 /// @brief Specifies the states invalidated by the G3DState::Invalidate function.
11 INVALIDATE_TEXOBJ = BIT_FLAG(0), ///< Invalidates the texture object cache.
12 INVALIDATE_TLUT = BIT_FLAG(1), ///< Invalidates the texture lookup table cache.
13 INVALIDATE_TEV = BIT_FLAG(2), ///< Invalidates the TEV data cache.
14
15 /// @brief Invalidates the cached number of TexCoords/channels/TEV stages/indirect stages
16 /// and the cached cull mode.
17 INVALIDATE_GENMODE2 = BIT_FLAG(3),
18 INVALIDATE_CULLVTXDESC = BIT_FLAG(4), ///< Invalidates the vertex descriptor cache.
19 INVALIDATE_CURRENTMTX = BIT_FLAG(5), ///< Invalidates the current matrix cache.
20 INVALIDATE_TEXMTX = BIT_FLAG(6), ///< Invalidates the pre/post-conversion texture matrix cache.
21 INVALIDATE_MISC = BIT_FLAG(7), ///< Invalidates the Z buffering state cache.
22 INVALIDATE_FOG = BIT_FLAG(8), ///< Invalidates the fog cache.
23 INVALIDATE_LIGHT = BIT_FLAG(9), ///< Invalidates the light cache.
24
25 /// @brief Invalidates the cached position coordinate and normal vector matrix arrays.
26 INVALIDATE_MTXARRAY = BIT_FLAG(10),
27
28 /// @brief Invalidates all states.
32 };
33
34 /// @brief Invalidates the state recorded within the G3D library, depending on the flag. See G3DState::InvalidateFlag.
35 /// @details Must be used when calling GX functions outside of G3D.
36 void Invalidate(ulong flag);
37
38} // namespace G3DState
39} // namespace g3d
40} // namespace nw4r
InvalidateFlag
Specifies the states invalidated by the G3DState::Invalidate function.
Definition state.hpp:10
@ INVALIDATE_TEXOBJ
Invalidates the texture object cache.
Definition state.hpp:11
@ INVALIDATE_TEV
Invalidates the TEV data cache.
Definition state.hpp:13
@ INVALIDATE_LIGHT
Invalidates the light cache.
Definition state.hpp:23
@ INVALIDATE_FOG
Invalidates the fog cache.
Definition state.hpp:22
@ INVALIDATE_MISC
Invalidates the Z buffering state cache.
Definition state.hpp:21
@ INVALIDATE_MTXARRAY
Invalidates the cached position coordinate and normal vector matrix arrays.
Definition state.hpp:26
@ INVALIDATE_GENMODE2
Invalidates the cached number of TexCoords/channels/TEV stages/indirect stages and the cached cull mo...
Definition state.hpp:17
@ INVALIDATE_TLUT
Invalidates the texture lookup table cache.
Definition state.hpp:12
@ INVALIDATE_ALL
Invalidates all states.
Definition state.hpp:29
@ INVALIDATE_CULLVTXDESC
Invalidates the vertex descriptor cache.
Definition state.hpp:18
@ INVALIDATE_TEXMTX
Invalidates the pre/post-conversion texture matrix cache.
Definition state.hpp:20
@ INVALIDATE_CURRENTMTX
Invalidates the current matrix cache.
Definition state.hpp:19
3D graphics drawing library.
Definition anm_obj.hpp:9
void Invalidate(ulong flag)
Invalidates the state recorded within the G3D library, depending on the flag. See G3DState::Invalidat...