summaryrefslogtreecommitdiffstats
path: root/src/demos/xtrans/XTTransition.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/xtrans/XTTransition.java')
-rwxr-xr-xsrc/demos/xtrans/XTTransition.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/demos/xtrans/XTTransition.java b/src/demos/xtrans/XTTransition.java
new file mode 100755
index 0000000..1c706fa
--- /dev/null
+++ b/src/demos/xtrans/XTTransition.java
@@ -0,0 +1,15 @@
+package demos.xtrans;
+
+import javax.media.opengl.*;
+
+/** Specifies the interface by which a transition is updated and drawn
+ by the XTDesktopPane. */
+
+public interface XTTransition {
+ /** Updates this transition's state to the given fraction in its
+ animation cycle (0.0 - 1.0). */
+ public void update(float fraction);
+
+ /** Draws this transition using the passed OpenGL object. */
+ public void draw(GL gl);
+}