Top Fields Constructors Methods
jogamp.opengl.windows.wgl

public Class WGLGLCapabilities

extends GLCapabilities
Class Inheritance
Imports
java.nio.IntBuffer, jogamp.nativewindow.windows.GDI, .PIXELFORMATDESCRIPTOR, com.jogamp.nativewindow.NativeWindowException, com.jogamp.opengl.GL, .GLCapabilities, .GLException, .GLProfile

Field Summary

Modifier and TypeField and Description
private int
private final PIXELFORMATDESCRIPTOR
private final int

Constructor Summary

AccessConstructor and Description
public
WGLGLCapabilities(final PIXELFORMATDESCRIPTOR pfd, final int pfdID, final GLProfile glp)

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 final PIXELFORMATDESCRIPTOR
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 final boolean
public final boolean
public final boolean
public static final String
PFD2String(final PIXELFORMATDESCRIPTOR pfd, final int pfdID)

public boolean
setValuesByARB(final IntBuffer iattribs, final int niattribs, final IntBuffer iresults)

public boolean
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

arb_pixelformatback to summary
private int arb_pixelformat
pfdback to summary
private final PIXELFORMATDESCRIPTOR pfd
pfdIDback to summary
private final int pfdID

Constructor Detail

WGLGLCapabilitiesback to summary
public WGLGLCapabilities(final PIXELFORMATDESCRIPTOR pfd, final int pfdID, final GLProfile glp)

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
getPFDback to summary
public final PIXELFORMATDESCRIPTOR getPFD()
getPFDIDback to summary
public final int getPFDID()
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.
isSetback to summary
public final boolean isSet()
isSetByARBback to summary
public final boolean isSetByARB()
isSetByGDIback to summary
public final boolean isSetByGDI()
PFD2Stringback to summary
public static final String PFD2String(final PIXELFORMATDESCRIPTOR pfd, final int pfdID)
setValuesByARBback to summary
public boolean setValuesByARB(final IntBuffer iattribs, final int niattribs, final IntBuffer iresults)
setValuesByGDIback to summary
public boolean setValuesByGDI()
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