NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
GXFrameBuf.h
1#ifndef RVL_SDK_GX_FRAMEBUF_H
2#define RVL_SDK_GX_FRAMEBUF_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define GX_VFILTER_SZ 7
9
10typedef struct _GXRenderModeObj {
11 u32 tvInfo; // at 0x0
12 u16 fbWidth; // at 0x4
13 u16 efbHeight; // at 0x6
14 u16 xfbHeight; // at 0x8
15 u16 viXOrigin; // at 0xA
16 u16 viYOrigin; // at 0xC
17 u16 viWidth; // at 0xE
18 u16 viHeight; // at 0x10
19 u32 xfbMode; // at 0x14
20 GXBool field_rendering; // at 0x18
21 GXBool aa; // at 0x19
22 u8 sample_pattern[12][2]; // at 0x1A
23 u8 vfilter[GX_VFILTER_SZ]; // at 0x32
24} GXRenderModeObj;
25
26extern GXRenderModeObj GXNtsc480IntDf;
27extern GXRenderModeObj GXPal528IntDf;
28extern GXRenderModeObj GXEurgb60Hz480IntDf;
29extern GXRenderModeObj GXMpal480IntDf;
30
31void GXSetDispCopySrc(u16 x, u16 y, u16 w, u16 h);
32void GXSetTexCopySrc(u16 x, u16 y, u16 w, u16 h);
33
34void GXSetDispCopyDst(u16 w, u16 numXfbLines);
35void GXSetTexCopyDst(u16 w, u16 h, GXTexFmt fmt, GXBool mipmap);
36
37void GXSetCopyClamp(GXCopyClamp clamp);
38
39u32 GXGetNumXfbLines(u16 efbHeight, f32 scaleY);
40f32 GXGetYScaleFactor(u16 efbHeight, u16 xfbHeight);
41void GXSetDispCopyYScale(f32 scaleY);
42
43void GXSetCopyClear(GXColor color, u32 z);
44void GXSetCopyFilter(GXBool, const u8 sample_pattern[12][2], GXBool,
45 const u8 vfilter[GX_VFILTER_SZ]);
46
47void GXCopyDisp(void*, GXBool);
48void GXCopyTex(void*, GXBool);
49
50#ifdef __cplusplus
51}
52#endif
53#endif