com.jogamp.newt.opengl
Class GLWindow.GLLifecycleHook

java.lang.Object
  extended by com.jogamp.newt.opengl.GLWindow.GLLifecycleHook
All Implemented Interfaces:
WindowImpl.LifecycleHook
Enclosing class:
GLWindow

protected class GLWindow.GLLifecycleHook
extends Object
implements WindowImpl.LifecycleHook


Constructor Summary
protected GLWindow.GLLifecycleHook()
           
 
Method Summary
 void destroyActionInLock()
          Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface locked.
Called from EDT while window is locked.
 void destroyActionPreLock()
          Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface not locked yet.
Called not necessarily from EDT.
 void invalidate(boolean unrecoverable)
          Invoked after destruction from Window's invalidate method.
Called while window is locked.
 boolean pauseRenderingAction()
          Invoked for expensive modifications, ie while reparenting and ScreenMode change.
No lock is hold when invoked.
 void resetCounter()
          Reset of internal state counter, ie totalFrames, etc.
 void resumeRenderingAction()
          Invoked for expensive modifications, ie while reparenting and ScreenMode change.
 void setVisibleActionPost(boolean visible, boolean nativeWindowCreated)
          Invoked after Window setVisible, allows allocating resources depending on the native Window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLWindow.GLLifecycleHook

protected GLWindow.GLLifecycleHook()
Method Detail

destroyActionPreLock

public void destroyActionPreLock()
Description copied from interface: WindowImpl.LifecycleHook
Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface not locked yet.
Called not necessarily from EDT.

Specified by:
destroyActionPreLock in interface WindowImpl.LifecycleHook

destroyActionInLock

public void destroyActionInLock()
Description copied from interface: WindowImpl.LifecycleHook
Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface locked.
Called from EDT while window is locked.

Specified by:
destroyActionInLock in interface WindowImpl.LifecycleHook

invalidate

public void invalidate(boolean unrecoverable)
Description copied from interface: WindowImpl.LifecycleHook
Invoked after destruction from Window's invalidate method.
Called while window is locked.

Specified by:
invalidate in interface WindowImpl.LifecycleHook

resetCounter

public void resetCounter()
Description copied from interface: WindowImpl.LifecycleHook
Reset of internal state counter, ie totalFrames, etc. Called from EDT while window is locked.

Specified by:
resetCounter in interface WindowImpl.LifecycleHook

setVisibleActionPost

public void setVisibleActionPost(boolean visible,
                                 boolean nativeWindowCreated)
Description copied from interface: WindowImpl.LifecycleHook
Invoked after Window setVisible, allows allocating resources depending on the native Window. Called from EDT while window is locked.

Specified by:
setVisibleActionPost in interface WindowImpl.LifecycleHook

pauseRenderingAction

public boolean pauseRenderingAction()
Description copied from interface: WindowImpl.LifecycleHook
Invoked for expensive modifications, ie while reparenting and ScreenMode change.
No lock is hold when invoked.

Specified by:
pauseRenderingAction in interface WindowImpl.LifecycleHook
Returns:
true is paused, otherwise false. If true WindowImpl.LifecycleHook.resumeRenderingAction() shall be issued.
See Also:
WindowImpl.LifecycleHook.resumeRenderingAction()

resumeRenderingAction

public void resumeRenderingAction()
Description copied from interface: WindowImpl.LifecycleHook
Invoked for expensive modifications, ie while reparenting and ScreenMode change. No lock is hold when invoked.

Specified by:
resumeRenderingAction in interface WindowImpl.LifecycleHook
See Also:
WindowImpl.LifecycleHook.pauseRenderingAction()


Copyright 2010 JogAmp Community.