mirror of
https://github.com/zeldaret/ss
synced 2026-09-09 03:40:36 -04:00
LightTexture OK
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
/* 0x24 */ u8 mType;
|
||||
/* 0x25 */ u16 field_0x25;
|
||||
/* 0x27 */ u8 field_0x27;
|
||||
/* 0x28 */ u8 _0x28[4];
|
||||
/* 0x28 */ u32 field_0x28;
|
||||
/* 0x2C */ f32 field_0x2C;
|
||||
/* 0x30 */ u8 _0x30[4];
|
||||
/* 0x34 */ char mName2[32];
|
||||
@@ -54,9 +54,9 @@ public:
|
||||
static void initialize(u16 textureSize, Heap *pHeap);
|
||||
static void loadTextureFromResTimg(int index, EGG::ResTIMG *img);
|
||||
static void initDrawSetting(u16, u16, u16, u16);
|
||||
void addLight(const EGG::LightObject&);
|
||||
void addLight(const EGG::LightObject &);
|
||||
|
||||
void fn_804AC0E0(int, const GXColor&, bool);
|
||||
void fn_804AC0E0(int, const GXColor &, bool);
|
||||
void draw(int);
|
||||
static void beginDebugDraw();
|
||||
void debugDraw(int);
|
||||
@@ -64,30 +64,41 @@ public:
|
||||
const char *getName() const {
|
||||
return mName1;
|
||||
}
|
||||
|
||||
|
||||
f32 getFloat(u16 idx) const {
|
||||
return mpFloatData[idx];
|
||||
}
|
||||
|
||||
static void getTexDimensions(u16*, u16*, u16*, u16*, u16);
|
||||
|
||||
private:
|
||||
|
||||
static void fn_804AB270();
|
||||
static void fn_804AB310(const GXColor &color);
|
||||
static void fn_804AB440();
|
||||
static void fn_804AB600();
|
||||
|
||||
static void fn_804AC0A0(int, int*, int*);
|
||||
static void loadTextureData(int index, void *data, GXTexFmt fmt);
|
||||
void setFloat(u16 idx, f32 val) {
|
||||
mpFloatData[idx] = val;
|
||||
}
|
||||
|
||||
u8 getByte1(u16 idx) const {
|
||||
return mpByteData1[idx];
|
||||
}
|
||||
void offByte1(u16 idx) {
|
||||
mpByteData1[idx] &= ~1;
|
||||
}
|
||||
void onByte1(u16 idx) {
|
||||
mpByteData1[idx] |= 1;
|
||||
}
|
||||
|
||||
u8 getByte2(u16 idx) const {
|
||||
return mpByteData2[idx];
|
||||
}
|
||||
void setByte2(u16 idx, u8 val) const {
|
||||
mpByteData2[idx] = val;
|
||||
}
|
||||
|
||||
static void getTexDimensions(u16 *, u16 *, u16 *, u16 *, u16);
|
||||
|
||||
private:
|
||||
static void fn_804AB270();
|
||||
static void fn_804AB310(const GXColor &color);
|
||||
static void fn_804AB440();
|
||||
static void fn_804AB600();
|
||||
|
||||
static void fn_804AC0A0(int, int *, int *);
|
||||
static void loadTextureData(int index, void *data, GXTexFmt fmt);
|
||||
|
||||
// TODO enum
|
||||
int GetLightType() const {
|
||||
@@ -101,12 +112,12 @@ private:
|
||||
/* 0x37 */ u8 mLightType;
|
||||
/* 0x38 */ Vector3f field_0x38;
|
||||
/* 0x44 */ f32 *mpFloatData;
|
||||
/* 0x48 */ char *mpByteData1;
|
||||
/* 0x48 */ u8 *mpByteData1;
|
||||
/* 0x4C */ u8 *mpByteData2;
|
||||
/* 0x50 */ f32 field_0x50;
|
||||
/* 0x54 */ char mName1[0x20];
|
||||
/* 0x74 */ char mName2[0x20];
|
||||
/* 0x94 */ u16 field_0x94;
|
||||
/* 0x94 */ s16 field_0x94;
|
||||
/* 0x98 */ f32 field_0x98;
|
||||
/* 0x9C */ u8 field_0x9C;
|
||||
/* 0x9D */ u8 field_0x9D;
|
||||
@@ -114,7 +125,7 @@ private:
|
||||
/* 0x9F */ u8 field_0x9F;
|
||||
|
||||
static u16 sTextureSize;
|
||||
|
||||
|
||||
static u16 sDrawWidth;
|
||||
static u16 sDrawHeight;
|
||||
static u16 sDrawPosX;
|
||||
|
||||
Reference in New Issue
Block a user