Top Description Inners Fields Constructors Methods
org.lwjgl.opengles

public final Class PixelFormat

extends Object
implements PixelFormatLWJGL
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.PixelFormatLWJGL
Imports
org.lwjgl.BufferUtils, .LWJGLException, .LWJGLUtil, org.lwjgl.opengl.PixelFormatLWJGL, java.nio.IntBuffer, java.util.HashMap, .HashSet, .Map, .Set

This class describes the configuration settings for an EGL surface. Instances of this class are used as arguments to Display.create(). The attributes specified in this class will be used to get EGLConfigs from an EGLDisplay. PixelFormat is not the best name for this class, but it matches the corresponding class in the official desktop LWJGL.

Instances of this class are immutable. An example of the expected way to set the PixelFormat property values is the following: PixelFormat pf = new PixelFormat().withDepth(24).withSamples(4);

Attributes that correspond to EGL extensions will be silently ignored if those extensions are not supported by the EGLDisplay.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final Map<PixelFormat.Attrib, Integer>

Constructor Summary

AccessConstructor and Description
public
PixelFormat()

Creates a new PixelFormat with rgbSize = 8, alphaSize = 8 and depthSize = 16.

public
PixelFormat(int
the EGL_ALPHA_SIZE value
alphaSize
,
int
the EGL_DEPTH_SIZE value
depthSize
,
int
the EGL_STENCIL_SIZE value
stencilSize
)

Creates a new PixelFormat with rgbSize = 8 and the specified alphaSize, depthSize and stencilSize.

public
PixelFormat(int
the EGL_ALPHA_SIZE value
alphaSize
,
int
the EGL_DEPTH_SIZE value
depthSize
,
int
the EGL_STENCIL_SIZE value
stencilSize
,
int
the EGL_SAMPLE_SIZE value
samples
)

Creates a new PixelFormat with rgbSize = 8 and the specified alphaSize, depthSize, stencilSize and samples.

public
PixelFormat(int
the RGB sizes
rgbSize
,
int
the EGL_ALPHA_SIZE value
alphaSize
,
int
the EGL_LUMINANCE_SIZE value
luminanceSize
,
int
the EGL_DEPTH_SIZE value
depthSize
,
int
the EGL_STENCIL_SIZE value
stencilSize
,
int
the EGL_SAMPLE_SIZE value
samples
)

Creates a new PixelFormat with the specified RGB sizes, EGL_ALPHA_SIZE, EGL_LUMINANCE_SIZE, EGL_DEPTH_SIZE, EGL_STENCIL_SIZE, EGL_SAMPLES.

private
PixelFormat(final PixelFormat
the source PixelFormat
pf
)

Creates a new PixelFormat that is a copy of the specified PixelFormat.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the attribute's value
getAttrib
(final PixelFormat.Attrib
the attribute to retrieve
attrib
)

Returns the value of the specified attribute.

public IntBuffer

Returns:

the IntBuffer
getAttribBuffer
(final EGLDisplay
the EGL display from which the EGLConfig is going to be retrieved
display
,
int surfaceType, final int[]
the LWJGL attributes
lwjglAttribs
)

Returns an IntBuffer that can be used to get/choose EGLConfigs.

public EGLConfig

Returns:

the best match
getBestMatch
(final EGLConfig[]
the EGL configs
configs
)

Returns the EGL config from the specified array that best matches this PixelFormat.

private boolean

Returns:

true if the two attributes match
matches
(final PixelFormat.Attrib
the requested attribute
attrib
,
final EGLConfig
the EGL config
config
)

Returns true if the requested attribute matches the attribute in the specified EGL config.

private boolean

Returns:

true if the two attributes match
matchesNonZero
(final PixelFormat.Attrib
the requested attribute
attrib
,
final EGLConfig
the EGL config
config
)

Returns true if the requested attribute matches the attribute in the specified EGL config.

private static int
maxValue(final int bits)

private void
setAttrib(final PixelFormat.Attrib
the attribute
attrib
,
final int
the new value
value
)

Sets the value of an attribute to the current configuration.

