First pink screen!

This commit is contained in:
Lurs
2026-02-21 22:15:39 +01:00
parent 97e7a8b145
commit 8599684fae
34 changed files with 238 additions and 246 deletions
+5 -4
View File
@@ -3,6 +3,7 @@
#include <dolphin/gx.h>
#include <stdint.h>
#include "dusk/endian.h"
class JUTPalette;
@@ -25,7 +26,7 @@ struct ResTIMG {
/* 0x08 */ u8 indexTexture;
/* 0x09 */ u8 colorFormat;
/* 0x0A */ u16 numColors;
/* 0x0C */ uintptr_t paletteOffset;
/* 0x0C */ u32 paletteOffset;
/* 0x10 */ u8 mipmapEnabled;
/* 0x11 */ u8 doEdgeLOD;
/* 0x12 */ u8 biasClamp;
@@ -37,7 +38,7 @@ struct ResTIMG {
/* 0x18 */ u8 mipmapCount;
/* 0x19 */ u8 unknown;
/* 0x1A */ s16 LODBias;
/* 0x1C */ uintptr_t imageOffset;
/* 0x1C */ u32 imageOffset;
}; // Size: 0x20
/**
@@ -71,8 +72,8 @@ public:
const ResTIMG* getTexInfo() const { return mTexInfo; }
s32 getFormat() const { return mTexInfo->format; }
s32 getTransparency() const { return mTexInfo->alphaEnabled; }
s32 getWidth() const { return mTexInfo->width; }
s32 getHeight() const { return mTexInfo->height; }
s32 getWidth() const { return RES_U16(mTexInfo->width); }
s32 getHeight() const { return RES_U16(mTexInfo->height); }
void setCaptureFlag(bool flag) { mFlags &= 2 | flag; }
bool getCaptureFlag() const { return mFlags & 1; }
bool getEmbPaletteDelFlag() const { return mFlags & 2; }
+4 -4
View File
@@ -38,12 +38,12 @@ inline void fopCamM_SetAngleY(camera_class* i_camera, s16 angle) {
i_camera->angle.y = angle;
}
inline void fopCamM_SetNear(camera_class* i_this, f32 near) {
i_this->near = near;
inline void fopCamM_SetNear(camera_class* i_this, f32 near_) {
i_this->near_ = near_;
}
inline void fopCamM_SetFar(camera_class* i_this, f32 far) {
i_this->far = far;
inline void fopCamM_SetFar(camera_class* i_this, f32 far_) {
i_this->far_ = far_;
}
inline void fopCamM_SetFovy(camera_class* i_this, f32 fovy) {
+2 -2
View File
@@ -43,8 +43,8 @@ struct view_class {
/* 0x000 */ leafdraw_class base;
/* 0x0C0 */ leafdraw_method_class* sub_method;
/* 0x0C4 */ u8 field_0xc4;
/* 0x0C8 */ f32 near;
/* 0x0CC */ f32 far;
/* 0x0C8 */ f32 near_;
/* 0x0CC */ f32 far_;
/* 0x0D0 */ f32 fovy;
/* 0x0D4 */ f32 aspect;
/* 0x0D8 */ lookat_class lookat;
+4 -1
View File
@@ -93,7 +93,10 @@ public:
}
static int startFadeOut(int param_0) { return JFWDisplay::getManager()->startFadeOut(param_0); }
static int startFadeIn(int param_0) { return JFWDisplay::getManager()->startFadeIn(param_0); }
static int startFadeIn(int param_0) {
printf("[DIAG] mDoGph_gInf_c::startFadeIn START\n");
fflush(stdout);
return JFWDisplay::getManager()->startFadeIn(param_0); }
static void setFadeColor(JUtility::TColor& color) { mFader->setColor(color); }
static void setClearColor(JUtility::TColor color) { JFWDisplay::getManager()->setClearColor(color); }
static void setBackColor(GXColor& color) { mBackColor = color; }
+2 -2
View File
@@ -11,8 +11,8 @@ struct ResTIMG;
struct mDoLib_clipper {
static void setup(f32, f32, f32, f32);
static void changeFar(f32 far) {
mClipper.setFar(far);
static void changeFar(f32 far_) {
mClipper.setFar(far_);
mClipper.calcViewFrustum();
}