add LoadImage wrapper in CKTexture

This commit is contained in:
2023-10-08 10:42:07 +08:00
parent 812f32bfca
commit 754a281655
6 changed files with 56 additions and 8 deletions

View File

@ -21,6 +21,14 @@ namespace LibCmo::CK2::ObjImpls {
CKBitmapData& GetUnderlyingData();
/**
* @brief A wrapper of underlying CKBitmapData::LoadImage. Not only load image, but also set file name.
* @param filename[in] File name of loading image.
* @param slot[in] The slot that image will be loaded into.
* @return True if success.
*/
bool LoadImage(CKSTRING filename, CKDWORD slot);
bool IsUseMipmap() const;
void UseMipmap(bool isUse);
CKDWORD GetMipmapLevel() const;