private void
setSurfaceAttrib(final EGLSurface surface, final PixelFormat.Attrib attrib)

public void
setSurfaceAttribs(final EGLSurface
the EGL surface
surface
)

Applies this PixelFormat's surface attributes to the specified EGL surface.

public PixelFormat

Returns:

the new PixelFormat
withAlphaSize
(final int
the new EGL_ALPHA_SIZE
alphaSize
)

Returns a new PixelFormat with the specified EGL_ALPHA_SIZE.

public PixelFormat

Returns:

the new PixelFormat
withCoverageSamplesNV
(final int
the new EGL_SAMPLES value
samples
)

Returns a new PixelFormat with the specified number of EGL_COVERAGE_SAMPLES_NV.

public PixelFormat

Returns:

the new PixelFormat
withDepthEncodingNonlinearNV
(final int
the new EGL_DEPTH_ENCODING_NONLINEAR_NV value
depthEncoding
)

Returns a new PixelFormat with the specified EGL_DEPTH_ENCODING_NONLINEAR_NV.

public PixelFormat

Returns:

the new PixelFormat
withDepthSize
(final int
the new EGL_DEPTH_SIZE
depthSize
)

Returns a new PixelFormat with the specified EGL_DEPTH_SIZE.

public PixelFormat

Returns:

the new PixelFormat
withLuminanceSize
(final int
the new EGL_LUMINANCE_SIZE
luminanceSize
)

Returns a new PixelFormat with the specified EGL_LUMINANCE_SIZE.

public PixelFormat

Returns:

the new PixelFormat
withMaxSwapInterval
(final int
the new EGL_MAX_SWAP_INTERVAL value
maxSwapInterval
)

Returns a new PixelFormat with the specified EGL_MAX_SWAP_INTERVAL.

public PixelFormat

Returns:

the new PixelFormat
withMinSwapInterval
(final int
the new EGL_MIN_SWAP_INTERVAL value
minSwapInterval
)

Returns a new PixelFormat with the specified EGL_MIN_SWAP_INTERVAL.

public PixelFormat

Returns:

the new PixelFormat
withMultisampleResolve
(final int
the new EGL_MULTISAMPLE_RESOLVE value
multisampleResolve
)

Returns a new PixelFormat with the specified EGL_MULTISAMPLE_RESOLVE value.

public PixelFormat

Returns:

the new PixelFormat
withRGBSize
(final int
the new EGL_RED_SIZE, EGL_GREEN_SIZE and EGL_BLUE_SIZE
rgb
)

Returns a new PixelFormat with the specified RGB sizes.

public PixelFormat

Returns:

the new PixelFormat
withRGBSize
(final int
the new EGL_RED_SIZE
r
,
final int
the new EGL_GREEN_SIZE
g
,
final int
the new EGL_BLUE_SIZE
b
)

Returns a new PixelFormat with the specified EGL_RED_SIZE, EGL_GREEN_SIZE and EGL_BLUE_SIZE.

public PixelFormat

Returns:

the new PixelFormat
withSamples
(final int
the new EGL_SAMPLES value
samples
)

Returns a new PixelFormat with the specified number of EGL_SAMPLES.

public PixelFormat

Returns:

the new PixelFormat
withStencilSize
(final int
the new EGL_STENCIL_SIZE
stencilSize
)

Returns a new PixelFormat with the specified EGL_STENCIL_SIZE.

public PixelFormat

Returns:

the new PixelFormat
withSwapBehavior
(final int
the new EGL_SWAP_BEHAVIOR value
swapBehavior
)

Returns a new PixelFormat with the specified EGL_SWAP_BEHAVIOR value.

public PixelFormat

Returns:

the new PixelFormat
withTransparentType
(final int
the new EGL_TRANSPARENT_TYPE value
transparentType
,
int
the new EGL_TRANSPARENT_RED_VALUE
r
,
int
the new EGL_TRANSPARENT_GREEN_VALUE
g
,
int
the new EGL_TRANSPARENT_BLUE_VALUE
b
)

Returns a new PixelFormat with the specified EGL_TRANSPARENT_TYPE and the specified transparent RGB values.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
private final Map<PixelFormat.Attrib, Integer> config

