mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
chore(component): improve name of dirty section mask
This commit is contained in:
parent
b4d519338a
commit
55b7eacf23
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user