| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| public static final int | CONTEXT_CURRENT
Indicates that the context was made current during the last call to |
| public static final int | CONTEXT_CURRENT_NEW
Indicates that a newly-created context was made current during the last call to |
| public static final int | CONTEXT_NOT_CURRENT
Indicates that the context was not made current during the last call to |
| protected volatile long | contextHandle
The underlying native OpenGL context |
| protected static final int | CTX_IMPL_ACCEL_SOFT
Context uses software rasterizer, otherwise hardware rasterizer. |
| protected static final int | CTX_IMPL_CACHE_MASK
Context option bits, cached bit mask covering 10 bits [0..9], i.e. |
| protected static final int | CTX_IMPL_ES2_COMPAT
|
| protected static final int | CTX_IMPL_ES31_COMPAT
|
| protected static final int | CTX_IMPL_ES32_COMPAT
|
| protected static final int | CTX_IMPL_ES3_COMPAT
|
| protected static final int | CTX_IMPL_FBO
Context supports basic FBO, details see |
| protected static final int | CTX_IMPL_FP32_COMPAT_API
Context supports |
| protected static final int | CTX_IMPL_FULL_MASK
Context option bits, full bit mask covering 16 bits [0..15], i.e. |
| protected static final int | CTX_IS_ARB_CREATED
|
| public static final int | CTX_OPTION_DEBUG
|
| protected static final int | CTX_OPTION_FORWARD
|
| protected static final int | CTX_PROFILE_COMPAT
|
| protected static final int | CTX_PROFILE_CORE
|
| protected static final int | CTX_PROFILE_ES
|
| protected VersionNumber | |
| protected int | |
| protected VersionNumberString | |
| protected VersionNumber | |
| protected String | |
| private static final ThreadLocal | |
| protected int | |
| public static final boolean | |
| public static final boolean | DEBUG_GL
Reflects property jogl.debug.DebugGL. |
| public static final boolean | |
| protected static final IdentityHashMap | |
| private static final IdentityHashMap | |
| protected boolean | drawableRetargeted
Did the drawable association changed ? |
| public static final int[][] | |
| protected static final boolean | |
| protected static final boolean | |
| protected static final boolean | |
| public static final int[][] | |
| protected GLRendererQuirks | |
| protected final RecursiveLock | |
| public static final boolean | PROFILE_ALIASING
If
|
| private static final String | |
| public static final boolean | TRACE_GL
Reflects property jogl.debug.TraceGL. |
| public static final boolean | |
| public static final VersionNumber | Version1_0
Version 1.00, i.e. GLSL 1.00 for ES 2.0. |
| public static final VersionNumber | Version1_1
Version 1.1, i.e. GL 1.1 |
| public static final VersionNumber | Version1_10
Version 1.10, i.e. GLSL 1.10 for GL 2.0. |
| public static final VersionNumber | Version1_2
Version 1.2, i.e. GL 1.2 |
| public static final VersionNumber | Version1_20
Version 1.20, i.e. GLSL 1.20 for GL 2.1. |
| public static final VersionNumber | Version1_30
Version 1.30, i.e. GLSL 1.30 for GL 3.0. |
| public static final VersionNumber | Version1_4
Version 1.4, i.e. GL 1.4 |
| public static final VersionNumber | Version1_40
Version 1.40, i.e. GLSL 1.40 for GL 3.1. |
| public static final VersionNumber | Version1_5
Version 1.5, i.e. GL 1.5 |
| public static final VersionNumber | Version1_50
Version 1.50, i.e. GLSL 1.50 for GL 3.2. |
| public static final VersionNumber | Version3_0
Version 3.0. |
| public static final VersionNumber | Version3_1
Version 3.1. |
| public static final VersionNumber | Version3_2
Version 3.2. |
| public static final VersionNumber | Version4_3
Version 4.3. |
| protected static final VersionNumber |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addGLDebugListener(GLDebugListener
GLDebugListener handling GLDebugMessagesAdd |
| public final StringBuilder | |
| private static boolean | appendString(final StringBuilder sb, final String string, boolean needColon, final boolean condition)
|
| public final Object | attachObject(final String name, final Object obj)
Sets the attached user object for the given name to this GLContext. |
| public final boolean | |
| protected boolean | |
| public static final boolean | Returns: true if clipped, i.e. given value exceeds maximum, otherwise false.Clip the given GL version to the maximum known valid version if exceeding. |
| protected static int | |
| public abstract void | |
| protected static VersionNumber | |
| public static final boolean | decrementGLVersion(final int ctxProfile, final int[] major, final int[] minor)
Decrement the given GL version by one and return true if still valid, otherwise false. |
| public abstract void | |
| public final Object | |
| protected static StringBuilder | |
| public abstract void | enableGLDebugMessage(boolean
If true enables, otherwise disables the GLDebugOutput feature. enable)Enables or disables the GLDebugOutput feature of extension |
| public final Object | getAttachedObject(final String name)
Returns the attached user object for the given name to this GLContext. |
| protected static final int | Returns: the GLProfile's context property (CTP) if available, otherwise0the device the context profile is being requested for device, final GLProfile the GLProfile the context profile is being requested for glp)
|
| protected static GLProfile | Returns: the highest GLProfile for the device regarding availability, version and profile bits.the device the profile is being requested device, final int Key Value either 1, 2, 3 or 4 reqMajor, final int reqProfile)
|
| pack-priv static String | Returns: the highest GLProfile name for the device regarding availability, version and profile bits.the device the profile is being requested device, final int Key Value either 1, 2, 3 or 4 reqMajor, final int reqProfile)
|
| protected static Integer | Returns: the available GL version as encoded with {@link #composeBits(int, int, int), otherwisenullthe device to request whether the profile is available for device, final int Key Value either 1, 2, 3 or 4 reqMajor, final int reqProfile)
|
| protected static boolean | getAvailableGLVersion(final AbstractGraphicsDevice device, final int
Key Value either 1, 2, 3 or 4 reqMajor, final int reqProfile, final int[] if not null, returns the used major version major, final int[] if not null, returns the used minor version minor, final int[] if not null, returns the used context profile ctp)
|
| protected static String | getAvailableGLVersionAsString(final AbstractGraphicsDevice
the device the profile is being requested device, final int Key Value either 1, 2, 3 or 4 major, final int profile)
|
| protected static boolean | |
| public abstract int | getBoundFramebuffer(int target)
Return the framebuffer name bound to this context,
see |
| public abstract int | Returns: Additional context creation flags, supported:GLContext#CTX_OPTION_DEBUG.
|
| public final List | |
| public static GLContext | Returns: the context current on this thread, or null if no context is current.Returns this thread current context. |
| public static GL | Returns: the current context's GL object on this threadReturns the GL object bound to this thread current context. |
| public abstract int | |
| public abstract int | getDefaultPixelDataFormat()
Get the default pixel data format, as required by e.g. |
| public abstract int | getDefaultPixelDataType()
Get the default pixel data type, as required by e.g. |
| public abstract int | getDefaultReadBuffer()
Returns the default color buffer within the current bound
For offscreen framebuffer objects this is |
| public abstract int | |
| public abstract int | getDefaultVAO()
If this GLContext does not implement a default VAO, see |
| public final List | |
| protected static String | getDeviceVersionAvailableKey(final AbstractGraphicsDevice device, final int major, final int profile)
Returns a unique String object using |
| public abstract GL | Returns: the aggregated GL instance, or null if this context was not yet made current.Returns the GL pipeline object for this GLContext. |
| private static final int | |
| public abstract String | Returns: The extension implementing the GLDebugOutput feature, eitherGLExtensions#ARB_debug_output or GLExtensions#AMD_debug_output.
If unavailable or called before initialized via makeCurrent(), null is returned.
|
| public abstract GLDrawable | |
| public abstract int | |
| public abstract String | getGLExtensionsString()
Returns a non-null (but possibly empty) string containing the space-separated list of available extensions. |
| protected static String | getGLProfile(final int major, final int minor, final int ctp)
returns the highest GLProfile string regarding the implementation version and context profile bits. |
| protected static StringBuilder | |
| public abstract GLDrawable | |
| public final VersionNumber | Returns: GLSL version number if context has been made current at least once, otherwise thezero version instance is returned.Returns the matching GLSL version number, queried by this context GL
via |
| public final String | getGLSLVersionString()
Returns the GLSL version string as to be used in a shader program, including a terminating newline '\n', i.e. for desktop #version 110 .. |
| public final VersionNumberString | getGLVendorVersionNumber()
Returns the vendor's version, i.e. version number at the end of |
| public final String | getGLVersion()
Returns a valid OpenGL version string, ie
major.minor ([option]?[options,]*) - gl-version
|
| protected static StringBuilder | getGLVersion(final StringBuilder sb, final VersionNumber version, final int ctp, final String gl_version)
|
| protected static StringBuilder | getGLVersion(final StringBuilder sb, final int major, final int minor, final int ctp, final String gl_version)
|
| protected static String | |
| public final VersionNumber | |
| public final long | |
| public static final int | |
| public static final int | |
| public final int | getMaxRenderbufferSamples()
Returns the maximum number of FBO RENDERBUFFER samples
if |
| public abstract int | |
| public abstract String | getPlatformExtensionsString()
Returns a non-null (but possibly empty) string containing the space-separated list of available platform-dependent (e.g., WGL, GLX) extensions. |
| public final GLRendererQuirks | |
| protected static final void | getRequestMajorAndCompat(final GLProfile glp, final int[] reqMajorCTP)
Returns the GLProfile's major version number at reqMajorCTP[0] and it's context property (CTP) at reqMajorCTP[1] for availability mapping request. |
| public abstract GL | getRootGL()
Returns the implementing root GL instance of this GLContext's GL object,
considering a wrapped pipelined hierarchy, see |
| public final GLContext | getSharedMaster()
Returns the shared master GLContext of this GLContext if shared, otherwise return |
| protected static final VersionNumber | getStaticGLSLVersionNumber(final int glMajorVersion, final int glMinorVersion, final int ctxOptions)
|
| public int | |
| public int | |
| protected static String | |
| public abstract void | glDebugMessageControl(int source, int type, int severity, int count, IntBuffer ids, boolean enabled)
Generic entry for |
| public abstract void | glDebugMessageControl(int source, int type, int severity, int count, int[] ids, int ids_offset, boolean enabled)
Generic entry for |
| public abstract void | glDebugMessageInsert(int source, int type, int id, int severity, String buf)
Generic entry for |
| public final boolean | |
| public final boolean | hasFP32CompatAPI()
Returns |
| public final boolean | |
| public final boolean | |
| public final boolean | hasNoDefaultVAO()
Indicates whether this GLContext's native profile does not implement a default vertex array object (VAO), starting w/ OpenGL 3.1 core. |
| public final boolean | hasRendererQuirk(final int
the quirk to be tested, e.g. quirk)GLRendererQuirks#NoDoubleBufferedPBuffer.Returns true if the |
| public final boolean | isCPUDataSourcingAvail()
Indicates whether this GLContext allows CPU data sourcing (indices, vertices ..) as opposed to using a GPU buffer source (VBO),
e.g. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public abstract boolean | isExtensionAvailable(String
the name of the OpenGL extension (e.g.,
"GL_VERTEX_PROGRAM_ARB"). glExtensionName)Returns true if the specified OpenGL extension can be successfully called using this GL context given the current host (OpenGL client) and display (OpenGL server) configuration. |
| public static final boolean | isFBOAvailable(final AbstractGraphicsDevice
the device to request whether FBO is available for device, final GLProfile GLProfile to check for FBO capabilitiesReturns true if it is possible to create an framebuffer object (FBO). |
| public abstract boolean | isFunctionAvailable(String
the name of the OpenGL function (e.g., use
"glPolygonOffsetEXT" or "glPolygonOffset" to check if the glFunctionName)com. is available).Returns true if the specified OpenGL core- or extension-function can be successfully called using this GL context given the current host (OpenGL client) and display (OpenGL server) configuration. |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public final boolean | isGL4ES3()
Returns true if this profile is capable of GL4ES3, i.e. if |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public abstract boolean | |
| public abstract boolean | Returns: the current synchronous debug behavior, set viasetGLDebugSynchronous(boolean).
|
| public final boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | |
| public static boolean | |
| public final boolean | Returns: true if this context is an ES2 context or implements the extensionGL_ARB_ES3_compatibility or GL_ARB_ES2_compatibility, otherwise false
|
| public final boolean | |
| public final boolean | isGLES31Compatible()
Return true if this context is an ES3 context ≥ 3.1 or implements
the extension |
| public static final boolean | isGLES31CompatibleAvailable(final AbstractGraphicsDevice device)
Returns true if a ES3 ≥ 3.1 compatible profile is available,
i.e. either a ≥ 4.5 context or a ≥ 3.1 context supporting |
| public final boolean | isGLES32Compatible()
Return true if this context is an ES3 context ≥ 3.2 or implements
the extension |
| public static final boolean | isGLES32CompatibleAvailable(final AbstractGraphicsDevice device)
Returns true if a ES3 ≥ 3.2 compatible profile is available,
i.e. either a ≥ 4.5 context or a ≥ 3.1 context supporting |
| public static boolean | |
| public final boolean | isGLES3Compatible()
Return true if this context is an ES3 context or implements
the extension |
| public static final boolean | isGLES3CompatibleAvailable(final AbstractGraphicsDevice device)
Returns true if a ES3 compatible profile is available,
i.e. either a ≥ 4.3 context or a ≥ 3.1 context supporting |
| public final boolean | |
| public final boolean | |
| public abstract boolean | Returns: true if using a read-drawable is supported with your driver/OS, otherwise false.Query whether using a distinguished read-drawable is supported. |
| protected static boolean | Returns: true if the requested GL version is available regardless of a software or hardware rasterizer, otherwise false.the device to request whether the profile is available for device, final int Key Value either 1, 2, 3 or 4 reqMajor, final int reqProfile, final boolean[] return value of one boolean, whether the profile is a hardware rasterizer or not isHardware)
|
| public final boolean | |
| public static final int | Returns: 1 if using a hardware rasterizer, 0 if using a software rasterizer and -1 if not determined yet.
|
| public boolean | |
| public final boolean | |
| public boolean | |
| public static final boolean | isValidGLVersion(final int ctxProfile, final int major, final int minor)
Returns true, if the major.minor is not inferior to the lowest valid version and does not exceed the highest known major number by more than one. |
| public final boolean | |
| protected boolean | |
| public abstract int | Returns:
Makes this GLContext current on the calling thread. |
| public static final String | makeCurrentResultToString(final int res)
Returns a String representation of the |
| protected static Integer | mapAvailableGLVersion(final AbstractGraphicsDevice device, final int reqMajor, final int profile, final int resMajor, final int resMinor, int resCtp)
|
| public final boolean | queryMaxSwapGroups(final int[] maxGroups, final int maxGroups_offset, final int[] maxBarriers, final int maxBarriers_offset)
|
| protected boolean | queryMaxSwapGroupsImpl(final int[] maxGroups, final int maxGroups_offset, final int[] maxBarriers, final int maxBarriers_offset)
|
| public abstract void | |
| public abstract void | removeGLDebugListener(GLDebugListener
GLDebugListener handling GLDebugMessagesRemove |
| protected void | resetStates(final boolean
true if called for class initialization, otherwise false (re-init or destruction). isInit)
|
| protected static void | |
| public abstract void | setContextCreationFlags(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().
|
| protected static void | setCurrent(final GLContext cur)
Sets the thread-local variable returned by |
| protected void | |
| public abstract GL | |
| public abstract void | setGLDebugSynchronous(boolean synchronous)
Enables or disables the synchronous debug behavior via
|
| public abstract GLDrawable | Returns: The previous read/write drawable if operation succeedsThe read/write drawable for framebuffer operations, maybe readWrite, 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.Sets the read/write drawable for framebuffer operations, i.e. reassociation of the context's drawable. |
| public abstract GLDrawable | Returns: the previous read-drawablethe read-drawable for read framebuffer operations.
If null is passed, the default write drawable will be set. read)Set the read-Drawable for read framebuffer operations. |
| public boolean | Returns: true if the operation was successful, otherwise falsesee above interval)Set the swap interval of the current context and attached onscreen |
| protected boolean | |
| protected static void | |
| protected static String | |
| protected static String | |
| public String | |
| public final void | |
| private static void |