Constructor Detail

PixelFormatback to summary
public PixelFormat()

Creates a new PixelFormat with rgbSize = 8, alphaSize = 8 and depthSize = 16.

See Also
PixelFormat(int, int, int, int, int, int)
PixelFormatback to summary
public PixelFormat(int alphaSize, int depthSize, int stencilSize)

Creates a new PixelFormat with rgbSize = 8 and the specified alphaSize, depthSize and stencilSize.

Parameters
alphaSize:int

the EGL_ALPHA_SIZE value

depthSize:int

the EGL_DEPTH_SIZE value

stencilSize:int

the EGL_STENCIL_SIZE value

See Also
PixelFormat(int, int, int, int, int, int)
PixelFormatback to summary
public PixelFormat(int alphaSize, int depthSize, int stencilSize, int samples)

Creates a new PixelFormat with rgbSize = 8 and the specified alphaSize, depthSize, stencilSize and samples.

Parameters
alphaSize:int

the EGL_ALPHA_SIZE value

depthSize:int

the EGL_DEPTH_SIZE value

stencilSize:int

the EGL_STENCIL_SIZE value

samples:int

the EGL_SAMPLE_SIZE value

See Also
PixelFormat(int, int, int, int, int, int)
PixelFormatback to summary
public PixelFormat(int rgbSize, int alphaSize, int luminanceSize, int depthSize, int stencilSize, int samples)

Creates a new PixelFormat with the specified RGB sizes, EGL_ALPHA_SIZE, EGL_LUMINANCE_SIZE, EGL_DEPTH_SIZE, EGL_STENCIL_SIZE, EGL_SAMPLES. All values must be greater than or equal to 0. rgbSize and luminanceSize cannot both be greater than 0. depthSize greater than 24 and stencilSize greater than 8 are not recommended. The corresponding EGL_SAMPLE_BUFFERS value will become 0 if samples is 0, or 1 if samples is greater than 0.

Parameters
rgbSize:int

the RGB sizes

alphaSize:int

the EGL_ALPHA_SIZE value

luminanceSize:int

the EGL_LUMINANCE_SIZE value

depthSize:int

the EGL_DEPTH_SIZE value

stencilSize:int

the EGL_STENCIL_SIZE value

samples:int

the EGL_SAMPLE_SIZE value

PixelFormatback to summary
private PixelFormat(final PixelFormat pf)

Creates a new PixelFormat that is a copy of the specified PixelFormat.

Parameters
pf:PixelFormat

the source PixelFormat

Method Detail

getAttribback to summary
public int getAttrib(final PixelFormat.Attrib attrib)

Returns the value of the specified attribute.

Parameters
attrib:PixelFormat.Attrib

the attribute to retrieve

Returns:int

the attribute's value

getAttribBufferback to summary
public IntBuffer getAttribBuffer(final EGLDisplay display, int surfaceType, final int[] lwjglAttribs)

Returns an IntBuffer that can be used to get/choose EGLConfigs. The contents of the IntBuffer will be the sum of the source LWJGL attributes and the user-defined attributes from this PixelFormat's configuration.

The source LWJGL attributes should not contain the EGL_SURFACE_TYPE attirube, or any attributes that are handled by PixelFormat.

Attributes that correspond to EGL extensions will be checked against the extensions supported in the specified EGLDisplay. Attributes that correspond to unsupported extensions will not be included in the final EGLConfig query.

Parameters
display:EGLDisplay

the EGL display from which the EGLConfig is going to be retrieved

lwjglAttribs:int[]

the LWJGL attributes

Returns:IntBuffer

the IntBuffer

getBestMatchback to summary
public EGLConfig getBestMatch(final EGLConfig[] configs) throws LWJGLException

Returns the EGL config from the specified array that best matches this PixelFormat.

Parameters
configs:EGLConfig[]

the EGL configs

Returns:EGLConfig

the best match

matchesback to summary
private boolean matches(final PixelFormat.Attrib attrib, final EGLConfig config) throws LWJGLException

Returns true if the requested attribute matches the attribute in the specified EGL config.

