diff options
author | Sven Gothel <[email protected]> | 2014-07-10 16:50:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-10 16:50:16 +0200 |
commit | 22918e26ac717d661d45c764177780454f06c937 (patch) | |
tree | 358abb41eb5b85308bdac92d2246df437b5a501c /src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java | |
parent | 6e16950d5d4a87e84e34c93d44f49866183729d4 (diff) |
Refine 'GLSharedContextSetter' test cases: Use 'setSharedAutoDrawable(sharedAutoDrawable)' where possible; Fix/Refine API doc.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java b/src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java index 11ed648c2..679898dca 100644 --- a/src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java +++ b/src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java @@ -110,6 +110,12 @@ public interface GLSharedContextSetter extends GLAutoDrawable { * as long it is not {@link GLContext#isCreated() created natively}. * </p> * <p> + * The <i>preferred method</i> of assigning a <i>shared context</i> is + * to {@link #setSharedAutoDrawable(GLAutoDrawable) set the shared GLAutoDrawable}, + * since this method also takes the {@link GLEventListener} + * {@link GLAutoDrawable#areAllGLEventListenerInitialized() initialization into account}. + * </p> + * <p> * See <a href="#lifecycle">Lifecycle Considerations</a>. * </p> * @@ -129,12 +135,12 @@ public interface GLSharedContextSetter extends GLAutoDrawable { * this method shall be called beforehand to have any effect. * </p> * <p> - * A set <i>sharedAutoDrawable</i> will block context creation, i.e. {@link GLAutoDrawable#initialization GLAutoDrawable initialization}, + * A set <i>sharedAutoDrawable</i> will block context creation, i.e. <a href="GLAutoDrawable.html#initialization">initialization</a> * as long it's * <ul> * <li>{@link GLContext} is <code>null</code>, or</li> * <li>{@link GLContext} has not been {@link GLContext#isCreated() created natively}, or</li> - * <li>{@link GLEventListener} are <i>not</i> {@link GLSharedContextSetter#areAllGLEventListenerInitialized() completely initialized}</li> + * <li>{@link GLEventListener} are <i>not</i> {@link GLAutoDrawable#areAllGLEventListenerInitialized() completely initialized}</li> * </ul> * </p> * <p> |