public static < M > Window animate ( final String title , final int width , final int height , final M model , final Renderer < M > renderer , final UpdateHandler < M > updateHandler ) { return animate ( title , width , height , new Animation ( ) { @ Override public void update ( final double time , final double delta ) { updateHandler . update ( model , time , delta ) ; } @ Override public Picture getPicture ( ) { return renderer . render ( model ) ; } } ) ; }
Displays an animation in a single window .