Parameters
attrib:PixelFormat.Attrib

the requested attribute

config:EGLConfig

the EGL config

Returns:boolean

true if the two attributes match

Exceptions
LWJGLException:
if an EGL error occurs
matchesNonZeroback to summary
private boolean matchesNonZero(final PixelFormat.Attrib attrib, final EGLConfig config) throws LWJGLException

Returns true if the requested attribute matches the attribute in the specified EGL config. If the requested attribute is equal to 1, then it will match with any EGL config attribute that is greater than 0.

Parameters
attrib:PixelFormat.Attrib

the requested attribute

config:EGLConfig

the EGL config

Returns:boolean

true if the two attributes match

Exceptions
LWJGLException:
if an EGL error occurs
maxValueback to summary
private static int maxValue(final int bits)
setAttribback to summary
private void setAttrib(final PixelFormat.Attrib attrib, final int value)

Sets the value of an attribute to the current configuration. If the value matches the default attribute value, the attribute will be removed from the configuration.

Parameters
attrib:PixelFormat.Attrib

the attribute

value:int

the new value

setSurfaceAttribback to summary
private void setSurfaceAttrib(final EGLSurface surface, final PixelFormat.Attrib attrib) throws LWJGLException
setSurfaceAttribsback to summary
public void setSurfaceAttribs(final EGLSurface surface) throws LWJGLException

Applies this PixelFormat's surface attributes to the specified EGL surface.

Parameters
surface:EGLSurface

the EGL surface

withAlphaSizeback to summary
public PixelFormat withAlphaSize(final int alphaSize)

Returns a new PixelFormat with the specified EGL_ALPHA_SIZE. The alphaSize value must be greater than or equal to 0.

Parameters
alphaSize:int

the new EGL_ALPHA_SIZE

Returns:PixelFormat

the new PixelFormat

withCoverageSamplesNVback to summary
public PixelFormat withCoverageSamplesNV(final int samples)

Returns a new PixelFormat with the specified number of EGL_COVERAGE_SAMPLES_NV. The samples value must be greater than or equal to 0. The related EGL_COVERAGE_BUFFERS_NV value will become 0 if samples is 0, or 1 if samples is greater than 0.

Parameters
samples:int

the new EGL_SAMPLES value

Returns:PixelFormat

the new PixelFormat

withDepthEncodingNonlinearNVback to summary
public PixelFormat withDepthEncodingNonlinearNV(final int depthEncoding)

Returns a new PixelFormat with the specified EGL_DEPTH_ENCODING_NONLINEAR_NV. Valid values for depthEncoding are EGL_DONT_CARE, EGL_DEPTH_ENCODING_NONE_NV and EGL_DEPTH_ENCODING_NONLINEAR_NV.

Parameters
depthEncoding:int

the new EGL_DEPTH_ENCODING_NONLINEAR_NV value

Returns:PixelFormat

the new PixelFormat

withDepthSizeback to summary
public PixelFormat withDepthSize(final int depthSize)

Returns a new PixelFormat with the specified EGL_DEPTH_SIZE. The depthSize value must be greater than or equal to 0. Values greater than 24 are not recommended.

Parameters
depthSize:int

the new EGL_DEPTH_SIZE

Returns:PixelFormat

the new PixelFormat

withLuminanceSizeback to summary
public PixelFormat withLuminanceSize(final int luminanceSize)

Returns a new PixelFormat with the specified EGL_LUMINANCE_SIZE. The luminanceSize value must be greater than or equal to 0. If luminanceSize is greater than 0, the RGB sizes will be set to 0.

Parameters
luminanceSize:int

the new EGL_LUMINANCE_SIZE

Returns:PixelFormat

the new PixelFormat

withMaxSwapIntervalback to summary
public PixelFormat withMaxSwapInterval(final int maxSwapInterval)

Returns a new PixelFormat with the specified EGL_MAX_SWAP_INTERVAL. The maxSwapInterval value must be greater than or equal to this PixelFormat's EGL_MIN_SWAP_INTERVAL.

Parameters
maxSwapInterval:int

