#ifndef HGL_GRAPH_BITMAP2D_LOADER_INCLUDE #define HGL_GRAPH_BITMAP2D_LOADER_INCLUDE #include namespace hgl { namespace graph { /** * 2D位图加载类 */ class Bitmap2DLoader:public Texture2DLoader { protected: BitmapData *bmp=nullptr; public: Bitmap2DLoader():Texture2DLoader(){} ~Bitmap2DLoader(); void *OnBegin(uint32 total_bytes,const VkFormat &) override; bool OnEnd() override {return(false);} BitmapData *GetBitmap(); };//class Bitmap2DLoader BitmapData *LoadBitmapFromFile(const OSString &filename); }//namespace graph }//namespace hgl #endif//HGL_GRAPH_BITMAP2D_LOADER_INCLUDE