Facepunch / sbox-issues

175 stars 12 forks source link

Bring back Rendering Utility functions #2739

Open Adesii opened 1 year ago

Adesii commented 1 year ago

For?

S&Box

What can't you do?

Before the rendering API changed to the current Graphics one we had utility functions to draw lines and circles to the UI in the Render class

Render2D.Circle Render2D.CircleEx Render2D.Line Render2D.Ring Are some that are now missing

After the change to Graphics those Utility functions were never re implemented and removed with the Render class.

How would you like it to work?

they should be re implemented in the new Graphics class. like Graphics.DrawCircleEx or Graphics.DrawLine etc.

What have you tried?

Remaking them myself from a couple snippets that i saved before they were removed. But they should be part of Base in my opinion. They were really useful to get basic shapes onto the screen quickly.

Additional context

No response

matekdev commented 1 year ago

Kinda duplicate? https://github.com/sboxgame/issues/issues/2630