the new EGL_MAX_SWAP_INTERVAL value

Returns:PixelFormat

the new PixelFormat

withMinSwapIntervalback to summary
public PixelFormat withMinSwapInterval(final int minSwapInterval)

Returns a new PixelFormat with the specified EGL_MIN_SWAP_INTERVAL. The minSwapInterval value must be between 0 and this PixelFormat's EGL_MAX_SWAP_INTERVAL.

Parameters
minSwapInterval:int

the new EGL_MIN_SWAP_INTERVAL value

Returns:PixelFormat

the new PixelFormat

withMultisampleResolveback to summary
public PixelFormat withMultisampleResolve(final int multisampleResolve)

Returns a new PixelFormat with the specified EGL_MULTISAMPLE_RESOLVE value. Valid values for multisampleResolve are EGL_MULTISAMPLE_RESOLVE_DEFAULT and EGL_MULTISAMPLE_RESOLVE_BOX.

An IllegalStateException will be thrown if EGL_SAMPLES has not been previously defined to be greater than or equal to 2.

Parameters
multisampleResolve:int

the new EGL_MULTISAMPLE_RESOLVE value

Returns:PixelFormat

the new PixelFormat

withRGBSizeback to summary
public PixelFormat withRGBSize(final int rgb)

Returns a new PixelFormat with the specified RGB sizes.

Parameters
rgb:int

the new EGL_RED_SIZE, EGL_GREEN_SIZE and EGL_BLUE_SIZE

Returns:PixelFormat

the new PixelFormat

See Also
withRGBSize(int, int, int)
withRGBSizeback to summary
public PixelFormat withRGBSize(final int r, final int g, final int b)

Returns a new PixelFormat with the specified EGL_RED_SIZE, EGL_GREEN_SIZE and EGL_BLUE_SIZE. All 3 values must be greater than or equal to 0. If any of the 3 values is greater than 0, the luminanceSize will be set to 0.

Parameters
r:int

the new EGL_RED_SIZE

g:int

the new EGL_GREEN_SIZE

b:int

the new EGL_BLUE_SIZE

Returns:PixelFormat

the new PixelFormat

withSamplesback to summary
public PixelFormat withSamples(final int samples)

Returns a new PixelFormat with the specified number of EGL_SAMPLES. The samples value must be either 0 or greater than or equal to 2. The related EGL_SAMPLE_BUFFERS value will become 0 if samples is 0, or 1 if samples is greater than or equal to 2.

Parameters
samples:int

the new EGL_SAMPLES value

Returns:PixelFormat

the new PixelFormat

withStencilSizeback to summary
public PixelFormat withStencilSize(final int stencilSize)

Returns a new PixelFormat with the specified EGL_STENCIL_SIZE. The stencilSize value must be greater than or equal to 0. Values greater than 8 are not recommended.

Parameters
stencilSize:int

the new EGL_STENCIL_SIZE

Returns:PixelFormat

the new PixelFormat

withSwapBehaviorback to summary
public PixelFormat withSwapBehavior(final int swapBehavior)

Returns a new PixelFormat with the specified EGL_SWAP_BEHAVIOR value. Valid values for swapBehavior are EGL_DONT_CARE, EGL_BUFFER_PRESERVED and EGL_BUFFER_DESTROYED.

Parameters
swapBehavior:int

the new EGL_SWAP_BEHAVIOR value

Returns:PixelFormat

the new PixelFormat

withTransparentTypeback to summary
public PixelFormat withTransparentType(final int transparentType, int r, int g, int b)

Returns a new PixelFormat with the specified EGL_TRANSPARENT_TYPE and the specified transparent RGB values. The transparentType must be either EGL_NONE or EGL_TRANSPARENT_RGB. When it is EGL_NONE, the RGB values are set to zero and ignored. When it is EGL_TRANSPARENT_RGB, the RGB values must be between 0 and 2^rgbSize - 1.

Parameters
transparentType:int

the new EGL_TRANSPARENT_TYPE value

r:int

the new EGL_TRANSPARENT_RED_VALUE

g:int

the new EGL_TRANSPARENT_GREEN_VALUE

