6 ms·
Wait... why wasn't the sprite responsible for rendering itself from the beginning? sprite.render(context); or some such...
by calebmpeterson 15y ago
Wait... why wasn't the sprite responsible for rendering itself from the beginning?
sprite.render(context);
or some such...
- angersock 15y agossssshhhhhhh (contrived example for making a point... visiting a draw() method with a solid renderer interface is the answer we usually use)
- groby_b 15y agoBecause that's roughly the worst way to render sprites, in terms of performance :) You want sprites to be an array, and render that in one go.