| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | |
| private static final GLRunnable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static boolean | isSwapGLContextSafe(final GLCapabilitiesImmutable
requested requestedCaps, final GLCapabilitiesImmutable chosenCapsA, final GLCapabilitiesImmutable chosenCapsB)GLCapabilitiesImmutable which are intended for usage by both GLAutoDrawables A and BReturn a heuristic value whether switching the |
| public static final void | moveAllGLEventListener(final GLAutoDrawable src, final GLAutoDrawable dest, final boolean preserveInitState)
Moves all |
| public static final void | moveGLEventListener(final GLAutoDrawable src, final GLAutoDrawable dest, final GLEventListener listener, final boolean preserveInitState)
Moves the designated |
| public static final boolean | Returns: chosenCaps.isFBO() && chosenCaps.getSampleBuffers()Determines whether the chosen |
| public static final void | swapGLContext(final GLAutoDrawable a, final GLAutoDrawable b)
Swaps the |
| public static final void | swapGLContextAndAllGLEventListener(final GLAutoDrawable a, final GLAutoDrawable b)
Swaps the |
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| setViewport | back to summary |
|---|---|
| private static final GLRunnable setViewport | |
| GLDrawableUtil | back to summary |
|---|---|
| public GLDrawableUtil() | |
| isAnimatorAnimating | back to summary |
|---|---|
| public static final boolean isAnimatorAnimating(final GLAnimatorControl animatorCtrl) | |
| isAnimatorAnimatingOnOtherThread | back to summary |
|---|---|
| public static final boolean isAnimatorAnimatingOnOtherThread(final GLAnimatorControl animatorCtrl) | |
| isAnimatorStarted | back to summary |
|---|---|
| public static final boolean isAnimatorStarted(final GLAnimatorControl animatorCtrl) | |
| isAnimatorStartedOnOtherThread | back to summary |
|---|---|
| public static final boolean isAnimatorStartedOnOtherThread(final GLAnimatorControl animatorCtrl) | |
| isSwapGLContextSafe | back to summary |
|---|---|
| public static boolean isSwapGLContextSafe(final GLCapabilitiesImmutable requestedCaps, final GLCapabilitiesImmutable chosenCapsA, final GLCapabilitiesImmutable chosenCapsB) Return a heuristic value whether switching the
Method currently returns
true
[1] See Bug 830: swapGLContextAndAllGLEventListener and onscreen MSAA w/ NV/GLX
On NVidia GPUs w/ it's proprietary driver context swapping does not work if MSAA is involved
and when swapping on- to offscreen.
[2] On AMD GPUs w/ it's proprietary driver, requesting an accumulator buffer leads to receive an accumulator buffer configuration,
for which context swapping does not work when swapping on- to offscreen and vice-versa, i.e. cannot make context current.
With AMD and Mesa drivers we only receive an accumulator buffer if requested,
where on NVidia drivers all configurations contain the accumulator buffer.
On both drivers, NVidia and Mesa, context swapping with accumulator buffer works.
| |
| moveAllGLEventListener | back to summary |
|---|---|
| public static final void moveAllGLEventListener(final GLAutoDrawable src, final GLAutoDrawable dest, final boolean preserveInitState) Moves all
Note that it is only legal to pass
Also note that the caller is encouraged to pause an attached | |
| moveGLEventListener | back to summary |
|---|---|
| public static final void moveGLEventListener(final GLAutoDrawable src, final GLAutoDrawable dest, final GLEventListener listener, final boolean preserveInitState) Moves the designated
Note that it is only legal to pass
Also note that the caller is encouraged to pause an attached | |
| swapBuffersBeforeRead | back to summary |
|---|---|
| public static final boolean swapBuffersBeforeRead(final GLCapabilitiesImmutable chosenCaps) Determines whether the chosen
Usually one uses the
However, multisampling offscreen
| |
| swapGLContext | back to summary |
|---|---|
| public static final void swapGLContext(final GLAutoDrawable a, final GLAutoDrawable b) Swaps the
The GL-Viewport is reset and
If an
During operation, both
Because of above mentioned locking, if this method is not performed
on | |
| swapGLContextAndAllGLEventListener | back to summary |
|---|---|
| public static final void swapGLContextAndAllGLEventListener(final GLAutoDrawable a, final GLAutoDrawable b) Swaps the
The
If an
During operation, both
Because of above mentioned locking, if this method is not performed
on
| |
GLRunnable to issue GLEventListener#reshape(GLAutoDrawable, int, int, int, int),
returning true on GLRunnable#run(GLAutoDrawable).
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final GLEventListener |
| Access | Constructor and Description |
|---|---|
| public | ReshapeGLEventListener(final GLEventListener listener, final boolean
true to issue GLEventListener#display(GLAutoDrawable)
after GLEventListener#reshape(GLAutoDrawable, int, int, int, int),
otherwise false.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | run(final GLAutoDrawable
the associated drawable and current context for this call drawable)Implements com. |
| displayAfterReshape | back to summary |
|---|---|
| private final boolean displayAfterReshape | |
| listener | back to summary |
|---|---|
| private final GLEventListener listener | |
| ReshapeGLEventListener | back to summary |
|---|---|
public ReshapeGLEventListener(final GLEventListener listener, final boolean displayAfterReshape)
| |
| run | back to summary |
|---|---|
| public boolean run(final GLAutoDrawable drawable) Implements com.
| |