use shorter name of manager/modules....

This commit is contained in:
2025-01-25 22:31:48 +08:00
parent b47b096039
commit 906aba2459
5 changed files with 24 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ namespace hgl
{
TileData::TileData(TextureManager *tm,Texture2D *tt,const uint tw,const uint th)
{
texture_manager=tm;
tex_manager=tm;
tile_texture=tt;
@@ -53,7 +53,7 @@ namespace hgl
tile_bytes=GetImageBytes(tile_texture->GetFormat(),tile_width*tile_height);
tile_buffer=texture_manager->CreateTransferSourceBuffer(tile_bytes*tile_max_count);
tile_buffer=tex_manager->CreateTransferSourceBuffer(tile_bytes*tile_max_count);
commit_ptr=nullptr;
}
@@ -80,7 +80,7 @@ namespace hgl
tile_buffer->Unmap();
commit_ptr=nullptr;
if(!texture_manager->ChangeTexture2D(tile_texture,tile_buffer,commit_list))
if(!tex_manager->ChangeTexture2D(tile_texture,tile_buffer,commit_list))
return -2;
const int result=commit_list.GetCount();