aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java b/src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java
index c2da68cd9..6c776b064 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/AnimatorBase.java
@@ -129,10 +129,28 @@ public abstract class AnimatorBase implements GLAnimatorControl {
* Creates a new, empty Animator instance
* while expecting an AWT rendering thread if AWT is available.
*
+ * @see #AnimatorBase(int)
* @see GLProfile#isAWTAvailable()
+ * @see #setModeBits(boolean, int)
*/
public AnimatorBase() {
- modeBits = MODE_EXPECT_AWT_RENDERING_THREAD; // default!
+ this( MODE_EXPECT_AWT_RENDERING_THREAD ); // default!
+ }
+
+ /**
+ * Creates a new, empty Animator instance
+ * with given modeBits.
+ * <p>
+ * Passing {@link #MODE_EXPECT_AWT_RENDERING_THREAD} is considered default.
+ * However, passing {@code 0} is recommended if not using AWT in your application.
+ * </p>
+ *
+ * @see AnimatorBase#MODE_EXPECT_AWT_RENDERING_THREAD
+ * @see GLProfile#isAWTAvailable()
+ * @see #setModeBits(boolean, int)
+ */
+ public AnimatorBase(final int modeBits) {
+ this.modeBits = modeBits;
drawablesEmpty = true;
}