Data Structures | |
struct | DefaultWindowStyle |
Macros | |
#define | INTEGER_LOG2(x) ((x) <= 1 ? 0 : (x) <= 2 ? 1 : (x) <= 4 ? 2 : (x) <= 8 ? 3 : (x) <= 16 ? 4 : (x) <= 32 ? 5 : (x) <= 64 ? 6 : (x) <= 128 ? 7 : (x) <= 256 ? 8 : (x) <= 512 ? 9 : 10) |
#define | BOX_QUAD_BUFFER_NUM 21 |
Functions | |
INCLUDE_IMG ("ui/box/corners9.png", ui_box_corners9_png) | |
INCLUDE_IMG ("ui/box/corners8.png", ui_box_corners8_png) | |
INCLUDE_IMG ("ui/box/corners6.png", ui_box_corners6_png) | |
INCLUDE_IMG ("ui/box/corners7.png", ui_box_corners7_png) | |
INCLUDE_IMG ("ui/box/corners3.png", ui_box_corners3_png) | |
INCLUDE_IMG ("ui/box/corners5.png", ui_box_corners5_png) | |
INCLUDE_IMG ("ui/box/corners4.png", ui_box_corners4_png) | |
INCLUDE_IMG ("ui/box/bg_tile.png", ui_box_bg_tile_png) | |
INCLUDE_IMG ("ui/box/corners1.png", ui_box_corners1_png) | |
INCLUDE_IMG ("ui/box/corners2.png", ui_box_corners2_png) | |
INCLUDE_IMG ("ui/box/bg_flat.png", ui_box_bg_flat_png) | |
s32 | draw_box (s32 flags, WindowStyle windowStyle, s32 posX, s32 posY, s32 posZ, s32 width, s32 height, u8 opacity, u8 darkening, f32 scaleX, f32 scaleY, f32 rotX, f32 rotY, f32 rotZ, void(*fpDrawContents)(s32, s32, s32, s32, s32, s32, s32), void *drawContentsArg0, Matrix4f rotScaleMtx, s32 translateX, s32 translateY, Matrix4f outMtx) |
Variables | |
BSS Vtx | gBoxQuadBuffer [21][16] |
DefaultWindowStyle | gBoxDefaultStyles [] |
WindowBackground | gBoxBackground [] |
WindowCorners | gBoxCorners [] |
Gfx | gBoxCombineModes [] |
s32 | gBoxQuadIndex = 0 |
Vp | gBoxViewport |
Mtx | gBoxMatrix |
struct DefaultWindowStyle |
Data Fields | ||
---|---|---|
u8 | bgIndex | |
Color_RGBA8 | color1 | |
Color_RGBA8 | color2 | |
u8 | combineModeIndex | |
u8 | cornersIndex |
#define BOX_QUAD_BUFFER_NUM 21 |
Referenced by draw_box().
#define INTEGER_LOG2 | ( | x | ) | ((x) <= 1 ? 0 : (x) <= 2 ? 1 : (x) <= 4 ? 2 : (x) <= 8 ? 3 : (x) <= 16 ? 4 : (x) <= 32 ? 5 : (x) <= 64 ? 6 : (x) <= 128 ? 7 : (x) <= 256 ? 8 : (x) <= 512 ? 9 : 10) |
Referenced by draw_box().
s32 draw_box | ( | s32 | flags, |
WindowStyle | windowStyle, | ||
s32 | posX, | ||
s32 | posY, | ||
s32 | posZ, | ||
s32 | width, | ||
s32 | height, | ||
u8 | opacity, | ||
u8 | darkening, | ||
f32 | scaleX, | ||
f32 | scaleY, | ||
f32 | rotX, | ||
f32 | rotY, | ||
f32 | rotZ, | ||
void(*)(s32, s32, s32, s32, s32, s32, s32) | fpDrawContents, | ||
void * | drawContentsArg0, | ||
Matrix4f | rotScaleMtx, | ||
s32 | translateX, | ||
s32 | translateY, | ||
Matrix4f | outMtx ) |
INCLUDE_IMG | ( | "ui/box/bg_flat.png" | , |
ui_box_bg_flat_png | ) |
INCLUDE_IMG | ( | "ui/box/bg_tile.png" | , |
ui_box_bg_tile_png | ) |
INCLUDE_IMG | ( | "ui/box/corners1.png" | , |
ui_box_corners1_png | ) |
INCLUDE_IMG | ( | "ui/box/corners2.png" | , |
ui_box_corners2_png | ) |
INCLUDE_IMG | ( | "ui/box/corners3.png" | , |
ui_box_corners3_png | ) |
INCLUDE_IMG | ( | "ui/box/corners4.png" | , |
ui_box_corners4_png | ) |
INCLUDE_IMG | ( | "ui/box/corners5.png" | , |
ui_box_corners5_png | ) |
INCLUDE_IMG | ( | "ui/box/corners6.png" | , |
ui_box_corners6_png | ) |
INCLUDE_IMG | ( | "ui/box/corners7.png" | , |
ui_box_corners7_png | ) |
INCLUDE_IMG | ( | "ui/box/corners8.png" | , |
ui_box_corners8_png | ) |
INCLUDE_IMG | ( | "ui/box/corners9.png" | , |
ui_box_corners9_png | ) |
WindowBackground gBoxBackground[] |
Referenced by draw_box().
Gfx gBoxCombineModes[] |
Referenced by draw_box().
WindowCorners gBoxCorners[] |
Referenced by draw_box().
DefaultWindowStyle gBoxDefaultStyles[] |
Referenced by draw_box().
Mtx gBoxMatrix |
Referenced by draw_box().
BSS Vtx gBoxQuadBuffer[21][16] |
Referenced by draw_box().
s32 gBoxQuadIndex = 0 |
Referenced by draw_box().
Vp gBoxViewport |
Referenced by draw_box().