support C++20
This commit is contained in:
@@ -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();
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user