updated list/pool/map....,but can't run.

This commit is contained in:
2023-08-14 21:03:20 +08:00
parent 95c67ba857
commit 74003df08b
12 changed files with 26 additions and 22 deletions

View File

@@ -63,9 +63,9 @@ public:
void Add(Renderable *ri,const Matrix4f &mat);
void ClearData()
void Clear()
{
rn_list.ClearData();
rn_list.Clear();
}
void End();

View File

@@ -12,7 +12,7 @@ public:
void Begin()
{
for(auto *it:data_list)
it->value->ClearData();
it->value->Clear();
}
void End()

View File

@@ -43,7 +43,7 @@ namespace hgl
void Clear()
{
SubNode.ClearData();
SubNode.Clear();
render_obj=nullptr;
}

View File

@@ -3,7 +3,7 @@
#include<hgl/graph/TileData.h>
#include<hgl/graph/font/FontSource.h>
#include<hgl/type/ResPool.h>
#include<hgl/type/RefObjectPool.h>
namespace hgl
{
@@ -11,7 +11,7 @@ namespace hgl
{
using TileUVFloatMap=Map<u32char,RectScope2f>;
using TileResPool=ResPool<u32char,TileObject *>;
using TileResPool=RefObjectPool<u32char,TileObject *>;
/**
* Tile字符管理<br>

View File

@@ -11,6 +11,8 @@ struct Material2DCreateConfig:public MaterialCreateConfig
bool local_to_world; ///<包含LocalToWorld矩阵
bool use_8bit_color; ///<使用rgba8格式颜色(默认使用rgba32f)
public:
Material2DCreateConfig(const GPUDeviceAttribute *da,const AnsiString &name):MaterialCreateConfig(da,name)