feat: add exact mesh/material/texture hash and equal_to
This commit is contained in:
1 parent
eaa7814b18
commit
1a36a8b6d7
4 files changed
+441
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user