Fixed git clone URL
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / ViewUpdateTimerTask.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko.
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.gui;
6
7 /**
8  * Timer task that updates view.
9  *
10  * Tries to keep constant FPS.
11  */
12 public class ViewUpdateTimerTask extends java.util.TimerTask {
13
14     public ViewPanel viewPanel;
15
16     public ViewUpdateTimerTask(final ViewPanel viewPanel) {
17         this.viewPanel = viewPanel;
18     }
19
20     @Override
21     public void run() {
22         viewPanel.ensureThatViewIsUpToDate();
23     }
24
25 }