updated list/pool/map....,but can't run.
This commit is contained in:
@@ -63,9 +63,9 @@ public:
|
||||
|
||||
void Add(Renderable *ri,const Matrix4f &mat);
|
||||
|
||||
void ClearData()
|
||||
void Clear()
|
||||
{
|
||||
rn_list.ClearData();
|
||||
rn_list.Clear();
|
||||
}
|
||||
|
||||
void End();
|
||||
|
@@ -12,7 +12,7 @@ public:
|
||||
void Begin()
|
||||
{
|
||||
for(auto *it:data_list)
|
||||
it->value->ClearData();
|
||||
it->value->Clear();
|
||||
}
|
||||
|
||||
void End()
|
||||
|
@@ -43,7 +43,7 @@ namespace hgl
|
||||
|
||||
void Clear()
|
||||
{
|
||||
SubNode.ClearData();
|
||||
SubNode.Clear();
|
||||
render_obj=nullptr;
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user