ES
games/alis / src / Alis / sV6Ctx.php · commit 9c722cf
<?phpnamespace App\Alis;/** * C struct sV6Ctx (render/deus3d.h): a 3x3 s16 matrix + translation (+ parameters). * m[3][3] is a flat row-major array: m[r][c] = $m[r * 3 + c]. */final class sV6Ctx{    /** C: s16 m[3][3] (flat, row-major) */    public array $m = [0, 0, 0, 0, 0, 0, 0, 0, 0];    /** C: u8 flags */    public int $flags = 0;    /** C: u8 pad13 */    public int $pad13 = 0;    /** C: s32 t[3] */    public array $t = [0, 0, 0];    /** C: s32 params[9] */    public array $params = [0, 0, 0, 0, 0, 0, 0, 0, 0];    /** C: s32 scale */    public int $scale = 0;    /** C: s32 params2[2] */    public array $params2 = [0, 0];    /** C struct assignment (*this = *o). */    public function copyFrom(sV6Ctx $o): void    {        $this->m = $o->m;        $this->flags = $o->flags;        $this->pad13 = $o->pad13;        $this->t = $o->t;        $this->params = $o->params;        $this->scale = $o->scale;        $this->params2 = $o->params2;    }    /** C memcpy(this, o, 0x20): the composable part (m, flags, pad13, t). */    public function copy20(sV6Ctx $o): void    {        $this->m = $o->m;        $this->flags = $o->flags;        $this->pad13 = $o->pad13;        $this->t = $o->t;    }}