b:int

the new EGL_TRANSPARENT_BLUE_VALUE

Returns:PixelFormat

the new PixelFormat

org.lwjgl.opengles back to summary

public final Enum PixelFormat.Attrib

extends Enum<PixelFormat.Attrib>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
private final int
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
private final int
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
private final boolean
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib
public static final PixelFormat.Attrib

Constructor Summary

AccessConstructor and Description
private
Attrib(final int eglAttrib, final int defaultValue)

private
Attrib(final int eglAttrib, final int defaultValue, final boolean surfaceAttrib)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the default value
getDefaultValue
()

Returns the default value of this attribute.

public int

Returns:

the EGL attribute token
getEGLAttrib
()

Returns the EGL token that corresponds to this attribute.

public boolean
public static PixelFormat.Attrib
public static PixelFormat.Attrib[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALPHA_SIZEback to summary
public static final PixelFormat.Attrib ALPHA_SIZE
BLUE_SIZEback to summary
public static final PixelFormat.Attrib BLUE_SIZE
COVERAGE_BUFFERS_NVback to summary
public static final PixelFormat.Attrib COVERAGE_BUFFERS_NV
COVERAGE_SAMPLES_NVback to summary
public static final PixelFormat.Attrib COVERAGE_SAMPLES_NV
defaultValueback to summary
private final int defaultValue
DEPTH_ENCODING_NONLINEAR_NVback to summary
public static final PixelFormat.Attrib DEPTH_ENCODING_NONLINEAR_NV
DEPTH_SIZEback to summary
public static final PixelFormat.Attrib DEPTH_SIZE
eglAttribback to summary
private final int eglAttrib
GREEN_SIZEback to summary
public static final PixelFormat.Attrib GREEN_SIZE
LUMINANCE_SIZEback to summary
public static final PixelFormat.Attrib LUMINANCE_SIZE
MAX_SWAP_INTERVALback to summary
public static final PixelFormat.Attrib MAX_SWAP_INTERVAL
MIN_SWAP_INTERVALback to summary
public static final PixelFormat.Attrib MIN_SWAP_INTERVAL
MULTISAMPLE_RESOLVEback to summary
public static final PixelFormat.Attrib MULTISAMPLE_RESOLVE
RED_SIZEback to summary
public static final PixelFormat.Attrib RED_SIZE
SAMPLE_BUFFERSback to summary
public static final PixelFormat.Attrib SAMPLE_BUFFERS
SAMPLESback to summary
public static final PixelFormat.Attrib SAMPLES
STENCIL_SIZEback to summary
public static final PixelFormat.Attrib STENCIL_SIZE
surfaceAttribback to summary
private final boolean surfaceAttrib
SWAP_BEHAVIORback to summary
public static final PixelFormat.Attrib SWAP_BEHAVIOR
TRANSPARENT_BLUE_VALUEback to summary
public static final PixelFormat.Attrib TRANSPARENT_BLUE_VALUE
TRANSPARENT_GREEN_VALUEback to summary
public static final PixelFormat.Attrib TRANSPARENT_GREEN_VALUE
TRANSPARENT_RED_VALUEback to summary
public static final PixelFormat.Attrib TRANSPARENT_RED_VALUE
TRANSPARENT_TYPEback to summary
public static final PixelFormat.Attrib TRANSPARENT_TYPE

Constructor Detail

Attribback to summary
private Attrib(final int eglAttrib, final int defaultValue)
Attribback to summary
private Attrib(final int eglAttrib, final int defaultValue, final boolean surfaceAttrib)

Method Detail

getDefaultValueback to summary
public int getDefaultValue()

Returns the default value of this attribute. Attributes with default values will be ignored when choosing the EGLConfig.

Returns:int

the default value

getEGLAttribback to summary
public int getEGLAttrib()

Returns the EGL token that corresponds to this attribute.

Returns:int

the EGL attribute token

isSurfaceAttribback to summary
public boolean isSurfaceAttrib()
valueOfback to summary
public static PixelFormat.Attrib valueOf(String name)
valuesback to summary
public static PixelFormat.Attrib[] values()