[WIP]preparing fix DrawText.cpp
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
@@ -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
|
||||
|
Reference in New Issue
Block a user