renamed to vab_map from vbo_map

This commit is contained in:
hyzboy 2024-04-27 11:08:50 +08:00
parent 6ad3b9edb7
commit 40094a7529
2 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ namespace hgl
IndexBuffer * ibo; IndexBuffer * ibo;
void * ibo_map; void * ibo_map;
VABAccessMap vbo_map; VABAccessMap vab_map;
protected: protected:

View File

@ -97,7 +97,7 @@ namespace hgl
if(!vif) if(!vif)
return(false); return(false);
if(vbo_map.Get(name,*vad)) if(vab_map.Get(name,*vad))
return true; return true;
vad->vab =db->CreateVAB(vif->format,vertices_number,data); vad->vab =db->CreateVAB(vif->format,vertices_number,data);
@ -107,7 +107,7 @@ namespace hgl
else else
vad->map_ptr=nullptr; vad->map_ptr=nullptr;
vbo_map.Add(name,*vad); vab_map.Add(name,*vad);
return true; return true;
} }
@ -134,10 +134,10 @@ namespace hgl
void PrimitiveCreater::ClearAllData() void PrimitiveCreater::ClearAllData()
{ {
if(vbo_map.GetCount()>0) if(vab_map.GetCount()>0)
{ {
const auto *sp=vbo_map.GetDataList(); const auto *sp=vab_map.GetDataList();
for(int i=0;i<vbo_map.GetCount();i++) for(int i=0;i<vab_map.GetCount();i++)
{ {
if((*sp)->value.vab) if((*sp)->value.vab)
{ {
@ -161,12 +161,12 @@ namespace hgl
{ {
const uint si_count=vil->GetCount(VertexInputGroup::Basic); const uint si_count=vil->GetCount(VertexInputGroup::Basic);
if(vbo_map.GetCount()!=si_count) if(vab_map.GetCount()!=si_count)
return(nullptr); return(nullptr);
Primitive *primitive=db->CreatePrimitive(prim_name,vertices_number); Primitive *primitive=db->CreatePrimitive(prim_name,vertices_number);
const auto *sp=vbo_map.GetDataList(); const auto *sp=vab_map.GetDataList();
for(uint i=0;i<si_count;i++) for(uint i=0;i<si_count;i++)
{ {
if((*sp)->value.vab) if((*sp)->value.vab)