NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
g3d_calcview.h
1#ifndef NW4R_G3D_CALC_VIEW_H
2#define NW4R_G3D_CALC_VIEW_H
3#include <nw4r/types_nw4r.h>
4
5#include <nw4r/math.h>
6
7namespace nw4r {
8namespace g3d {
9namespace detail {
10
11/**
12 * Locked cache memory layout
13 */
15 u8 currDmaArray[32 * sizeof(math::MTX44)]; // at 0x0
16 u8 currViewArray[32 * sizeof(math::MTX44)]; // at 0x800
17 u8 currNrmArray[32 * sizeof(math::MTX44)]; // at 0x1000
18 u8 currTexArray[32 * sizeof(math::MTX44)]; // at 0x1800
19
20 u8 prevDmaArray[32 * sizeof(math::MTX44)]; // at 0x2000
21 u8 prevViewArray[32 * sizeof(math::MTX44)]; // at 0x2800
22 u8 prevNrmArray[32 * sizeof(math::MTX44)]; // at 0x3000
23 u8 prevTexArray[32 * sizeof(math::MTX44)]; // at 0x3800
24};
25
26} // namespace detail
27
28void CalcView(math::MTX34* pViewPosArray, math::MTX33* pViewNrmArray,
29 const math::MTX34* pModelMtxArray,
30 const ulong* pModelMtxAttribArray, ulong numMtx,
31 const math::MTX34* pViewMtx, const ResMdl mdl,
32 math::MTX34* pViewTexMtxArray);
33
34void CalcView_LC(math::MTX34* pViewPosArray, math::MTX33* pViewNrmArray,
35 const math::MTX34* pModelMtxArray,
36 const ulong* pModelMtxAttribArray, ulong numMtx,
37 const math::MTX34* pViewMtx, const ResMdl mdl,
38 math::MTX34* pViewTexMtxArray);
39
40void CalcView_LC_DMA_ModelMtx(math::MTX34* pViewPosArray,
41 math::MTX33* pViewNrmArray,
42 const math::MTX34* pModelMtxArray,
43 const ulong* pModelMtxAttribArray, ulong numMtx,
44 const math::MTX34* pViewMtx, const ResMdl mdl,
45 math::MTX34* pViewTexMtxArray);
46
47} // namespace g3d
48} // namespace nw4r
49
50#endif
3D graphics drawing library.
Definition g3d_3dsmax.h:10