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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | WGL_ACCELERATION_ARB
Accepted in the |
| public static final int | WGL_ACCUM_ALPHA_BITS_ARB
Accepted in the |
| public static final int | WGL_ACCUM_BITS_ARB
Accepted in the |
| public static final int | WGL_ACCUM_BLUE_BITS_ARB
Accepted in the |
| public static final int | WGL_ACCUM_GREEN_BITS_ARB
Accepted in the |
| public static final int | WGL_ACCUM_RED_BITS_ARB
Accepted in the |
| public static final int | WGL_ALPHA_BITS_ARB
Accepted in the |
| public static final int | WGL_ALPHA_SHIFT_ARB
Accepted in the |
| public static final int | WGL_AUX_BUFFERS_ARB
Accepted in the |
| public static final int | WGL_BLUE_BITS_ARB
Accepted in the |
| public static final int | WGL_BLUE_SHIFT_ARB
Accepted in the |
| public static final int | WGL_COLOR_BITS_ARB
Accepted in the |
| public static final int | WGL_DEPTH_BITS_ARB
Accepted in the |
| public static final int | WGL_DOUBLE_BUFFER_ARB
Accepted in the |
| public static final int | WGL_DRAW_TO_BITMAP_ARB
Accepted in the |
| public static final int | WGL_DRAW_TO_WINDOW_ARB
Accepted in the |
| public static final int | WGL_FULL_ACCELERATION_ARB
Accepted as a value in the |
| public static final int | WGL_GENERIC_ACCELERATION_ARB
Accepted as a value in the |
| public static final int | WGL_GREEN_BITS_ARB
Accepted in the |
| public static final int | WGL_GREEN_SHIFT_ARB
Accepted in the |
| public static final int | WGL_NEED_PALETTE_ARB
Accepted in the |
| public static final int | WGL_NEED_SYSTEM_PALETTE_ARB
Accepted in the |
| public static final int | WGL_NO_ACCELERATION_ARB
Accepted as a value in the |
| public static final int | WGL_NUMBER_OVERLAYS_ARB
Accepted in the |
| public static final int | WGL_NUMBER_PIXEL_FORMATS_ARB
Accepted in the |
| public static final int | WGL_NUMBER_UNDERLAYS_ARB
Accepted in the |
| public static final int | WGL_PIXEL_TYPE_ARB
Accepted in the |
| public static final int | WGL_RED_BITS_ARB
Accepted in the |
| public static final int | WGL_RED_SHIFT_ARB
Accepted in the |
| public static final int | WGL_SHARE_ACCUM_ARB
Accepted in the |
| public static final int | WGL_SHARE_DEPTH_ARB
Accepted in the |
| public static final int | WGL_SHARE_STENCIL_ARB
Accepted in the |
| public static final int | WGL_STENCIL_BITS_ARB
Accepted in the |
| public static final int | WGL_STEREO_ARB
Accepted in the |
| public static final int | WGL_SUPPORT_GDI_ARB
Accepted in the |
| public static final int | WGL_SUPPORT_OPENGL_ARB
Accepted in the |
| public static final int | WGL_SWAP_COPY_ARB
Accepted as a value in the |
| public static final int | WGL_SWAP_EXCHANGE_ARB
Accepted as a value in the |
| public static final int | WGL_SWAP_LAYER_BUFFERS_ARB
Accepted in the |
| public static final int | WGL_SWAP_METHOD_ARB
Accepted in the |
| public static final int | WGL_SWAP_UNDEFINED_ARB
Accepted as a value in the |
| public static final int | WGL_TRANSPARENT_ALPHA_VALUE_ARB
Accepted in the |
| public static final int | WGL_TRANSPARENT_ARB
Accepted in the |
| public static final int | WGL_TRANSPARENT_BLUE_VALUE_ARB
Accepted in the |
| public static final int | WGL_TRANSPARENT_GREEN_VALUE_ARB
Accepted in the |
| public static final int | WGL_TRANSPARENT_INDEX_VALUE_ARB
Accepted in the |
| public static final int | WGL_TRANSPARENT_RED_VALUE_ARB
Accepted in the |
| public static final int | WGL_TYPE_COLORINDEX_ARB
Accepted as a value in the |
| public static final int | WGL_TYPE_RGBA_ARB
Accepted as a value in the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nwglChoosePixelFormatARB(long hdc, long attribIList, long attribFList, int
the number of attributes being queried maxFormats, long formats, long numFormats)Unsafe version of: |
| public static int | nwglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, int
the number of attributes being queried n, long attributes, long values)Unsafe version of: |
| public static int | nwglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, int
the number of attributes being queried n, long attributes, long values)Unsafe version of: |
| public static boolean | wglChoosePixelFormatARB(long
the device context on which the pixel format is supported hdc, IntBuffer a list of attribute {type, value} pairs containing integer attribute values. One of: attribIList, FloatBuffer a list of attribute {type, value} pairs containing floating point attribute values attribFList, IntBuffer 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. formats, IntBuffer returns the number of matching formats numFormats)Selects from among all of the available pixel formats (including both accelerated and generic formats and non-displayable formats). |
| public static boolean | wglChoosePixelFormatARB(long hdc, int[] attribIList, float[] attribFList, int[] formats, int[] numFormats)
Array version of: |
| public static boolean | wglGetPixelFormatAttribfARB(long
the device context on which the pixel format is supported hdc, int an index that specifies the pixel format pixelFormat, int the plane being queried layerPlane, int attribute, FloatBuffer a buffer into which the results of the query will be placed values)Float version of |
| public static boolean | wglGetPixelFormatAttribfvARB(long
the device context on which the pixel format is supported hdc, int an index that specifies the pixel format pixelFormat, int the plane being queried layerPlane, IntBuffer an array of pixel format attribute identifiers which specify the attributes to be queried attributes, FloatBuffer a buffer into which the results of the query will be placed values)Float version of |
| public static boolean | wglGetPixelFormatAttribfvARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, float[] values)
Array version of: |
| public static boolean | wglGetPixelFormatAttribiARB(long
the device context on which the pixel format is supported hdc, int an index that specifies the pixel format pixelFormat, int the plane being queried layerPlane, int attribute, IntBuffer a buffer into which the results of the query will be placed values)
|
| public static boolean | wglGetPixelFormatAttribivARB(long
the device context on which the pixel format is supported hdc, int an index that specifies the pixel format pixelFormat, int the plane being queried layerPlane, IntBuffer an array of pixel format attribute identifiers which specify the attributes to be queried. One of: attributes, IntBuffer a buffer into which the results of the query will be placed values)
|
| public static boolean | wglGetPixelFormatAttribivARB(long hdc, int pixelFormat, int layerPlane, int[] attributes, int[] values)
Array version of: |