[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [SPAM: 5.000] Re: [pygame] Native PyGame method for automatically scaling inputs to a surface resolution?



Renà Dudfield wrote:

I still think a transforming Rect subclass would work best, like your 'sc' function. Otherwise you'd need global state,

The state wouldn't be global, it would be an attribute of the
surface, like the clipping rect is now. If you don't want to
pollute the state of your main surface, you create a subsurface
and pass it to your drawing routines.

--
Greg