Implemet CutTex Rendering

This commit is contained in:
2025-12-30 22:28:03 +01:00
parent 6e502d73d8
commit b4b1144c60
2 changed files with 19 additions and 0 deletions

View File

@@ -122,6 +122,14 @@ 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) {
DrawTex(tex);
DrawCutTex(pos, size, cut_rect, color);
DrawSolid();
}
void SetFont(Font::Ref fnt) { pCurrentFont = fnt; }
void SetFontScale(float v) { pFontScale = v; }
float GetFontScale() { return pFontScale; }