libcmo21/LibCmo/CK2/ObjImpls/CKTexture.hpp

32 lines
833 B
C++
Raw Normal View History

2023-09-10 21:33:43 +08:00
#pragma once
#include "../../VTAll.hpp"
#include "../CKBitmapData.hpp"
#include "CKBeObject.hpp"
namespace LibCmo::CK2::ObjImpls {
class CKTexture : public CKBeObject {
public:
CKTexture(CKContext* ctx, CK_ID ckid, CKSTRING name);
virtual ~CKTexture();
LIBCMO_DISABLE_COPY_MOVE(CKTexture);
virtual CK_CLASSID GetClassID(void) override {
return CK_CLASSID::CKCID_TEXTURE;
}
2023-09-14 17:03:09 +08:00
2023-09-10 21:33:43 +08:00
//virtual void PreSave(CKFileVisitor* file, CKDWORD flags) override;
virtual bool Save(CKStateChunk* chunk, CKFileVisitor* file, CKDWORD flags) override;
virtual bool Load(CKStateChunk* chunk, CKFileVisitor* file) override;
//virtual void PostLoad() override;
protected:
CKBitmapData m_ImageHost;
VxMath::VX_PIXELFORMAT m_VideoFormat;
bool m_UseMipMap;
2023-09-12 17:03:06 +08:00
XContainer::XArray<VxMath::VxImageDescEx> m_MipmapImages;
2023-09-10 21:33:43 +08:00
};
}