moved few codes to TextureManager

This commit is contained in:
2024-11-05 23:12:35 +08:00
parent 88f5948a2e
commit 95e9fe79a9
10 changed files with 45 additions and 29 deletions

View File

@@ -3,10 +3,11 @@
#include<hgl/graph/BlendMode.h>
#include<hgl/type/List.h>
#include<hgl/graph/ViewportInfo.h>
#include<hgl/graph/module/GraphModule.h>
VK_NAMESPACE_BEGIN
class GraphModule;
class GPUDevice;
class TileData;
class TileFont;
class FontSource;
@@ -70,10 +71,12 @@ protected:
ObjectList<GraphModule> module_list;
TextureManager * texture_manager =nullptr;
SwapchainModule * swapchain_module =nullptr;
protected:
TextureManager * texture_manager =nullptr;
protected:
ViewportInfo viewport_info;
@@ -90,6 +93,12 @@ public:
const uint64 GetFrameCount ()const noexcept{return frame_count;} ///<取得当前帧数
void RestartFrameCount ()noexcept{frame_count=0;} ///<重新开始统计帧数
public: //module
SwapchainModule *GetSwapchain(){return swapchain_module;} ///<取得Swapchain模块
template<typename T> T *GetModule(){return graph_module_manager->GetModule<T>(false);} ///<获取指定类型的模块
public:
NO_COPY_NO_MOVE(RenderFramework)
@@ -97,7 +106,7 @@ public:
RenderFramework();
virtual ~RenderFramework();
virtual bool Init();
virtual bool Init(); ///<初始化
virtual void StartTime();