| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int[] | |
| private final GLBufferObjectTracker | |
| private final GLBufferStateTracker | |
| private String | contextFQN
Context full qualified name: display_type + display_connection + major + minor + ctp. |
| private int | |
| private int | |
| protected GLDrawableImpl | drawable
|
| protected GLDrawableImpl | |
| protected ExtensionAvailabilityCache | |
| protected GL | |
| private GLDebugMessageHandler | |
| private long | |
| private boolean | |
| private long | |
| private ProcAddressTable | |
| private String | |
| private String | |
| private final GLStateTracker | |
| private String | |
| private String | |
| private boolean | isSurfaceless
If GL >= 3.0 (ES or desktop) and not having |
| private Throwable | |
| private static GLContextImpl. | |
| protected static final Object | |
| protected static final HashMap | |
| protected static final HashMap | |
| protected static final HashMap | |
| private boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addGLDebugListener(final GLDebugListener
GLDebugListener handling GLDebugMessagesImplements abstract com. GLDebugListener.
|
| private static final void | addStickyQuirkAlways(final AbstractGraphicsDevice adevice, final GLRendererQuirks quirks, final int quirk, final boolean withinGLVersionsMapping)
|
| private static final void | addStickyQuirkAtMapping(final AbstractGraphicsDevice adevice, final GLRendererQuirks quirks, final int quirk, final boolean withinGLVersionsMapping)
|
| protected void | |
| private final void | |
| protected void | contextMadeCurrent(final boolean current)
|
| public final void | copy(final GLContext
the source OpenGL context from which to copy state source, final int a mask of symbolic names indicating which groups of state to copy mask)Implements abstract com. |
| protected abstract void | |
| protected final long | createContextARB(final long share, final boolean direct)
Platform independent part of using the |
| protected abstract long | Returns: the valid and current context if successful, or nullthe shared context or null share, boolean flag if direct is requested direct, int ARB_create_context related, see references belowmajor number major, int minor number minor)Platform dependent but harmonized implementation of the |
| private final boolean | createContextARBMapVersionsAvailable(final AbstractGraphicsDevice device, final int reqMajor, final int reqProfile, final boolean hasMinorVersionSupport)
Note Since context creation is temporary, caller need to issue |
| private final long | createContextARBVersions(final long share, final boolean direct, final int ctxOptionFlags, final int maxMajor, final int maxMinor, final int minMajor, final int minMinor, final int[] major, final int[] minor)
|
| private final GL | createGL(final AbstractGraphicsDevice adevice, final int majorVersion, final int minorVersion, final int contextOption)
Create the GL instance for this context,
requires valid |
| protected abstract boolean | Returns: true if successful. Method returns false if the context creation failed non fatally,
hence it may be created at a later time. Otherwise method throws GLException.the shared context handle or 0 sharedWithHandle)Platform dependent entry point for context creation. |
| private final Object | createInstance(final AbstractGraphicsDevice adevice, final int majorVersion, final int minorVersion, final int contextOption, final boolean glObject, final Object[] cstrArgs)
|
| public final void | destroy()
Implements abstract com. |
| protected abstract void | |
| protected abstract void | |
| protected void | drawableUpdatedNotify()
Call this method to notify the OpenGL context that the drawable has changed (size or position). |
| public final void | enableGLDebugMessage(final boolean
If true enables, otherwise disables the GLDebugOutput feature. enable)Implements abstract com. GLExtensions#ARB_debug_output
or GLExtensions#AMD_debug_output, if available.
|
| private final void | |
| private void | finalizeInit(final GL gl)
Finalizes GL instance initialization after this context has been initialized. |
| public final int | getBoundFramebuffer(final int target)
Implements abstract com. GL#glBindFramebuffer(int, int).
|
| public final GLBufferObjectTracker | |
| public final GLBufferStateTracker | |
| public final int | |
| protected static String | getContextFQN(final AbstractGraphicsDevice device, final int major, final int minor, int ctxProfileBits)
|
| protected final String | |
| protected final String | |
| protected final int | |
| public final int | getDefaultDrawFramebuffer()
Implements abstract com. |
| public int | getDefaultPixelDataFormat()
Implements abstract com. GL#glReadPixels(int, int, int, int, int, int, java..
|
| public int | getDefaultPixelDataType()
Implements abstract com. GL#glReadPixels(int, int, int, int, int, int, java..
|
| public final int | getDefaultReadBuffer()
Implements abstract com. getDefaultReadFramebuffer(), i.e. GL_READ_FRAMEBUFFER,
which will be used as the source for pixel reading commands,
like glReadPixels etc.
For offscreen framebuffer objects this is |
| public final int | getDefaultReadFramebuffer()
Implements abstract com. |
| public final int | getDefaultVAO()
Implements abstract com. hasNoDefaultVAO(),
an own default VAO will be created and bound at context creation.
|
| public final GLDrawableImpl | |
| protected abstract Map | |
| protected abstract Map | |
| public final GL | getGL()
Implements abstract com. |
| public final String | getGLDebugMessageExtension()
Implements abstract com. |
| public final GLDrawable | getGLDrawable()
Implements abstract com. |
| public final GLDynamicLookupHelper | |
| public final GLDynamicLookupHelper | |
| public final int | getGLExtensionCount()
Implements abstract com. |
| public final String | getGLExtensionsString()
Implements abstract com. |
| private final void | getGLIntVersion(final int[] glIntMajor, final int[] glIntMinor)
Returns false if |
| public final ProcAddressTable | |
| public final GLDrawable | getGLReadDrawable()
Implements abstract com. |
| public final GLStateTracker | |
| private static final VersionNumber | getGLVersionNumber(final int ctp, final String glVersionStr)
Returns null if version string is invalid, otherwise a valid instance. |
| public final int | |
| private final GLContextImpl | |
| public final int | getPlatformExtensionCount()
Implements abstract com. |
| public final String | getPlatformExtensionsString()
Implements abstract com. |
| protected abstract StringBuilder | |
| public abstract ProcAddressTable | getPlatformExtProcAddressTable()
Shall return the platform extension ProcAddressTable, ie for GLXExt, EGLExt, .. |
| public abstract Object | |
| public final GL | getRootGL()
Implements abstract com. GLBase#getDownstreamGL().
|
| public final int | getSwapInterval()
Overrides com. |
| private String | |
| public final void | glDebugMessageControl(final int source, final int type, final int severity, final int count, final IntBuffer ids, final boolean enabled)
Implements abstract com. GL2GL3#glDebugMessageControl(int, int, int, int, IntBuffer, boolean)
and GL2GL3#glDebugMessageEnableAMD(int, int, int, IntBuffer, boolean) of the GLDebugOutput feature.
|
| public final void | glDebugMessageControl(final int source, final int type, final int severity, final int count, final int[] ids, final int ids_offset, final boolean enabled)
Implements abstract com. GL2GL3#glDebugMessageControl(int, int, int, int, int[], int, boolean)
and GL2GL3#glDebugMessageEnableAMD(int, int, int, int[], int, boolean) of the GLDebugOutput feature.
|
| public final void | glDebugMessageInsert(final int source, final int type, final int id, final int severity, final String buf)
Implements abstract com. GL2GL3#glDebugMessageInsert(int, int, int, int, int, String)
and GL2GL3#glDebugMessageInsertAMD(int, int, int, int, String) of the GLDebugOutput feature.
|
| private static native void | glGetIntegervInt(int pname, int[] params, int params_offset, long procAddress)
Internal bootstraping glGetIntegerv(..) for version |
| private static native String | |
| private static final boolean | |
| public final boolean | hasWaiters()
Returns true if there are other threads waiting for this GLContext to |
| private final boolean | |
| protected final boolean | |
| private final boolean | |
| public final boolean | isExtensionAvailable(final String
the name of the OpenGL extension (e.g.,
"GL_VERTEX_PROGRAM_ARB"). glExtensionName)Implements abstract com. |
| public final boolean | |
| public final boolean | isFunctionAvailable(final String
the name of the OpenGL function (e.g., use
"glPolygonOffsetEXT" or "glPolygonOffset" to check if the glFunctionName)com. is available).Implements abstract com. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| protected final boolean | |
| public final int | makeCurrent()
Implements abstract com. |
| protected final int | |
| protected abstract void | |
| private final int | |
| protected static GLContextImpl. | Returns: the old mapped valueKey Value either 1, 2, 3 or 4 reqMajor, final int profile, final VersionNumber the resulting version number resVersion, final int the resulting context options resCtp, final GLRendererQuirks resQuirks)Called by |
| private final boolean | |
| protected final String | mapToRealGLExtensionName(final String glExtensionName)
Maps the given "platform-independent" extension name to a real function name. |
| protected final String | mapToRealGLFunctionName(final String glFunctionName)
Maps the given "platform-independent" function name to a real function name. |
| public void | release()
Implements abstract com. |
| private void | |
| protected abstract void | |
| protected static void | remapAvailableGLVersions(final AbstractGraphicsDevice fromDevice, final AbstractGraphicsDevice toDevice)
|
| private final void | |
| public final void | removeGLDebugListener(final GLDebugListener
GLDebugListener handling GLDebugMessagesImplements abstract com. GLDebugListener.
|
| protected final void | resetProcAddressTable(final ProcAddressTable table, final GLDynamicLookupHelper dlh)
Helper routine which resets a ProcAddressTable generated by the
GLEmitter by looking up anew all of its function pointers
using the given |
| protected void | resetStates(final boolean
true if called for class initialization, otherwise false (re-init or destruction). isInit)Overrides com. |
| public final void | setBoundFramebuffer(final int target, final int framebufferName)
Tracks |
| public final void | setContextCreationFlags(final int
Additional context creation flags, supported: flags)GLContext#CTX_OPTION_DEBUG.
Unsupported flags are masked out.
Only affects this context state if not created yet via makeCurrent().Implements abstract com. |
| private final void | setContextVersion(final int major, final int minor, final int ctp, final VersionNumberString glVendorVersion, final boolean useGL)
If major > 0 || minor > 0 : Use passed values, determined at creation time Otherwise .. |
| protected final void | |
| public GL | setGL(final GL gl)
Implements abstract com. |
| public final void | setGLDebugSynchronous(final boolean synchronous)
Implements abstract com. glEnable/glDisable(GL_DEBUG_OUTPUT_SYNCHRONOUS),
if extension is GLExtensions#ARB_debug_output.
|
| public final GLDrawable | setGLDrawable(final GLDrawable
The read/write drawable for framebuffer operations, maybe readWrite, final boolean null to remove association.Only change the write-drawable, if setWriteOnly)setWriteOnly is true and
if the read-drawable differs
from the write-drawable.
Otherwise set both drawables, read and write.Implements abstract com. |
| protected final boolean | Returns: returnstrue if successful, otherwise false.If strictMatch is false method shall always return true or throw an exception.
If false is returned, no data has been cached or mapped, i.e. ProcAddressTable, Extensions, Version, etc.force the setting, even if is already being set.
This might be useful if you change the OpenGL implementation. force, int requested OpenGL major version major, int requested OpenGL minor version minor, int OpenGL context profile and option bits, see ctxProfileBits, final boolean com.if strictMatch, final boolean true the ctx must
false.if false no version check is performed.if withinGLVersionsMapping)true GL version mapping is in process, i.e. querying avail versions.
Otherwise normal user context creation.Sets the OpenGL implementation class and the cache of which GL functions are available for calling through this context. |
| public final GLDrawable | setGLReadDrawable(final GLDrawable
the read-drawable for read framebuffer operations.
If null is passed, the default write drawable will be set. read)Implements abstract com. |
| protected static synchronized void | |
| private final void | setRendererQuirks(final AbstractGraphicsDevice adevice, final GLDrawableFactoryImpl factory, final int reqMajor, final int reqMinor, final int reqCTP, final int major, final int minor, final int ctp, final VersionNumberString vendorVersion, final boolean withinGLVersionsMapping)
|
| public final boolean | setSwapInterval(final int
see above interval)Overrides com. GLDrawable.
|
| protected abstract Integer | |
| protected final boolean | |
| public static void | |
| protected abstract void | updateGLXProcAddressTable(final String
provides a fully qualified key of the context including device and GL profile contextFQN, final GLDynamicLookupHelper dlh)Updates the platform's 'GLX' function cache |
| private final boolean | |
| private final boolean | verifyInstance(final AbstractGraphicsDevice adevice, final int majorVersion, final int minorVersion, final int contextOption, final String suffix, final Object instance)
|