chore(component): improve name of dirty section mask

This commit is contained in:
fallenoak 2025-10-27 16:24:37 -05:00
parent b4d519338a
commit 55b7eacf23
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 4 additions and 5 deletions

View File

@ -754,7 +754,7 @@ void CCharacterComponent::LoadBaseVariation(COMPONENT_VARIATIONS sectionIndex, i
this->m_texture[index] = TextureCacheCreateTexture(s_path); this->m_texture[index] = TextureCacheCreateTexture(s_path);
} }
this->m_sections |= 1 << section; this->m_sectionDirty |= 1 << section;
// TODO // TODO
@ -810,8 +810,7 @@ void CCharacterComponent::RenderPrepAll() {
this->m_flags &= ~0x1; this->m_flags &= ~0x1;
// TODO dirty mask? this->m_sectionDirty = 0;
this->m_sections = 0;
// TODO // TODO
} }
@ -868,7 +867,7 @@ void CCharacterComponent::SetFace(int32_t faceID, bool a3, const char* a4) {
} }
this->m_flags |= 0x4; this->m_flags |= 0x4;
this->m_sections |= (1 << SECTION_HEAD_LOWER) | (1 << SECTION_HEAD_UPPER); this->m_sectionDirty |= (1 << SECTION_HEAD_LOWER) | (1 << SECTION_HEAD_UPPER);
// TODO // TODO

View File

@ -107,7 +107,7 @@ class CCharacterComponent {
// Member variables // Member variables
uint32_t m_flags = 0x1 | 0x2 | 0x4; uint32_t m_flags = 0x1 | 0x2 | 0x4;
uint32_t m_sections = 0xFFFFFFFF; uint32_t m_sectionDirty = 0xFFFFFFFF;
EGxTexFormat m_textureFormat = CCharacterComponent::s_gxFormat; EGxTexFormat m_textureFormat = CCharacterComponent::s_gxFormat;
ComponentData m_data; ComponentData m_data;
HTEXTURE m_baseTexture = nullptr; HTEXTURE m_baseTexture = nullptr;