layout codes
This commit is contained in:
@@ -26,15 +26,11 @@ static Vector4f color(1,1,1,1);
|
||||
|
||||
struct Line2DConfig
|
||||
{
|
||||
float width;
|
||||
float border;
|
||||
float width=2.0f;
|
||||
float border=0.75f;
|
||||
};
|
||||
|
||||
static Line2DConfig line_2d_config
|
||||
{
|
||||
10,
|
||||
2.5
|
||||
};
|
||||
static Line2DConfig line_2d_config;
|
||||
|
||||
class TestApp:public VulkanApplicationFramework
|
||||
{
|
||||
|
@@ -1,7 +1,4 @@
|
||||
// DrawTile
|
||||
// 该示例使用TileData,演示多个tile图片在一张纹理上
|
||||
|
||||
#include<hgl/type/StringList.h>
|
||||
#include<hgl/type/StringList.h>
|
||||
#include<hgl/graph/TextureLoader.h>
|
||||
#include<hgl/graph/TileData.h>
|
||||
#include<hgl/graph/font/TileFont.h>
|
||||
@@ -142,7 +139,7 @@ private:
|
||||
LoadStringFromTextFile(str,OS_TEXT("README.md"));
|
||||
|
||||
text_render_obj=db->CreateTextRenderable(material_instance->GetMaterial());
|
||||
|
||||
|
||||
if(tl_engine.SimpleLayout(text_render_obj,tile_font,str)<=0)return(false);
|
||||
|
||||
render_instance=db->CreateRenderableInstance(text_render_obj,material_instance,pipeline);
|
||||
|
Reference in New Issue
Block a user