diff --git a/include/amethyst/iron.hpp b/include/amethyst/iron.hpp index 3c39249..2d493ee 100644 --- a/include/amethyst/iron.hpp +++ b/include/amethyst/iron.hpp @@ -122,12 +122,12 @@ class Iron { void DrawSolid(); void DrawTex(Texture::Ref tex) { pTex = tex; } - void DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, - ui color = 0xffffffff); - void DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, Texture::Ref tex, - ui color = 0xffffffff) { + void DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect, + ui color = 0xffffffff); + void DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect, Texture::Ref tex, + ui color = 0xffffffff) { DrawTex(tex); - DrawCutTex(pos, size, cut_rect, color); + DrawFromAtlas(pos, size, cut_rect, color); DrawSolid(); } void SetFont(Font::Ref fnt) { pCurrentFont = fnt; } diff --git a/source/iron/drawlist.cpp b/source/iron/drawlist.cpp index 0a246b3..f0d00c5 100644 --- a/source/iron/drawlist.cpp +++ b/source/iron/drawlist.cpp @@ -209,8 +209,8 @@ void Iron::Drawlist::DrawCircleFilled(const fvec2& center, float rad, ui color, PathFill(color); } -void Iron::Drawlist::DrawCutTex(fvec2 pos, fvec2 size, fvec4 cut_rect, - ui color) { +void Iron::Drawlist::DrawFromAtlas(fvec2 pos, fvec2 size, fvec4 cut_rect, + ui color) { auto r = Iron::PrimRect(pos, size); auto cmd = NewCommand(); auto uv = cut_rect / fvec4(pTex->Size(), pTex->Size());