SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
vi.h
Go to the documentation of this file.
1
#ifndef GALE01_31C99C
2
#define GALE01_31C99C
3
4
#include <
Runtime/platform.h
>
5
6
#include <
dolphin/gx/GXStruct.h
>
7
#include <
sysdolphin/baselib/cobj.h
>
8
#include <
sysdolphin/baselib/displayfunc.h
>
9
#include <
sysdolphin/baselib/gobj.h
>
10
11
/* 31C99C */
char
*
viGetCharAnimByIndex
(
s32
);
12
/* 31C9B4 */
void
vi_8031C9B4
(
s32
,
s32
);
13
/* 31CA04 */
void
vi_8031CA04
(
HSD_GObj
*);
14
/* 31CAAC */
void
vi_8031CAAC
(
void
);
15
16
static
inline
void
vi_RunCamera
(
HSD_GObj
* gobj,
GXColor
*
erase_color
,
u64
prio)
17
{
18
HSD_CObj
* cobj =
GET_COBJ
(gobj);
19
20
if
(
HSD_CObjSetCurrent
(cobj)) {
21
HSD_SetEraseColor
(
erase_color
->r,
erase_color
->g,
erase_color
->b,
22
erase_color
->a);
23
HSD_CObjEraseScreen
(
GET_COBJ
(gobj), 1, 0, 1);
24
vi_8031CA04
(gobj);
25
gobj->
gxlink_prios
= prio;
26
HSD_GObj_80390ED0
(gobj, 0x7);
27
HSD_CObjEndCurrent
();
28
}
29
}
30
31
#endif
GXStruct.h
HSD_CObjEndCurrent
void HSD_CObjEndCurrent(void)
Definition
cobj.c:517
HSD_CObjEraseScreen
void HSD_CObjEraseScreen(HSD_CObj *cobj, s32 enable_color, s32 enable_alpha, s32 enable_depth)
Definition
cobj.c:34
HSD_CObjSetCurrent
bool HSD_CObjSetCurrent(HSD_CObj *cobj)
Definition
cobj.c:481
cobj.h
HSD_SetEraseColor
void HSD_SetEraseColor(u8 r, u8 g, u8 b, u8 a)
Definition
displayfunc.c:505
erase_color
static GXColor erase_color
Definition
displayfunc.c:38
displayfunc.h
HSD_GObj_80390ED0
void HSD_GObj_80390ED0(HSD_GObj *gobj, u32 mask)
GObj_SetTextureCamera.
Definition
gobj.c:141
gobj.h
GET_COBJ
#define GET_COBJ(gobj)
Definition
gobj.h:132
s32
signed int s32
Definition
types.h:12
u64
unsigned long long int u64
Definition
types.h:16
platform.h
viGetCharAnimByIndex
char * viGetCharAnimByIndex(s32)
Definition
vi.c:22
vi_8031CAAC
void vi_8031CAAC(void)
Definition
vi.c:49
vi_RunCamera
static void vi_RunCamera(HSD_GObj *gobj, GXColor *erase_color, u64 prio)
Definition
vi.h:16
vi_8031C9B4
void vi_8031C9B4(s32, s32)
Definition
vi.c:27
vi_8031CA04
void vi_8031CA04(HSD_GObj *)
Definition
vi.c:35
GXColor
Definition
GXStruct.h:27
HSD_CObj
Definition
cobj.h:39
HSD_GObj
Definition
gobj.h:16
HSD_GObj::gxlink_prios
u64 gxlink_prios
Definition
gobj.h:30
src
melee
vi
vi.h
Generated by
1.17.0