Team Spartan Cookies & Milk Forums
2 Ideas - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: 2 Ideas (/thread-2337.html)



2 Ideas - 4N0NYM - 17-06-2017

First Idea :

Textured Circle / Filled Circle

Second Idea :

in Expression 2 there is "EGP:egpAngle(Index,Angle)" is there a way to add something similar to Starfall ? like for example

Circle = render.drawCircle(512,512,256,100)
render.rotate(Circle,Angle)



RE: 2 Ideas - Red The Blue Color - 18-06-2017

There is already a function for drawing a filled circle as seen below.
Code:
render.drawFilledCircle( x, y, rx, ry )

Regarding the rotation instead of being lazy asking for a function, make a poly and rotate it. (You can texture polys too.)


RE: 2 Ideas - Kosmos - 18-06-2017

Side note: circles are drawn using polys internally, so you can probably cache the polygon altogether, making it faster to render.
As for textured circles, once again, use a polygon and supply u and v keys for the texture coordinates.
And finally, there's render.pushMatrix, but because GarryCodeâ„¢ you can only use it in a screen or HUD, NOT an emitter.