initial commit
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / ViewUpdateListener.java
1 /*
2  * Sixth - System for data storage, computation, exploration and interaction.
3  * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 3 of the GNU Lesser General Public License
7  * or later as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.sixth.e3d.gui;
11
12 public interface ViewUpdateListener {
13
14     /**
15      * @return <code>true</code> if underlying view shall be re-rendered. If at
16      * least one of the view update listeners returns <code>true</code>,
17      * view is re-rendered.
18      */
19     boolean beforeViewUpdate(ViewContext viewContext,
20                              final int millisecondsSinceLastFrame);
21 }