endlesstravel / Love2dCS

C# Wrapper for LÖVE, a 2d game engine
MIT License
164 stars 14 forks source link

Graphics.Translate, Graphics.Scale, Graphics.Rotate Get and Set #92

Open Shadowblitz16 opened 4 years ago

Shadowblitz16 commented 4 years ago

can we have the following...

Graphics.SetTranslation();
Graphics.SetScale();
Graphics.SetRotation()
Graphics.GetTranslation();
Graphics.GetScale();
Graphics.GetRotation()

I know its not in the original love2d library but it would be useful and we can make the Set methods just a aliases for Translate, Scale, and Rotate methods

endlesstravel commented 4 years ago

Sorry, I don't want to add extra operations to these class. I think the current one is enough.

Shadowblitz16 commented 4 years ago

I would just think that being able to read the scale would be useful for setting gui widgets to the screen size..

Widget.W = Graphics.GetWidth() / Graphics.GetScale();
Widget.H = Graphics.GetHeight() / Graphics.GetScale();
Shadowblitz16 commented 4 years ago

@endlesstravel so this is a no? what about a possibility for a way to reset the transformation stack like so..

this would be just a easier way to pop transformations