| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | canCreateFBO(final AbstractGraphicsDevice
which deviceReq, final GLProfile connection denotes the shared the target device, may be null for the platform's default device.GLProfile to check for FBO capabilitiesImplements abstract com. |
| public abstract boolean | canCreateGLPbuffer(AbstractGraphicsDevice
which device, GLProfile connection denotes the shared the target device, may be null for the platform's default device.GLProfile to check for FBO capabilitiesImplements abstract com. |
| public final GLAutoDrawable | createDummyAutoDrawable(final AbstractGraphicsDevice
which deviceReq, final boolean connection denotes the shared device to be used, may be null for the platform's default device.if createNewDevice, final GLCapabilitiesImmutable true a new independent device instance is created from the deviceReq, otherwise deviceReq is used as-is and must be valid!the desired capsRequested, final GLCapabilitiesChooser GLCapabilitiesImmutable, incl. it's GLProfile.
For shared context, same GLCapabilitiesImmutable#getVisualID(com.
across shared drawables will yield best compatibility.the custom chooser, may be null for default chooser)Implements abstract com. realized dummy GLAutoDrawable
incl it's dummy, invisible NativeSurface
as created with createDummyDrawable(AbstractGraphicsDevice, boolean, GLCapabilitiesImmutable, GLCapabilitiesChooser).
|
| public final GLDrawable | createDummyDrawable(final AbstractGraphicsDevice
which deviceReq, final boolean connection denotes the shared device to be used, may be null for the platform's default device.if createNewDevice, final GLCapabilitiesImmutable true a new independent device instance is created from the deviceReq, otherwise deviceReq is used as-is and must be valid!the desired capsRequested, final GLCapabilitiesChooser GLCapabilitiesImmutable, incl. it's GLProfile.
For shared context, same visual ID
or caps
across shared drawables will yield best compatibility.the custom chooser, may be null for default chooser)Implements abstract com. unrealized dummy GLDrawable.
|
| public final ProxySurface | Returns: the createdProxySurface instance w/o defined surface handle but platform specific UpstreamSurfaceHook.which deviceReq, final GLCapabilitiesImmutable requestedCaps, final GLCapabilitiesChooser connection denotes the shared device to be used, may be null for the platform's default device.the custom chooser, may be null for default chooser, final int the initial width as returned by width, final int NativeSurface#getSurfaceWidth(), not the actual dummy surface width.
The latter is platform specific and smallthe initial height as returned by height)NativeSurface#getSurfaceHeight(), not the actual dummy surface height,
The latter is platform specific and smallA dummy surface is not visible on screen, it may be on- or offscreen. |
| public abstract ProxySurface | Returns: the createdProxySurface instance w/o defined surface handle but platform specific UpstreamSurfaceHook.a valid platform dependent target device. device, boolean if createNewDevice, GLCapabilitiesImmutable chosenCaps, GLCapabilitiesImmutable requestedCaps, GLCapabilitiesChooser true a new device instance is created using device details,
otherwise device instance is used as-is.the custom chooser, may be null for default chooser, int the initial width as returned by width, int NativeSurface#getSurfaceWidth(), not the actual dummy surface width.
The latter is platform specific and smallthe initial height as returned by height)NativeSurface#getSurfaceHeight(), not the actual dummy surface height,
The latter is platform specific and smallA dummy surface is not visible on screen and may be on- or offscreen. |
| public GLContext | createExternalGLContext()
Implements abstract com. Creates a GLContext object representing an existing OpenGL context in an external (third-party) OpenGL-based library. |
| protected abstract GLContext | |
| public GLDrawable | createExternalGLDrawable()
Implements abstract com. Creates a |
| protected abstract GLDrawable | |
| protected final GLFBODrawable | createFBODrawableImpl(final NativeSurface dummySurface, final GLCapabilitiesImmutable fboCaps, final int textureUnit)
Creates a platform independent unrealized FBO offscreen GLDrawable |
| public final GLDrawable | createGLDrawable(final NativeSurface target)
Implements abstract com. unrealized GLDrawable according to it's chosen GLCapabilitiesImmutable,
which determines pixel format, on- and offscreen incl.
|
| protected abstract ProxySurface | Returns: the createdMutableSurface instance w/o defined surface handlea valid platform dependent target device. device, boolean if createNewDevice, GLCapabilitiesImmutable capsChosen, GLCapabilitiesImmutable capsRequested, GLCapabilitiesChooser true a new independent device instance is created using device details,
otherwise device instance is used as-is.the custom chooser, may be null for default chooser, UpstreamSurfaceHook surface size information and optional control of the surface's lifecycle upstreamHook)Creates a mutable |
| public final GLOffscreenAutoDrawable | createOffscreenAutoDrawable(final AbstractGraphicsDevice
which deviceReq, final GLCapabilitiesImmutable connection denotes the shared device to be used, may be null for the platform's default device.the requested GLCapabilties capsRequested, final GLCapabilitiesChooser the custom chooser, may be null for default chooser, final int the requested offscreen width width, final int the requested offscreen height height)Implements abstract com. realized GLOffscreenAutoDrawable
incl it's offscreen NativeSurface with the given capabilites and dimensions.
|
| public final GLDrawable | createOffscreenDrawable(final AbstractGraphicsDevice
which deviceReq, final GLCapabilitiesImmutable connection denotes the shared device to be used, may be null for the platform's default device.the requested GLCapabilties capsRequested, final GLCapabilitiesChooser the custom chooser, may be null for default chooser, final int the requested offscreen width width, final int the requested offscreen height height)Implements abstract com. unrealized offscreen GLDrawable
incl it's offscreen NativeSurface with the given capabilites and dimensions.
|
| protected abstract GLDrawableImpl | createOffscreenDrawableImpl(NativeSurface target)
Creates a platform dependent unrealized offscreen pbuffer/pixmap GLDrawable instance |
| protected abstract GLDrawableImpl | |
| public ProxySurface | createProxySurface(final AbstractGraphicsDevice
which deviceReq, final int connection denotes the shared the target device, may be null for the platform's default device.
Caller has to ensure it is compatible w/ the given windowHandlematching screen index of given screenIdx, final long windowHandlethe native window handle windowHandle, final GLCapabilitiesImmutable the requested GLCapabilties capsRequested, final GLCapabilitiesChooser the custom chooser, may be null for default chooser, final UpstreamSurfaceHook optional upstream)UpstreamSurfaceHook allowing control of the ProxySurface's lifecycle and data it presents.Implements abstract com. NativeSurface w/ defined surface handle,
i.e. a jogamp. or jogamp. instance.
|
| protected abstract ProxySurface | createProxySurfaceImpl(AbstractGraphicsDevice deviceReq, int screenIdx, long windowHandle, GLCapabilitiesImmutable capsRequested, GLCapabilitiesChooser chooser, UpstreamSurfaceHook
TODO upstream)Creates a |
| protected final boolean | createSharedResourceImpl(final AbstractGraphicsDevice device)
Implements abstract com. |
| public abstract ProxySurface | Returns: the createdProxySurface instance w/o defined surface handle but platform specific UpstreamSurfaceHook.a valid platform dependent target device. device, boolean if createNewDevice, GLCapabilitiesImmutable chosenCaps, GLCapabilitiesImmutable requestedCaps, GLCapabilitiesChooser true a new device instance is created using device details,
otherwise device instance is used as-is.the custom chooser, may be null for default chooser, int the initial width as returned by width, int NativeSurface#getSurfaceWidth(), not the actual dummy surface width.
The latter is platform specific and smallthe initial height as returned by height)NativeSurface#getSurfaceHeight(), not the actual dummy surface height,
The latter is platform specific and smallA surfaceless |
| private void | |
| public static GLDrawableFactoryImpl | getFactoryImpl(final GLProfile
GLProfile to determine the factory type, ie EGLDrawableFactory,
or one of the native GLDrawableFactory's, ie X11/GLX, Windows/WGL or MacOSX/CGL. glp)Returns the sole GLDrawableFactoryImpl instance. |
| protected Buffer | |
| protected int | getGammaRampLength(final NativeSurface
TODO surface)Returns the length of the computed gamma ramp for this OS and hardware. |
| public abstract GLDynamicLookupHelper | getGLDynamicLookupHelper(final int
the major OpenGL profile version majorVersion, final int the context profile options contextOptions)Returns the GLDynamicLookupHelper if installed, otherwise |
| public final GLContext | getOrCreateSharedContext(final AbstractGraphicsDevice
which device)connection denotes the shared the target device, may be null for the platform's default device.Returns the shared context mapped to the |
| protected final AbstractGraphicsDevice | getOrCreateSharedDevice(final AbstractGraphicsDevice
which device)connection denotes the shared device to be used, may be null for the platform's default device.Returns the shared device mapped to the |
| protected final SharedResourceRunner. | getOrCreateSharedResource(AbstractGraphicsDevice
which device)connection denotes the shared the target device, may be null for the platform's default device.Returns the shared resource mapped to the |
| protected abstract SharedResourceRunner. | |
| public final GLRendererQuirks | getRendererQuirks(final AbstractGraphicsDevice
which device, final GLProfile glp)connection denotes the shared the target device, may be null for the platform's default device.Implements abstract com. GLRendererQuirks.
|
| public abstract boolean | hasMajorMinorCreateContextARB()
Method returns |
| protected final boolean | probeSurfacelessCtx(final GLContext
the context to probe, must be current context, final boolean If restoreDrawable)true, the initial drawable will be restored after probing
and the temporary zeroDrawable will be released.
If false, the temporary zeroDrawable will be kept (bound) to the context.
Restoration may be skipped, if the drawable and context will be destroyed anyways.Returns |
| public final synchronized void | resetAllDisplayGamma()
Implements abstract com. setDisplayGamma
was called the first time.
|
| protected final void | resetAllDisplayGammaNoSync()
Implements abstract com. |
| public final synchronized void | resetDisplayGamma(final NativeSurface surface)
Implements abstract com. surface
to its original values before setDisplayGamma
was called the first time.
|
| protected void | resetGammaRamp(final NativeSurface
TODO surface, final Buffer originalGammaRamp)Resets the gamma ramp, potentially using the specified Buffer as data to restore the original values. |
| protected void | resetGammaRamp(final GLDrawableFactoryImpl.
|
| public final synchronized boolean | setDisplayGamma(final NativeSurface
denominates the display device surface, final float The gamma value, typically > 1.0 (default values vary, but typically roughly 1.0) gamma, final float The brightness value between -1.0 and 1.0, inclusive (default values vary, but typically 0) brightness, final float The contrast, greater than 0.0 (default values vary, but typically 1) contrast)Implements abstract com. surface.
|
| protected boolean | setGammaRamp(final NativeSurface
TODO surface, final float[] ramp)Sets the gamma ramp for the main screen. |
| protected final void | setNoSurfacelessCtxQuirk(final GLContext
the context to probe, must be current context)Method will set the |
| private final void |