Instants of this class are immutable. An example of the expected way to set
the PixelFormat property values is the following:
PixelFormat pf = new PixelFormat().withDepthBits(24).withSamples(4).withSRGB(true);
Warning
Some pixel formats are known to cause troubles on certain buggy drivers. Example: Under Windows, specifying samples != 0 will enable the ARB pixel format selection path, which could trigger a crash.
| Modifier and Type | Field and Description |
|---|---|
| private int | accum_alpha
The number of alpha bits in the accumulation buffer |
| private int | accum_bpp
The number of bits per pixel in the accumulation buffer |
| private int | alpha
The number of alpha bits. |
| private int | bpp
The number of bits per pixel, exluding alpha. |
| private int | colorSamples
The number of COLOR_SAMPLES_NV to use for Coverage Sample Anti-aliasing (CSAA). |
| private int | depth
The number of depth buffer bits |
| private boolean | floating_point
Whether this format specifies a floating point format |
| private boolean | floating_point_packed
Whether this format specifies a packed floating point format (32 bit unsigned - R11F_G11F_B10F) This property is currently a no-op for the MacOS implementation. |
| private int | num_aux_buffers
The number of auxiliary buffers |
| private int | samples
The number of samples to use in anti-aliasing. |
| private boolean | sRGB
Whether this format specifies an sRGB format This property is currently a no-op for the MacOS implementation. |
| private int | stencil
The number of stencil bits |
| private boolean | stereo
Whether this format requires a stereo buffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo)
|
| public | PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo, boolean floating_point)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public PixelFormat | Returns: the new PixelFormatthe new alpha bits in the accumulation buffer value. accum_alpha)Returns a new PixelFormat object with the same properties as this PixelFormat and the new alpha bits in the accumulation buffer value. |
| public PixelFormat | Returns: the new PixelFormatthe new bits per pixel in the accumulation buffer value. accum_bpp)Returns a new PixelFormat object with the same properties as this PixelFormat and the new bits per pixel in the accumulation buffer value. |
| public PixelFormat | Returns: the new PixelFormatthe new alpha bits value. alpha)Returns a new PixelFormat object with the same properties as this PixelFormat and the new alpha bits value. |
| public PixelFormat | Returns: the new PixelFormatthe new auxiliary buffers value. num_aux_buffers)Returns a new PixelFormat object with the same properties as this PixelFormat and the new auxiliary buffers value. |
| public PixelFormat | Returns: the new PixelFormatthe new bits per pixel value. bpp)Returns a new PixelFormat object with the same properties as this PixelFormat and the new bits per pixel value. |
| public PixelFormat | Returns: the new PixelFormatthe new color samples value. colorSamples)Returns a new PixelFormat object with the same properties as this PixelFormat and the new color samples values. |
| public PixelFormat | Returns: the new PixelFormatthe new color samples value. This value must be lower than or equal to the coverage samples value. colorSamples, final int the new coverage samples value. coverageSamples)Returns a new PixelFormat object with the same properties as this PixelFormat and the new color samples and coverage samples values. |
| public PixelFormat | Returns: the new PixelFormatthe new depth bits value. depth)Returns a new PixelFormat object with the same properties as this PixelFormat and the new depth bits value. |
| public PixelFormat | Returns: the new PixelFormatthe new floating point value. floating_point)Returns a new PixelFormat object with the same properties as this PixelFormat and the new floating point value. |
| public PixelFormat | Returns: the new PixelFormatthe new packed floating point value. floating_point_packed)Returns a new PixelFormat object with the same properties as this PixelFormat and the new packed floating point value. |
| public PixelFormat | Returns: the new PixelFormatthe new samples value. samples)Returns a new PixelFormat object with the same properties as this PixelFormat and the new samples value. |
| public PixelFormat | Returns: the new PixelFormatthe new floating point value. sRGB)Returns a new PixelFormat object with the same properties as this PixelFormat and the new sRGB value. |
| public PixelFormat | Returns: the new PixelFormatthe new stencil bits value. stencil)Returns a new PixelFormat object with the same properties as this PixelFormat and the new stencil bits value. |
| public PixelFormat | Returns: the new PixelFormatthe new stereo value. stereo)Returns a new PixelFormat object with the same properties as this PixelFormat and the new stereo value. |
| accum_alpha | back to summary |
|---|---|
| private int accum_alpha The number of alpha bits in the accumulation buffer | |
| accum_bpp | back to summary |
|---|---|
| private int accum_bpp The number of bits per pixel in the accumulation buffer | |
| alpha | back to summary |
|---|---|
| private int alpha The number of alpha bits. | |
| bpp | back to summary |
|---|---|
| private int bpp The number of bits per pixel, exluding alpha. This parameter is ignored in Display.create(). | |
| colorSamples | back to summary |
|---|---|
| private int colorSamples The number of COLOR_SAMPLES_NV to use for Coverage Sample Anti-aliasing (CSAA).
When this number is greater than 0, the This property is currently a no-op for the MacOS implementation. | |
| depth | back to summary |
|---|---|
| private int depth The number of depth buffer bits | |
| floating_point | back to summary |
|---|---|
| private boolean floating_point Whether this format specifies a floating point format | |
| floating_point_packed | back to summary |
|---|---|
| private boolean floating_point_packed Whether this format specifies a packed floating point format (32 bit unsigned - R11F_G11F_B10F) This property is currently a no-op for the MacOS implementation. | |
| num_aux_buffers | back to summary |
|---|---|
| private int num_aux_buffers The number of auxiliary buffers | |
| samples | back to summary |
|---|---|
| private int samples The number of samples to use in anti-aliasing. 0 means that anti-aliasing is disabled. | |
| sRGB | back to summary |
|---|---|
| private boolean sRGB Whether this format specifies an sRGB format This property is currently a no-op for the MacOS implementation. | |
| stencil | back to summary |
|---|---|
| private int stencil The number of stencil bits | |
| stereo | back to summary |
|---|---|
| private boolean stereo Whether this format requires a stereo buffer | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat() Default pixel format is minimum 8 bits depth, and no alpha nor stencil requirements. | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat(int alpha, int depth, int stencil) | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat(int alpha, int depth, int stencil, int samples) | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat(int bpp, int alpha, int depth, int stencil, int samples) | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo) | |
| PixelFormat | back to summary |
|---|---|
| public PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo, boolean floating_point) | |
| PixelFormat | back to summary |
|---|---|
| private PixelFormat(final PixelFormat pf) | |
| getAccumulationAlpha | back to summary |
|---|---|
| public int getAccumulationAlpha() | |
| getAccumulationBitsPerPixel | back to summary |
|---|---|
| public int getAccumulationBitsPerPixel() | |
| getAlphaBits | back to summary |
|---|---|
| public int getAlphaBits() | |
| getAuxBuffers | back to summary |
|---|---|
| public int getAuxBuffers() | |
| getBitsPerPixel | back to summary |
|---|---|
| public int getBitsPerPixel() | |
| getDepthBits | back to summary |
|---|---|
| public int getDepthBits() | |
| getSamples | back to summary |
|---|---|
| public int getSamples() | |
| getStencilBits | back to summary |
|---|---|
| public int getStencilBits() | |
| isFloatingPoint | back to summary |
|---|---|
| public boolean isFloatingPoint() | |
| isSRGB | back to summary |
|---|---|
| public boolean isSRGB() | |
| isStereo | back to summary |
|---|---|
| public boolean isStereo() | |
| withAccumulationAlpha | back to summary |
|---|---|
| public PixelFormat withAccumulationAlpha(final int accum_alpha) Returns a new PixelFormat object with the same properties as this PixelFormat and the new alpha bits in the accumulation buffer value.
| |
| withAccumulationBitsPerPixel | back to summary |
|---|---|
| public PixelFormat withAccumulationBitsPerPixel(final int accum_bpp) Returns a new PixelFormat object with the same properties as this PixelFormat and the new bits per pixel in the accumulation buffer value.
| |
| withAlphaBits | back to summary |
|---|---|
| public PixelFormat withAlphaBits(final int alpha) Returns a new PixelFormat object with the same properties as this PixelFormat and the new alpha bits value.
| |
| withAuxBuffers | back to summary |
|---|---|
| public PixelFormat withAuxBuffers(final int num_aux_buffers) Returns a new PixelFormat object with the same properties as this PixelFormat and the new auxiliary buffers value.
| |
| withBitsPerPixel | back to summary |
|---|---|
| public PixelFormat withBitsPerPixel(final int bpp) Returns a new PixelFormat object with the same properties as this PixelFormat and the new bits per pixel value.
| |
| withCoverageSamples | back to summary |
|---|---|
| public PixelFormat withCoverageSamples(final int colorSamples) Returns a new PixelFormat object with the same properties as this PixelFormat and the new color samples values.
A value greater than 0 is valid only if the
| |
| withCoverageSamples | back to summary |
|---|---|
| public PixelFormat withCoverageSamples(final int colorSamples, final int coverageSamples) Returns a new PixelFormat object with the same properties as this PixelFormat and the new color samples and coverage samples values.
| |
| withDepthBits | back to summary |
|---|---|
| public PixelFormat withDepthBits(final int depth) Returns a new PixelFormat object with the same properties as this PixelFormat and the new depth bits value.
| |
| withFloatingPoint | back to summary |
|---|---|
| public PixelFormat withFloatingPoint(final boolean floating_point) Returns a new PixelFormat object with the same properties as this PixelFormat and the new floating point value. If floating_point is true, floating_point_packed will be reset to false.
| |
| withFloatingPointPacked | back to summary |
|---|---|
| public PixelFormat withFloatingPointPacked(final boolean floating_point_packed) Returns a new PixelFormat object with the same properties as this PixelFormat and the new packed floating point value. If floating_point_packed is true, floating_point will be reset to false.
| |
| withSamples | back to summary |
|---|---|
| public PixelFormat withSamples(final int samples) Returns a new PixelFormat object with the same properties as this PixelFormat and the new samples value.
| |
| withSRGB | back to summary |
|---|---|
| public PixelFormat withSRGB(final boolean sRGB) Returns a new PixelFormat object with the same properties as this PixelFormat and the new sRGB value.
| |
| withStencilBits | back to summary |
|---|---|
| public PixelFormat withStencilBits(final int stencil) Returns a new PixelFormat object with the same properties as this PixelFormat and the new stencil bits value.
| |
| withStereo | back to summary |
|---|---|
| public PixelFormat withStereo(final boolean stereo) Returns a new PixelFormat object with the same properties as this PixelFormat and the new stereo value.
| |