Codota Logo
GLEventListenerState.moveFrom
Code IndexAdd Codota to your IDE (free)

How to use
moveFrom
method
in
com.jogamp.opengl.GLEventListenerState

Best Java code snippets using com.jogamp.opengl.GLEventListenerState.moveFrom (Showing top 9 results out of 315)

  • Common ways to obtain GLEventListenerState
private void myMethod () {
GLEventListenerState g =
  • Codota IconGLAutoDrawableBase gLAutoDrawableBase;GLEventListenerState.moveFrom(gLAutoDrawableBase)
  • Smart code suggestions by Codota
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

/**
 * Moves all GLEventListenerState components from the given {@link GLAutoDrawable}
 * to a newly created instance.
 * <p>
 * Note that all components are removed from the {@link GLAutoDrawable},
 * i.e. the {@link GLContext}, all {@link GLEventListener}.
 * </p>
 * <p>
 * If the {@link GLAutoDrawable} was added to a {@link GLAnimatorControl}, it is removed
 * and the {@link GLAnimatorControl} added to the GLEventListenerState.
 * </p>
 * <p>
 * The returned GLEventListenerState instance is the {@link #isOwner() owner of the components}.
 * </p>
 * <p>
 * Locking is performed on the {@link GLAutoDrawable auto-drawable's}
 * {@link GLAutoDrawable#getUpstreamLock() upstream-lock} and {@link GLAutoDrawable#getNativeSurface() surface}.
 * See <a href="../../../javax/media/opengl/GLAutoDrawable.html#locking">GLAutoDrawable Locking</a>.</li>
 * </p>
 *
 * @param src {@link GLAutoDrawable} source to move components from
 * @return new GLEventListenerState instance {@link #isOwner() owning} moved components.
 *
 * @see #moveTo(GLAutoDrawable)
 */
public static GLEventListenerState moveFrom(final GLAutoDrawable src) {
  return GLEventListenerState.moveFrom(src, false);
}
origin: org.jogamp.jogl/jogl-all-noawt

/**
 * Moves all GLEventListenerState components from the given {@link GLAutoDrawable}
 * to a newly created instance.
 * <p>
 * Note that all components are removed from the {@link GLAutoDrawable},
 * i.e. the {@link GLContext}, all {@link GLEventListener}.
 * </p>
 * <p>
 * If the {@link GLAutoDrawable} was added to a {@link GLAnimatorControl}, it is removed
 * and the {@link GLAnimatorControl} added to the GLEventListenerState.
 * </p>
 * <p>
 * The returned GLEventListenerState instance is the {@link #isOwner() owner of the components}.
 * </p>
 * <p>
 * Locking is performed on the {@link GLAutoDrawable auto-drawable's}
 * {@link GLAutoDrawable#getUpstreamLock() upstream-lock} and {@link GLAutoDrawable#getNativeSurface() surface}.
 * See <a href="../../../com/jogamp/opengl/GLAutoDrawable.html#locking">GLAutoDrawable Locking</a>.</li>
 * </p>
 *
 * @param src {@link GLAutoDrawable} source to move components from
 * @return new GLEventListenerState instance {@link #isOwner() owning} moved components.
 *
 * @see #moveTo(GLAutoDrawable)
 */
public static GLEventListenerState moveFrom(final GLAutoDrawable src) {
  return GLEventListenerState.moveFrom(src, false);
}
origin: org.jogamp.jogl/jogl

/**
 * Moves all GLEventListenerState components from the given {@link GLAutoDrawable}
 * to a newly created instance.
 * <p>
 * Note that all components are removed from the {@link GLAutoDrawable},
 * i.e. the {@link GLContext}, all {@link GLEventListener}.
 * </p>
 * <p>
 * If the {@link GLAutoDrawable} was added to a {@link GLAnimatorControl}, it is removed
 * and the {@link GLAnimatorControl} added to the GLEventListenerState.
 * </p>
 * <p>
 * The returned GLEventListenerState instance is the {@link #isOwner() owner of the components}.
 * </p>
 * <p>
 * Locking is performed on the {@link GLAutoDrawable auto-drawable's}
 * {@link GLAutoDrawable#getUpstreamLock() upstream-lock} and {@link GLAutoDrawable#getNativeSurface() surface}.
 * See <a href="../../../com/jogamp/opengl/GLAutoDrawable.html#locking">GLAutoDrawable Locking</a>.</li>
 * </p>
 *
 * @param src {@link GLAutoDrawable} source to move components from
 * @return new GLEventListenerState instance {@link #isOwner() owning} moved components.
 *
 * @see #moveTo(GLAutoDrawable)
 */
public static GLEventListenerState moveFrom(final GLAutoDrawable src) {
  return GLEventListenerState.moveFrom(src, false);
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

/**
 * Preserves the {@link GLEventListenerState} from this {@link GLAutoDrawable}.
 *
 * @return <code>true</code> if the {@link GLEventListenerState} is preserved successfully from this {@link GLAutoDrawable},
 *         otherwise <code>false</code>.
 *
 * @throws IllegalStateException if the {@link GLEventListenerState} is already preserved
 *
 * @see #restoreGLEventListenerState()
 */
protected final boolean preserveGLEventListenerState() throws IllegalStateException {
  if( null != glels ) {
    throw new IllegalStateException("GLEventListenerState already pulled");
  }
  if( null != context && context.isCreated() ) {
    if( null!= glStateKeeperListener) {
      glStateKeeperListener.glStatePreserveNotify(this);
    }
    glels = GLEventListenerState.moveFrom(this);
    return null != glels;
  }
  return false;
}
origin: org.jogamp.jogl/jogl

/**
 * Preserves the {@link GLEventListenerState} from this {@link GLAutoDrawable}.
 *
 * @return <code>true</code> if the {@link GLEventListenerState} is preserved successfully from this {@link GLAutoDrawable},
 *         otherwise <code>false</code>.
 *
 * @throws IllegalStateException if the {@link GLEventListenerState} is already preserved
 *
 * @see #restoreGLEventListenerState()
 */
protected final boolean preserveGLEventListenerState() throws IllegalStateException {
  if( null != glels ) {
    throw new IllegalStateException("GLEventListenerState already pulled");
  }
  if( null != context && context.isCreated() ) {
    if( null!= glStateKeeperListener) {
      glStateKeeperListener.glStatePreserveNotify(this);
    }
    glels = GLEventListenerState.moveFrom(this);
    return null != glels;
  }
  return false;
}
origin: org.jogamp.jogl/jogl-all-noawt

/**
 * Preserves the {@link GLEventListenerState} from this {@link GLAutoDrawable}.
 *
 * @return <code>true</code> if the {@link GLEventListenerState} is preserved successfully from this {@link GLAutoDrawable},
 *         otherwise <code>false</code>.
 *
 * @throws IllegalStateException if the {@link GLEventListenerState} is already preserved
 *
 * @see #restoreGLEventListenerState()
 */
protected final boolean preserveGLEventListenerState() throws IllegalStateException {
  if( null != glels ) {
    throw new IllegalStateException("GLEventListenerState already pulled");
  }
  if( null != context && context.isCreated() ) {
    if( null!= glStateKeeperListener) {
      glStateKeeperListener.glStatePreserveNotify(this);
    }
    glels = GLEventListenerState.moveFrom(this);
    return null != glels;
  }
  return false;
}
origin: org.jogamp.jogl/jogl-all-noawt

final GLEventListenerState gllsA = GLEventListenerState.moveFrom(a, true);
final GLEventListenerState gllsB = GLEventListenerState.moveFrom(b, true);
final Runnable gllsAUnlockOp = gllsA.getUnlockSurfaceOp();
final Runnable gllsBUnlockOp = gllsB.getUnlockSurfaceOp();
origin: ch.unibas.cs.gravis/scalismo-native-stub

final GLEventListenerState gllsA = GLEventListenerState.moveFrom(a, true);
final GLEventListenerState gllsB = GLEventListenerState.moveFrom(b, true);
final Runnable gllsAUnlockOp = gllsA.getUnlockSurfaceOp();
final Runnable gllsBUnlockOp = gllsB.getUnlockSurfaceOp();
origin: org.jogamp.jogl/jogl

final GLEventListenerState gllsA = GLEventListenerState.moveFrom(a, true);
final GLEventListenerState gllsB = GLEventListenerState.moveFrom(b, true);
final Runnable gllsAUnlockOp = gllsA.getUnlockSurfaceOp();
final Runnable gllsBUnlockOp = gllsB.getUnlockSurfaceOp();
com.jogamp.openglGLEventListenerStatemoveFrom

Javadoc

Moves all GLEventListenerState components from the given GLAutoDrawableto a newly created instance.

Note that all components are removed from the GLAutoDrawable, i.e. the GLContext, all GLEventListener.

If the GLAutoDrawable was added to a GLAnimatorControl, it is removed and the GLAnimatorControl added to the GLEventListenerState.

The returned GLEventListenerState instance is the #isOwner().

Locking is performed on the GLAutoDrawableGLAutoDrawable#getUpstreamLock() and GLAutoDrawable#getNativeSurface(). See GLAutoDrawable Locking.

Popular methods of GLEventListenerState

  • <init>
  • cloneDevice
  • getUnlockSurfaceOp
    Returns a Runnable NativeSurface#unlockSurface() an eventually locked NativeSurface, see #moveFrom(G
  • listenerCount
  • moveTo
    Moves all GLEventListenerState components to the given GLAutoDrawablefrom this instance, while loosi

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reference (javax.naming)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now