Rename to DrawFromAtlas

This commit is contained in:
2025-12-31 10:30:20 +01:00
parent b4b1144c60
commit 5e5907ed30
2 changed files with 7 additions and 7 deletions

View File

@@ -122,12 +122,12 @@ class Iron {
void DrawSolid(); void DrawSolid();
void DrawTex(Texture::Ref tex) { pTex = tex; } void DrawTex(Texture::Ref tex) { pTex = tex; }
void DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, void DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect,
ui color = 0xffffffff); ui color = 0xffffffff);
void DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, Texture::Ref tex, void DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect, Texture::Ref tex,
ui color = 0xffffffff) { ui color = 0xffffffff) {
DrawTex(tex); DrawTex(tex);
DrawCutTex(pos, size, cut_rect, color); DrawFromAtlas(pos, size, cut_rect, color);
DrawSolid(); DrawSolid();
} }
void SetFont(Font::Ref fnt) { pCurrentFont = fnt; } void SetFont(Font::Ref fnt) { pCurrentFont = fnt; }

View File

@@ -209,7 +209,7 @@ void Iron::Drawlist::DrawCircleFilled(const fvec2& center, float rad, ui color,
PathFill(color); PathFill(color);
} }
void Iron::Drawlist::DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, void Iron::Drawlist::DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect,
ui color) { ui color) {
auto r = Iron::PrimRect(pos, size); auto r = Iron::PrimRect(pos, size);
auto cmd = NewCommand(); auto cmd = NewCommand();