mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-04 18:58:35 -04:00
create headers for GF
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#ifndef GFGEOMETRY_H
|
||||
#define GFGEOMETRY_H
|
||||
|
||||
#include "dolphin/gx/GXAttr.h"
|
||||
|
||||
void GFSetVtxDescv(GXVtxDescList*);
|
||||
void GFSetVtxAttrFmtv(GXVtxFmt, GXVtxAttrFmtList*);
|
||||
void GFSetArray(GXAttr, void*, u8);
|
||||
void GFSetCullMode(GXCullMode);
|
||||
|
||||
#endif /* GFGEOMETRY_H */
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef GFLIGHT_H
|
||||
#define GFLIGHT_H
|
||||
|
||||
#include "dolphin/gx/GXEnum.h"
|
||||
#include "dolphin/gx/GXStruct.h"
|
||||
|
||||
void GFSetChanMatColor(GXChannelID, GXColor);
|
||||
|
||||
#endif /* GFLIGHT_H */
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef GFPIXEL_H
|
||||
#define GFPIXEL_H
|
||||
|
||||
#include "dolphin/gx/GXEnum.h"
|
||||
#include "dolphin/gx/GXStruct.h"
|
||||
|
||||
void GFSetFog(GXFogType type, f32 startZ, f32 endZ, f32 nearZ, f32 farZ, GXColor color);
|
||||
void GFSetBlendModeEtc(GXBlendMode, GXBlendFactor, GXBlendFactor, GXLogicOp, u8, u8, u8);
|
||||
|
||||
#endif /* GFPIXEL_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef GFTEV_H
|
||||
#define GFTEV_H
|
||||
|
||||
#include "dolphin/gx/GXEnum.h"
|
||||
#include "dolphin/gx/GXStruct.h"
|
||||
|
||||
void GFSetTevColor(GXTevRegID, GXColor);
|
||||
void GFSetTevColorS10(GXTevRegID, GXColorS10);
|
||||
void GFSetAlphaCompare(GXCompare, u8, GXAlphaOp, GXCompare, u8);
|
||||
|
||||
#endif /* GFTEV_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef GFTRANSFORM_H
|
||||
#define GFTRANSFORM_H
|
||||
|
||||
#include "dolphin/gx/GXEnum.h"
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
|
||||
void GFLoadPosMtxImm(MtxP, GXPosNrmMtx);
|
||||
void GFLoadNrmMtxImm(MtxP, GXPosNrmMtx);
|
||||
void GFSetCurrentMtx(u32, u32, u32, u32, u32, u32, u32, u32, u32);
|
||||
|
||||
#endif /* GFTRANSFORM_H */
|
||||
@@ -6,6 +6,10 @@
|
||||
#include "d/d_drawlist.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/d_kankyo_rain.h"
|
||||
#include "dolphin/gf/GFGeometry.h"
|
||||
#include "dolphin/gf/GFLight.h"
|
||||
#include "dolphin/gf/GFPixel.h"
|
||||
#include "dolphin/gf/GFTransform.h"
|
||||
#include "f_op/f_op_camera_mng.h"
|
||||
#include "m_Do/m_Do_lib.h"
|
||||
#include "m_Do/m_Do_mtx.h"
|
||||
@@ -472,14 +476,6 @@ void dDlst_alphaModelData_c::set(u8 type, Mtx mtx, u8 alpha) {
|
||||
mAlpha = alpha;
|
||||
}
|
||||
|
||||
extern void GFLoadPosMtxImm(MtxP, GXPosNrmMtx);
|
||||
extern void GFSetCurrentMtx(u32, u32, u32, u32, u32, u32, u32, u32, u32);
|
||||
extern void GFSetChanMatColor(GXChannelID, GXColor);
|
||||
extern void GFSetVtxDescv(GXVtxDescList*);
|
||||
extern void GFSetVtxAttrFmtv(GXVtxFmt, GXVtxAttrFmtList*);
|
||||
extern void GFSetBlendModeEtc(GXBlendMode, GXBlendFactor, GXBlendFactor, GXLogicOp, u8, u8, u8);
|
||||
extern void GFSetArray(GXAttr, void*, u8);
|
||||
|
||||
char l_backRevZMat[0x41] ALIGN_DECL(32) = {};
|
||||
char l_frontZMat[0x3c] ALIGN_DECL(32) = {};
|
||||
char l_frontNoZSubMat[0x2a] ALIGN_DECL(32) = {};
|
||||
|
||||
+1
-2
@@ -12,6 +12,7 @@
|
||||
#include "d/d_procname.h"
|
||||
#include "d/d_s_play.h"
|
||||
#include "d/d_stage.h"
|
||||
#include "dolphin/gf/GFPixel.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "f_op/f_op_camera_mng.h"
|
||||
#include "f_op/f_op_kankyo.h"
|
||||
@@ -3151,8 +3152,6 @@ void dKy_GxFog_tevstr_set(dKy_tevstr_c* pTevStr) {
|
||||
GxXFog_set();
|
||||
}
|
||||
|
||||
extern void GFSetFog(GXFogType type, f32 startZ, f32 endZ, f32 nearZ, f32 farZ, GXColor color);
|
||||
|
||||
/* 80196C5C-80196D04 .text dKy_GfFog_tevstr_set__FP12dKy_tevstr_c */
|
||||
void dKy_GfFog_tevstr_set(dKy_tevstr_c* pTevStr) {
|
||||
f32 near = 1.0f;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "SSystem/SComponent/c_m3d.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/d_s_play.h"
|
||||
#include "dolphin/gf/GFPixel.h"
|
||||
#include "m_Do/m_Do_mtx.h"
|
||||
#include "m_Do/m_Do_printf.h"
|
||||
|
||||
@@ -1431,8 +1432,6 @@ void mDoExt_McaMorf2::stopZelAnime() {
|
||||
/* Nonmatching */
|
||||
}
|
||||
|
||||
extern void GFSetBlendModeEtc(GXBlendMode, GXBlendFactor, GXBlendFactor, GXLogicOp, u8, u8, u8);
|
||||
|
||||
/* 8001427C-800142B8 .text draw__24mDoExt_offCupOnAupPacketFv */
|
||||
void mDoExt_offCupOnAupPacket::draw() {
|
||||
GFSetBlendModeEtc(GX_BM_NONE, GX_BL_ZERO, GX_BL_ZERO, GX_LO_CLEAR, 0, 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user