support C++20

This commit is contained in:
2024-07-26 03:24:44 +08:00
parent fdf073376c
commit 416b7bfcb3
7 changed files with 23 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ namespace hgl
namespace graph
{
/**
* 2Dλͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* 2D位图加载类
*/
class Bitmap2DLoader:public Texture2DLoader
{
@@ -20,7 +20,7 @@ namespace hgl
Bitmap2DLoader():Texture2DLoader(){}
~Bitmap2DLoader();
void *OnBegin(uint32 total_bytes) override;
void *OnBegin(uint32 total_bytes,const VkFormat &) override;
bool OnEnd() override {return(false);}
BitmapData *GetBitmap();

View File

@@ -85,10 +85,16 @@ namespace hgl
protected:
virtual void *OnBegin(uint32)=0;
virtual void *OnBegin(uint32,const VkFormat &)=0;
virtual bool OnEnd()=0;
virtual void OnError(){}
public:
const TextureFileHeader & GetFileHeader ()const{return file_header;}
const VkFormat & GetTextureFormat()const{return format;}
const uint32 GetZeroMipmapBytes()const{return mipmap_zero_total_bytes;}
public:
TextureLoader()