mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
chore(component): continue refining variable and parameter names
This commit is contained in:
parent
5f211e0a38
commit
a7d5417a3b
@ -117,7 +117,7 @@ void CCharacterComponent::InitDbData() {
|
|||||||
// TODO CountFacialFeatures(varArrayLength, &CCharacterComponent::s_characterFacialHairStylesList);
|
// TODO CountFacialFeatures(varArrayLength, &CCharacterComponent::s_characterFacialHairStylesList);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::Paste(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo, int32_t a7) {
|
void CCharacterComponent::Paste(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo, int32_t srcMipLevel) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,15 +135,15 @@ void CCharacterComponent::PasteFromSkin(COMPONENT_SECTIONS section, void* srcTex
|
|||||||
srcInfo.alphaSize = 0;
|
srcInfo.alphaSize = 0;
|
||||||
|
|
||||||
if (srcInfo.width >= CCharacterComponent::s_textureSize || srcInfo.height >= CCharacterComponent::s_textureSize ) {
|
if (srcInfo.width >= CCharacterComponent::s_textureSize || srcInfo.height >= CCharacterComponent::s_textureSize ) {
|
||||||
// Calculate mip level matching CCharacterComponent::s_textureSize
|
// Calculate source mip level appropriate for CCharacterComponent::s_textureSize
|
||||||
int32_t mipLevel = 0;
|
int32_t srcMipLevel = 0;
|
||||||
int32_t srcWidth = srcInfo.width;
|
int32_t srcWidth = srcInfo.width;
|
||||||
while (srcWidth > CCharacterComponent::s_textureSize) {
|
while (srcWidth > CCharacterComponent::s_textureSize) {
|
||||||
srcWidth /= 2;
|
srcWidth /= 2;
|
||||||
mipLevel++;
|
srcMipLevel++;
|
||||||
}
|
}
|
||||||
|
|
||||||
CCharacterComponent::Paste(srcTexture, dstMips, sectionInfo.pos, sectionInfo.pos, sectionInfo.size, srcInfo, mipLevel);
|
CCharacterComponent::Paste(srcTexture, dstMips, sectionInfo.pos, sectionInfo.pos, sectionInfo.size, srcInfo, srcMipLevel);
|
||||||
} else {
|
} else {
|
||||||
CCharacterComponent::PasteScale(srcTexture, dstMips, sectionInfo.pos, sectionInfo.pos, sectionInfo.size, srcInfo);
|
CCharacterComponent::PasteScale(srcTexture, dstMips, sectionInfo.pos, sectionInfo.pos, sectionInfo.size, srcInfo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ class CCharacterComponent {
|
|||||||
static void RenderPrepLU(CCharacterComponent* component);
|
static void RenderPrepLU(CCharacterComponent* component);
|
||||||
static void RenderPrepTL(CCharacterComponent* component);
|
static void RenderPrepTL(CCharacterComponent* component);
|
||||||
static void RenderPrepTU(CCharacterComponent* component);
|
static void RenderPrepTU(CCharacterComponent* component);
|
||||||
static void Paste(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo, int32_t mipLevel);
|
static void Paste(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo, int32_t srcMipLevel);
|
||||||
static void PasteFromSkin(COMPONENT_SECTIONS section, void* srcTexture, MipBits* dstMips);
|
static void PasteFromSkin(COMPONENT_SECTIONS section, void* srcTexture, MipBits* dstMips);
|
||||||
static void PasteScale(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo);
|
static void PasteScale(void* srcTexture, MipBits* dstMips, const C2iVector& a3, const C2iVector& a4, const C2iVector& a5, TCTEXTUREINFO& srcInfo);
|
||||||
static void UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevel, void* userArg, uint32_t& texelStrideInBytes, const void*& texels);
|
static void UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevel, void* userArg, uint32_t& texelStrideInBytes, const void*& texels);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user