render.rotatedSimpleText

This commit is contained in:
Nikita Kruglickiy 2021-03-26 19:11:31 +06:00
parent 4c12c9d9ed
commit 44a539758f

View File

@ -57,3 +57,13 @@ function render.drawFilledCircle(x, y, radius, seg)
render.drawPoly(cir)
end
function render.drawRotatedSimpleText(x, y, text, ang)
local m = Matrix()
m:translate(Vector(x, y, 0 ))
m:rotate(Angle(0, ang, 0))
render.pushMatrix(m)
render.drawSimpleText(0, 0, text)
render.popMatrix()
end