Top Fields Constructors Methods
jogamp.opengl.egl

public Class EGLGLCapabilities

extends GLCapabilities
Class Inheritance
Imports
com.jogamp.nativewindow.NativeWindowException, com.jogamp.opengl.GLCapabilities, .GLException, .GLProfile, com.jogamp.nativewindow.egl.EGLGraphicsDevice, com.jogamp.opengl.egl.EGL, .EGLExt

Field Summary

Modifier and TypeField and Description
private long
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
EGLGLCapabilities(final long eglcfg, final int eglcfgid, final int
native visualID if valid, otherwise VisualIDHolder.VID_UNDEFINED
visualID
,
final GLProfile
desired GLProfile
glp
,
final int
actual EGL renderableType May throw GLException if given GLProfile is not compatible w/ renderableType
renderableType
)

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides com.jogamp.opengl.GLCapabilities.clone.

Creates and returns a copy of this object.
public Object
public static GLProfile
getCompatible(final EGLGraphicsDevice device, final int renderableType)

public final long
public final int
public final int
public final int
public final int
getVisualID(final VisualIDHolder.VIDType type)

Overrides com.jogamp.nativewindow.Capabilities.getVisualID.

Implements com.jogamp.nativewindow.VisualIDHolder.getVisualID.

Returns the native visual ID of the given type if supported, or VID_UNDEFINED if not supported.
public static boolean
isCompatible(final GLProfile glp, final int renderableType)

public static StringBuilder
renderableTypeToString(StringBuilder sink, final int renderableType)

protected final void
setEGLConfig(final long v)

public StringBuilder
toString(StringBuilder sink)

Overrides com.jogamp.opengl.GLCapabilities.toString.

Implements com.jogamp.nativewindow.CapabilitiesImmutable.toString.

Return a textual representation of this object.
Inherited from com.jogamp.opengl.GLCapabilities:
compareTocopyFromequalsgetAccumAlphaBitsgetAccumBlueBitsgetAccumGreenBitsgetAccumRedBitsgetDepthBitsgetDoubleBufferedgetGLProfilegetHardwareAcceleratedgetNumSamplesgetSampleBuffersgetSampleExtensiongetStencilBitsgetStereohashCodeisFBOisPBuffersetAccumAlphaBitssetAccumBlueBitssetAccumGreenBitssetAccumRedBitssetDepthBitssetDoubleBufferedsetFBOsetGLProfilesetHardwareAcceleratedsetNumSamplessetPBuffersetSampleBufferssetSampleExtensionsetStencilBitssetStereotoString

Field Detail

eglcfgback to summary
private long eglcfg
eglcfgidback to summary
private final int eglcfgid
nativeVisualIDback to summary
private final int nativeVisualID
renderableTypeback to summary
private final int renderableType

Constructor Detail

EGLGLCapabilitiesback to summary
public EGLGLCapabilities(final long eglcfg, final int eglcfgid, final int visualID, final GLProfile glp, final int renderableType)
Parameters
visualID:int

native visualID if valid, otherwise VisualIDHolder.VID_UNDEFINED

glp:GLProfile

desired GLProfile

renderableType:int

actual EGL renderableType May throw GLException if given GLProfile is not compatible w/ renderableType

Method Detail

cloneback to summary
public Object clone()

Overrides com.jogamp.opengl.GLCapabilities.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
cloneMutableback to summary
public Object cloneMutable()

Overrides com.jogamp.opengl.GLCapabilities.cloneMutable.

Implements com.jogamp.common.type.WriteCloneable.cloneMutable.

Doc from com.jogamp.common.type.WriteCloneable.cloneMutable.

Get a mutable clone from this instance.

Annotations
@Override
getCompatibleback to summary
public static GLProfile getCompatible(final EGLGraphicsDevice device, final int renderableType)
getEGLConfigback to summary
public final long getEGLConfig()
getEGLConfigIDback to summary
public final int getEGLConfigID()
getNativeVisualIDback to summary
public final int getNativeVisualID()
getRenderableTypeback to summary
public final int getRenderableType()
getVisualIDback to summary
public final int getVisualID(final VisualIDHolder.VIDType type) throws NativeWindowException

Overrides com.jogamp.nativewindow.Capabilities.getVisualID.

Implements com.jogamp.nativewindow.VisualIDHolder.getVisualID.

Doc from com.jogamp.nativewindow.VisualIDHolder.getVisualID.

Returns the native visual ID of the given type if supported, or VID_UNDEFINED if not supported.

Depending on the native windowing system, type is handled as follows:

  • X11 throws NativeWindowException on EGL_CONFIG, WIN32_PFD
    • INTRINSIC: X11 XVisual ID
    • NATIVE: X11 XVisual ID
    • X11_XVISUAL: X11 XVisual ID
    • X11_FBCONFIG: VID_UNDEFINED
  • X11/GL throws NativeWindowException on EGL_CONFIG, WIN32_PFD
    • INTRINSIC: X11 XVisual ID
    • NATIVE: X11 XVisual ID
    • X11_XVISUAL: X11 XVisual ID
    • X11_FBCONFIG: X11 FBConfig ID or VID_UNDEFINED
  • Windows/GL throws NativeWindowException on EGL_CONFIG, X11_XVISUAL, X11_FBCONFIG
    • INTRINSIC: Win32 PIXELFORMATDESCRIPTOR ID
    • NATIVE: Win32 PIXELFORMATDESCRIPTOR ID
    • WIN32_PFD: Win32 PIXELFORMATDESCRIPTOR ID
  • EGL/GL throws NativeWindowException on X11_XVISUAL, X11_FBCONFIG, WIN32_PFD
    • INTRINSIC: EGL Config ID
    • NATIVE: EGL NativeVisual ID (X11 XVisual ID, Win32 PIXELFORMATDESCRIPTOR ID, ...)
    • EGL_CONFIG: EGL Config ID

Note: INTRINSIC and NATIVE are always handled, but may result in VID_UNDEFINED. The latter is true if the native value are actually undefined or the corresponding object is not mapped to a native visual object.
Annotations
@Override
Exceptions
NativeWindowException:
if type is neither INTRINSIC nor NATIVE and does not match the native implementation.
isCompatibleback to summary
public static boolean isCompatible(final GLProfile glp, final int renderableType)
renderableTypeToStringback to summary
public static StringBuilder renderableTypeToString(StringBuilder sink, final int renderableType)
setEGLConfigback to summary
protected final void setEGLConfig(final long v)
toStringback to summary
public StringBuilder toString(StringBuilder sink)

Overrides com.jogamp.opengl.GLCapabilities.toString.

Implements com.jogamp.nativewindow.CapabilitiesImmutable.toString.

Doc from com.jogamp.nativewindow.CapabilitiesImmutable.toString.

Return a textual representation of this object. Use the given StringBuilder [optional].

Annotations
@Override