render.rotatedSimpleText
This commit is contained in:
parent
4c12c9d9ed
commit
44a539758f
@ -57,3 +57,13 @@ function render.drawFilledCircle(x, y, radius, seg)
|
|||||||
|
|
||||||
render.drawPoly(cir)
|
render.drawPoly(cir)
|
||||||
end
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user