Files
SatyandClaude Opus 5.5 597201ec6a Gx pass 1: device-free leaves, C3Vector ctors, Gx enums into Gx/Types.h
- CGxFormat(), CGxMatrixStack() + Identity, CGxLight(), CGxApiLight::operator= (moved to CGxLight.h),
  CGxPool::Invalidate/Discard, CGxGammaRamp::Set
- Gx.h/Gx.cpp: GxApiSupported, GxVertexSize, GxVertexAttribOffset, GxCalcTexelStrideInBytes + tables
- C3Vector() zero-inits and C3Vector(x, y, z) exists (inline only); CAaBox/C3Ray/CFrustum/Intersect rely on it
- EGxApi/EGxTexFormat/EGxVertexBufferFormat moved to Engine/Source/Gx/Types.h
- struct/class forward declaration mismatches fixed in CGxDevice.h and CGxPool.h

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:05:14 +02:00

43 lines
862 B
C++

#include <cstdint>
#include "Engine/Source/Gx/CGxMatrixStack.h"
// VERIFY: ff34dc12 manual
// OFFSET: 0x0057C340
void CGxMatrixStack::Identity() {
if (this->m_flags[this->m_level] & F_Identity) {
return;
}
C44Matrix& m = this->m_mtx[this->m_level];
m.d3 = 1.0f;
m.c2 = 1.0f;
m.b1 = 1.0f;
m.a0 = 1.0f;
m.d2 = 0.0f;
m.d1 = 0.0f;
m.d0 = 0.0f;
m.c3 = 0.0f;
m.c1 = 0.0f;
m.c0 = 0.0f;
m.b3 = 0.0f;
m.b2 = 0.0f;
m.b0 = 0.0f;
m.a3 = 0.0f;
m.a2 = 0.0f;
m.a1 = 0.0f;
this->m_dirty = 1;
this->m_flags[this->m_level] = F_Identity;
}
// VERIFY: b4e2821f manual
// OFFSET: 0x00683B90
CGxMatrixStack::CGxMatrixStack() {
this->m_level = 0;
this->m_dirty = 0;
this->m_flags[0] = F_Identity;
this->m_flags[1] = 0;
this->m_flags[2] = 0;
this->m_flags[3] = 0;
}