used short funcname.

This commit is contained in:
2023-03-18 17:58:57 +08:00
parent 529d6b7939
commit 9872f74160
12 changed files with 33 additions and 38 deletions

View File

@@ -27,14 +27,14 @@ namespace hgl
return GetDefaultThemeEngine();
}
RenderTarget *ThemeEngine::CreateRenderTarget(const uint32_t w,const uint32_t h,const VkFormat format)
RenderTarget *ThemeEngine::CreateRT(const uint32_t w,const uint32_t h,const VkFormat format)
{
const uint width=power_to_2(w);
const uint height=power_to_2(h);
FramebufferInfo fbi(format,w,h);
return device->CreateRenderTarget(&fbi);
return device->CreateRT(&fbi);
}
bool ThemeEngine::Registry(Form *f,const VkFormat format)
@@ -46,7 +46,7 @@ namespace hgl
Vector2f size=f->GetSize();
RenderTarget *rt=CreateRenderTarget(size.x,size.y,format);
RenderTarget *rt=CreateRT(size.x,size.y,format);
if(!rt)return(false);
@@ -97,7 +97,7 @@ namespace hgl
}
}
graph::RenderTarget *rt=CreateRenderTarget(w,h,format);
graph::RenderTarget *rt=CreateRT(w,h,format);
if(!rt)return(false);