coeuvre / rust-2048

A 2048 clone with Piston game engine
MIT License
236 stars 40 forks source link

What are `e.render_args`, `e.update_args`, and `e.press_args`? #27

Open whmountains opened 7 years ago

whmountains commented 7 years ago

I'm new to Piston graphics and I can't find any documentation for these particular functions I see being called from your main event loop. In my own app I just handle all the events in the main loop. It looks like you're using those function calls to avoid doing useless work, but I don't understand.

Can you point me to some information for what they do? Thanks a lot!