Package org.lwjgl.opengl
Class WGLARBPixelFormat
- java.lang.Object
-
- org.lwjgl.opengl.WGLARBPixelFormat
-
public class WGLARBPixelFormat extends java.lang.Object
Native bindings to the WGL_ARB_pixel_format extension.This extension adds functions to query pixel format attributes and to choose from the list of supported pixel formats.
These functions treat pixel formats as opaque types: attributes are specified by name rather than by accessing them directly as fields in a structure. Thus the list of attributes can be easily extended.
Requires
WGL_ARB_extensions_string
.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static boolean
wglChoosePixelFormatARB(long hdc, int[] attribIList, float[] attribFList, int[] formats, int[] numFormats)
Array version of:ChoosePixelFormatARB
static boolean
wglChoosePixelFormatARB(long hdc, java.nio.IntBuffer attribIList, java.nio.FloatBuffer attribFList, java.nio.IntBuffer formats, java.nio.IntBuffer numFormats)
Selects from among all of the available pixel formats (including both accelerated and generic formats and non-displayable formats).static boolean
wglGetPixelFormatAttribfARB(long hdc, int pixelFormat, int layerPlane, int attribute, java.nio.FloatBuffer values)
Float version ofGetPixelFormatAttribivARB
.static boolean
wglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, float[] values)
Array version of:GetPixelFormatAttribfvARB
static boolean
wglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, java.nio.IntBuffer attributes, java.nio.FloatBuffer values)
Float version ofGetPixelFormatAttribivARB
.static boolean
wglGetPixelFormatAttribiARB(long hdc, int pixelFormat, int layerPlane, int attribute, java.nio.IntBuffer values)
static boolean
wglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, int[] values)
Array version of:GetPixelFormatAttribivARB
static boolean
wglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, java.nio.IntBuffer attributes, java.nio.IntBuffer values)
-
-
-
Field Detail
-
WGL_NUMBER_PIXEL_FORMATS_ARB
public static final int WGL_NUMBER_PIXEL_FORMATS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_DRAW_TO_WINDOW_ARB
public static final int WGL_DRAW_TO_WINDOW_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_DRAW_TO_BITMAP_ARB
public static final int WGL_DRAW_TO_BITMAP_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCELERATION_ARB
public static final int WGL_ACCELERATION_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_NEED_PALETTE_ARB
public static final int WGL_NEED_PALETTE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_NEED_SYSTEM_PALETTE_ARB
public static final int WGL_NEED_SYSTEM_PALETTE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SWAP_LAYER_BUFFERS_ARB
public static final int WGL_SWAP_LAYER_BUFFERS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SWAP_METHOD_ARB
public static final int WGL_SWAP_METHOD_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_NUMBER_OVERLAYS_ARB
public static final int WGL_NUMBER_OVERLAYS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_NUMBER_UNDERLAYS_ARB
public static final int WGL_NUMBER_UNDERLAYS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_ARB
public static final int WGL_TRANSPARENT_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_RED_VALUE_ARB
public static final int WGL_TRANSPARENT_RED_VALUE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_GREEN_VALUE_ARB
public static final int WGL_TRANSPARENT_GREEN_VALUE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_BLUE_VALUE_ARB
public static final int WGL_TRANSPARENT_BLUE_VALUE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_ALPHA_VALUE_ARB
public static final int WGL_TRANSPARENT_ALPHA_VALUE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_TRANSPARENT_INDEX_VALUE_ARB
public static final int WGL_TRANSPARENT_INDEX_VALUE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SHARE_DEPTH_ARB
public static final int WGL_SHARE_DEPTH_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SHARE_STENCIL_ARB
public static final int WGL_SHARE_STENCIL_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SHARE_ACCUM_ARB
public static final int WGL_SHARE_ACCUM_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SUPPORT_GDI_ARB
public static final int WGL_SUPPORT_GDI_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_SUPPORT_OPENGL_ARB
public static final int WGL_SUPPORT_OPENGL_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_DOUBLE_BUFFER_ARB
public static final int WGL_DOUBLE_BUFFER_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_STEREO_ARB
public static final int WGL_STEREO_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_PIXEL_TYPE_ARB
public static final int WGL_PIXEL_TYPE_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_COLOR_BITS_ARB
public static final int WGL_COLOR_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_RED_BITS_ARB
public static final int WGL_RED_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_RED_SHIFT_ARB
public static final int WGL_RED_SHIFT_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_GREEN_BITS_ARB
public static final int WGL_GREEN_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_GREEN_SHIFT_ARB
public static final int WGL_GREEN_SHIFT_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_BLUE_BITS_ARB
public static final int WGL_BLUE_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_BLUE_SHIFT_ARB
public static final int WGL_BLUE_SHIFT_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ALPHA_BITS_ARB
public static final int WGL_ALPHA_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ALPHA_SHIFT_ARB
public static final int WGL_ALPHA_SHIFT_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCUM_BITS_ARB
public static final int WGL_ACCUM_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCUM_RED_BITS_ARB
public static final int WGL_ACCUM_RED_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCUM_GREEN_BITS_ARB
public static final int WGL_ACCUM_GREEN_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCUM_BLUE_BITS_ARB
public static final int WGL_ACCUM_BLUE_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_ACCUM_ALPHA_BITS_ARB
public static final int WGL_ACCUM_ALPHA_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_DEPTH_BITS_ARB
public static final int WGL_DEPTH_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_STENCIL_BITS_ARB
public static final int WGL_STENCIL_BITS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_AUX_BUFFERS_ARB
public static final int WGL_AUX_BUFFERS_ARB
Accepted in theattributes
parameter array ofGetPixelFormatAttribivARB
, andGetPixelFormatAttribfvARB
, and as a type in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
.- See Also:
- Constant Field Values
-
WGL_NO_ACCELERATION_ARB
public static final int WGL_NO_ACCELERATION_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_GENERIC_ACCELERATION_ARB
public static final int WGL_GENERIC_ACCELERATION_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_FULL_ACCELERATION_ARB
public static final int WGL_FULL_ACCELERATION_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_SWAP_EXCHANGE_ARB
public static final int WGL_SWAP_EXCHANGE_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_SWAP_COPY_ARB
public static final int WGL_SWAP_COPY_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_SWAP_UNDEFINED_ARB
public static final int WGL_SWAP_UNDEFINED_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_TYPE_RGBA_ARB
public static final int WGL_TYPE_RGBA_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
WGL_TYPE_COLORINDEX_ARB
public static final int WGL_TYPE_COLORINDEX_ARB
Accepted as a value in theattribIList
andattribFList
parameter arrays ofChoosePixelFormatARB
, and returned in thevalues
parameter array ofGetPixelFormatAttribivARB
andGetPixelFormatAttribfvARB
.- See Also:
- Constant Field Values
-
-
Method Detail
-
wglGetPixelFormatAttribivARB
public static boolean wglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, java.nio.IntBuffer attributes, java.nio.IntBuffer values)
- Parameters:
hdc
- the device context on which the pixel format is supportedpixelFormat
- an index that specifies the pixel formatlayerPlane
- the plane being queriedattributes
- an array of pixel format attribute identifiers which specify the attributes to be queried. One of:values
- a buffer into which the results of the query will be placed
-
wglGetPixelFormatAttribiARB
public static boolean wglGetPixelFormatAttribiARB(long hdc, int pixelFormat, int layerPlane, int attribute, java.nio.IntBuffer values)
- Parameters:
hdc
- the device context on which the pixel format is supportedpixelFormat
- an index that specifies the pixel formatlayerPlane
- the plane being queriedvalues
- a buffer into which the results of the query will be placed
-
wglGetPixelFormatAttribfvARB
public static boolean wglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, java.nio.IntBuffer attributes, java.nio.FloatBuffer values)
Float version ofGetPixelFormatAttribivARB
.- Parameters:
hdc
- the device context on which the pixel format is supportedpixelFormat
- an index that specifies the pixel formatlayerPlane
- the plane being queriedattributes
- an array of pixel format attribute identifiers which specify the attributes to be queriedvalues
- a buffer into which the results of the query will be placed
-
wglGetPixelFormatAttribfARB
public static boolean wglGetPixelFormatAttribfARB(long hdc, int pixelFormat, int layerPlane, int attribute, java.nio.FloatBuffer values)
Float version ofGetPixelFormatAttribivARB
.- Parameters:
hdc
- the device context on which the pixel format is supportedpixelFormat
- an index that specifies the pixel formatlayerPlane
- the plane being queriedvalues
- a buffer into which the results of the query will be placed
-
wglChoosePixelFormatARB
public static boolean wglChoosePixelFormatARB(long hdc, java.nio.IntBuffer attribIList, java.nio.FloatBuffer attribFList, java.nio.IntBuffer formats, java.nio.IntBuffer numFormats)
Selects from among all of the available pixel formats (including both accelerated and generic formats and non-displayable formats). This function accepts attributes for the main planes. A list of pixel formats that match the specified attributes is returned with the "best" pixel formats at the start of the list (order is device dependent).- Parameters:
hdc
- the device context on which the pixel format is supportedattribIList
- a list of attribute {type, value} pairs containing integer attribute values. One of:attribFList
- a list of attribute {type, value} pairs containing floating point attribute valuesformats
- an array of returned indices of the matching pixel formats. The best pixel formats (i.e. closest match and best format for the hardware) are at the head of the list.numFormats
- returns the number of matching formats
-
wglGetPixelFormatAttribivARB
public static boolean wglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, int[] values)
Array version of:GetPixelFormatAttribivARB
-
wglGetPixelFormatAttribfvARB
public static boolean wglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, float[] values)
Array version of:GetPixelFormatAttribfvARB
-
wglChoosePixelFormatARB
public static boolean wglChoosePixelFormatARB(long hdc, int[] attribIList, float[] attribFList, int[] formats, int[] numFormats)
Array version of:ChoosePixelFormatARB
-
-