[WIP]preparing fix DrawText.cpp

This commit is contained in:
hyzboy 2024-07-26 03:27:32 +08:00
parent 8f0cd9f35b
commit 0c669807d7
8 changed files with 17 additions and 11 deletions

@ -1 +1 @@
Subproject commit ca9aece201dd581c0576fe5448162686081261ff
Subproject commit 4c9dd190ad257ec00b21b79f8e7f676a36c0a96d

2
CMCore

@ -1 +1 @@
Subproject commit 8bb9976503947b89d181e6957afe801c62d8d9d9
Subproject commit 1fab7b4ef20aad87628b69df6a7b3206c377501d

@ -1 +1 @@
Subproject commit 3b769e692b3e2dc43dba9c682f7e899d2115eac7
Subproject commit 103b0d845dc9fdbc10e2e40ab0fa346d133dc1ae

@ -1 +1 @@
Subproject commit 821bd3f4f056ad344a45c631aeb6c5d94579f0ee
Subproject commit fb5a5cb066547646367942dc4ec0f9b65a6a7da6

2
CMUtil

@ -1 +1 @@
Subproject commit 09965c1492755a00015f9f030043002c92edb9a5
Subproject commit 259f0ef40c46c7cb6fadc4f9402e100c352df9d9

View File

@ -15,4 +15,4 @@ CreateProject(02_draw_triangle_use_UBO draw_triangle_use_UBO.cpp)
CreateProject(03_auto_instance auto_instance.cpp)
CreateProject(04_auto_merge_material_instance auto_merge_material_instance.cpp)
CreateProject(05_Billboard BillboardTest.cpp)
CreateProject(05_Billboard BillboardTest.cpp)

View File

@ -11,3 +11,4 @@ endmacro()
CreateProject(00.control_point_2d control_point_2d.cpp)
CreateProject(01.align_test align_test.cpp)
CreateProject(02.TextDrawTest DrawText.cpp)

View File

@ -1,4 +1,4 @@
#include<hgl/type/StringList.h>
#include<hgl/io/LoadString.h>
#include<hgl/graph/font/TextRender.h>
#include"VulkanAppFramework.h"
@ -8,7 +8,7 @@ using namespace hgl::graph;
constexpr uint32_t SCREEN_WIDTH =1280;
constexpr uint32_t SCREEN_HEIGHT=SCREEN_WIDTH/16*9;
class TestApp:public VulkanApplicationFramework
class TestApp:public CameraAppFramework
{
private:
@ -61,16 +61,21 @@ public:
if(!InitTextRenderable())
return(false);
BuildCommandBuffer(render_obj);
VulkanApplicationFramework::BuildCommandBuffer(render_obj);
return(true);
}
void Resize(int w,int h)override
void Resize(uint w,uint h)override
{
VulkanApplicationFramework::Resize(w,h);
BuildCommandBuffer(render_obj);
VulkanApplicationFramework::BuildCommandBuffer(render_obj);
}
void BuildCommandBuffer(uint32_t index)
{
VulkanApplicationFramework::BuildCommandBuffer(index,render_obj);
}
};//class TestApp:public VulkanApplicationFramework