1
0

feat: add exact mesh/material/texture hash and equal_to

This commit is contained in:
2026-03-02 10:49:24 +08:00
parent eaa7814b18
commit 1a36a8b6d7
4 changed files with 441 additions and 0 deletions

View File

@@ -343,6 +343,10 @@ namespace LibCmo::CK2::ObjImpls {
return m_ImageHost;
}
const CKBitmapData& CKTexture::GetUnderlyingData() const {
return m_ImageHost;
}
bool CKTexture::LoadImage(CKSTRING filename, CKDWORD slot) {
// check file name
if (filename == nullptr) return false;

View File

@@ -20,6 +20,7 @@ namespace LibCmo::CK2::ObjImpls {
virtual bool Load(CKStateChunk* chunk, CKFileVisitor* file) override;
CKBitmapData& GetUnderlyingData();
const CKBitmapData& GetUnderlyingData() const;
/**
* @brief A wrapper of underlying CKBitmapData::LoadImage. Not only load image, but also set file name.