Added CreateRenderList() in RenderFramework

This commit is contained in:
hyzboy 2025-03-13 23:37:10 +08:00
parent 52b6e88522
commit eee00f3c8c
2 changed files with 7 additions and 3 deletions

View File

@ -99,9 +99,7 @@ public:
return; return;
} }
void Tick(double)override{} void Render(double delta_time,graph::RenderCmdBuffer *cmd)override
void Render(double delta_time,graph::RenderCmdBuffer *cmd)
{ {
cmd->SetClearColor(0,clear_color); cmd->SetClearColor(0,clear_color);

View File

@ -5,6 +5,7 @@
#include<hgl/graph/VKCommandBuffer.h> #include<hgl/graph/VKCommandBuffer.h>
#include<hgl/graph/module/SwapchainModule.h> #include<hgl/graph/module/SwapchainModule.h>
#include<hgl/graph/module/GraphModuleManager.h> #include<hgl/graph/module/GraphModuleManager.h>
#include<hgl/graph/RenderList.h>
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN
@ -68,6 +69,11 @@ public:
public: public:
RenderList *CreateRenderList()
{
return(new RenderList(device));
}
TileFont *CreateTileFont(FontSource *fs,int limit_count=-1); ///<创建只使用一种字符的Tile字符管理对象 TileFont *CreateTileFont(FontSource *fs,int limit_count=-1); ///<创建只使用一种字符的Tile字符管理对象
public: // event public: // event