mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 15:00:55 -04:00
7154ac08e1
* initial freezard actor struct + setActionMode OK * daE_FZ_Draw * setReflectAngle * mBoundSoundset * daE_FZ_Execute & execute * demoDelete * daE_FZ_Delete & _delete * CreateHeap * useHeapInit * cc_set * mtx_set * action WIP * way_gake_check * executeRollMove * executeMove * draw WIP * executeDamage * checkpoint * create * checkpoint * daE_FZ_c::executeWait * checkpoint * daE_FZ_c::damage_check almost done * rm asm * rm headers * setup_profile WIP + doxygen update * fix merge issues * docs fix? * fix2 * doxygen updates * setup g_profile_E_FZ, profile setup script WIP * update github actions * update progress.md
42 lines
966 B
C++
42 lines
966 B
C++
#ifndef JPAEXTEXSHAPE_H
|
|
#define JPAEXTEXSHAPE_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
/**
|
|
* @ingroup jsystem-jparticle
|
|
*
|
|
*/
|
|
struct JPAExTexShapeData {
|
|
// Common header.
|
|
/* 0x00 */ u8 mMagic[4];
|
|
/* 0x04 */ u32 mSize;
|
|
|
|
/* 0x08 */ u32 mFlags;
|
|
/* 0x0C */ f32 mIndTexMtx[2][3];
|
|
/* 0x24 */ s8 mExpScale;
|
|
/* 0x25 */ s8 mIndTexIdx;
|
|
/* 0x26 */ s8 mSecTexIdx;
|
|
};
|
|
|
|
/**
|
|
* @ingroup jsystem-jparticle
|
|
*
|
|
*/
|
|
class JPAExTexShape {
|
|
public:
|
|
/* 8027B13C */ JPAExTexShape(u8 const*);
|
|
|
|
const f32* getIndTexMtx() const { return &mpData->mIndTexMtx[0][0]; }
|
|
s32 getExpScale() const { return mpData->mExpScale; }
|
|
u8 getIndTexIdx() const { return mpData->mIndTexIdx; }
|
|
u8 getSecTexIdx() const { return mpData->mSecTexIdx; }
|
|
bool isUseIndirect() const { return !!(mpData->mFlags & 0x01); }
|
|
bool isUseSecTex() const { return !!(mpData->mFlags & 0x0100); }
|
|
|
|
public:
|
|
const JPAExTexShapeData* mpData;
|
|
};
|
|
|
|
#endif /* JPAEXTEXSHAPE_H */
|