Update ( )
Updates all graphics and events in a window since last call to Update.
Example: