renamed to SortedSet from SortedSets

This commit is contained in:
hyzboy 2024-11-18 13:19:11 +08:00
parent 2c67990daa
commit 62d370e508
13 changed files with 21 additions and 21 deletions

View File

@ -2,7 +2,7 @@
#define HGL_GRAPH_RENDER_NODE_INCLUDE #define HGL_GRAPH_RENDER_NODE_INCLUDE
#include<hgl/graph/VK.h> #include<hgl/graph/VK.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
namespace hgl namespace hgl
{ {
namespace graph namespace graph
@ -27,7 +27,7 @@ namespace hgl
using RenderNodeList=List<RenderNode>; using RenderNodeList=List<RenderNode>;
using RenderNodePointerList=List<RenderNode *>; using RenderNodePointerList=List<RenderNode *>;
using MaterialInstanceSets=SortedSets<MaterialInstance *>; ///<材质实例集合 using MaterialInstanceSets=SortedSet<MaterialInstance *>; ///<材质实例集合
}//namespace graph }//namespace graph
}//namespace hgl }//namespace hgl
#endif//HGL_GRAPH_RENDER_NODE_INCLUDE #endif//HGL_GRAPH_RENDER_NODE_INCLUDE

View File

@ -4,7 +4,7 @@
#include<hgl/graph/VK.h> #include<hgl/graph/VK.h>
#include<hgl/type/Map.h> #include<hgl/type/Map.h>
#include<hgl/type/ObjectList.h> #include<hgl/type/ObjectList.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN
class DeviceBuffer; class DeviceBuffer;
@ -20,7 +20,7 @@ class DescriptorSet
ObjectList<VkDescriptorImageInfo> image_list; ObjectList<VkDescriptorImageInfo> image_list;
List<VkWriteDescriptorSet> wds_list; List<VkWriteDescriptorSet> wds_list;
SortedSets<uint32_t> binded_sets; SortedSet<uint32_t> binded_sets;
bool is_dirty; bool is_dirty;

View File

@ -95,6 +95,6 @@ public:
MaterialInstance *CreateMI(const VILConfig *vil_cfg=nullptr); MaterialInstance *CreateMI(const VILConfig *vil_cfg=nullptr);
};//class Material };//class Material
using MaterialSets=SortedSets<Material *>; using MaterialSets=SortedSet<Material *>;
VK_NAMESPACE_END VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_MATERIAL_INCLUDE #endif//HGL_GRAPH_VULKAN_MATERIAL_INCLUDE

View File

@ -2,7 +2,7 @@
#include<hgl/graph/VK.h> #include<hgl/graph/VK.h>
#include<hgl/type/String.h> #include<hgl/type/String.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN
class GPUPhysicalDevice class GPUPhysicalDevice

View File

@ -3,7 +3,7 @@
#include<hgl/graph/VK.h> #include<hgl/graph/VK.h>
#include<hgl/graph/VKVertexInputLayout.h> #include<hgl/graph/VKVertexInputLayout.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN

View File

@ -3,7 +3,7 @@
#include<hgl/type/StrChar.h> #include<hgl/type/StrChar.h>
#include<hgl/type/Map.h> #include<hgl/type/Map.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
#include<hgl/graph/font/Font.h> #include<hgl/graph/font/Font.h>
#include<hgl/type/UnicodeBlocks.h> #include<hgl/type/UnicodeBlocks.h>
@ -71,7 +71,7 @@ namespace hgl
{ {
protected: protected:
SortedSets<void *> ref_object; SortedSet<void *> ref_object;
ObjectMap<u32char,CLA> cla_cache; ObjectMap<u32char,CLA> cla_cache;

View File

@ -100,8 +100,8 @@ namespace hgl
int draw_chars_count; ///<要绘制字符列表 int draw_chars_count; ///<要绘制字符列表
SortedSets<u32char> chars_sets; ///<不重复字符统计缓冲区 SortedSet<u32char> chars_sets; ///<不重复字符统计缓冲区
SortedSets<u32char> clear_chars_sets; ///<待清除的字符合集 SortedSet<u32char> clear_chars_sets; ///<待清除的字符合集
TileUVFloatMap chars_uv; ///<所有要绘制字符的uv TileUVFloatMap chars_uv; ///<所有要绘制字符的uv
struct CharDrawAttr struct CharDrawAttr

View File

@ -24,10 +24,10 @@ namespace hgl
friend class TextLayout; friend class TextLayout;
friend class TextRender; friend class TextRender;
SortedSets<u32char> chars_sets; SortedSet<u32char> chars_sets;
const SortedSets<u32char> &GetCharsSets()const{return chars_sets;} const SortedSet<u32char> &GetCharsSets()const{return chars_sets;}
void SetCharsSets(const SortedSets<u32char> &sl){chars_sets=sl;} void SetCharsSets(const SortedSet<u32char> &sl){chars_sets=sl;}
void ClearCharsSets(){chars_sets.Clear();} void ClearCharsSets(){chars_sets.Clear();}
private: private:

View File

@ -33,7 +33,7 @@ namespace hgl
Color4f color; Color4f color;
DeviceBuffer * ubo_color; DeviceBuffer * ubo_color;
SortedSets<TextPrimitive *> tr_sets; SortedSet<TextPrimitive *> tr_sets;
private: private:

View File

@ -24,7 +24,7 @@ namespace hgl
TileResPool to_res; TileResPool to_res;
SortedSets<u32char> not_bitmap_chars; SortedSet<u32char> not_bitmap_chars;
public: public:
@ -37,7 +37,7 @@ namespace hgl
TileFont(TileData *td,FontSource *fs); TileFont(TileData *td,FontSource *fs);
virtual ~TileFont(); virtual ~TileFont();
bool Registry(TileUVFloatMap &,SortedSets<u32char> &chars_sets); ///<注册要使用的字符 bool Registry(TileUVFloatMap &,SortedSet<u32char> &chars_sets); ///<注册要使用的字符
void Unregistry(const List<u32char> &); ///<注销要使用的字符 void Unregistry(const List<u32char> &); ///<注销要使用的字符
};//class TileFont };//class TileFont
}//namespace graph }//namespace graph

View File

@ -2,7 +2,7 @@
#define HGL_GUI_LAYOUT_INCLUDE #define HGL_GUI_LAYOUT_INCLUDE
#include<hgl/gui/Widget.h> #include<hgl/gui/Widget.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
namespace hgl namespace hgl
{ {
namespace gui namespace gui
@ -14,7 +14,7 @@ namespace hgl
{ {
protected: protected:
SortedSets<Widget *> widgets_set; SortedSet<Widget *> widgets_set;
public: public:

View File

@ -3,7 +3,7 @@
#include<hgl/graph/VK.h> #include<hgl/graph/VK.h>
#include<hgl/graph/VKDescriptorSetType.h> #include<hgl/graph/VKDescriptorSetType.h>
#include<hgl/type/Map.h> #include<hgl/type/Map.h>
#include<hgl/type/SortedSets.h> #include<hgl/type/SortedSet.h>
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN
struct PipelineLayoutData struct PipelineLayoutData
{ {

View File

@ -30,7 +30,7 @@ namespace hgl
* @param rs UV坐标 * @param rs UV坐标
* @param chars_sets * @param chars_sets
*/ */
bool TileFont::Registry(TileUVFloatMap &uv_map,SortedSets<u32char> &chars_sets) bool TileFont::Registry(TileUVFloatMap &uv_map,SortedSet<u32char> &chars_sets)
{ {
ResPoolStats stats; ResPoolStats stats;