Export to GitHub

glextensions - WGL_ATI_pixel_format_float.wiki


Contents

  • Dependencies
  • Overview
  • New Procedures and Functions
  • New Tokens
  • Errors
  • New State
  • New Implementation Dependent State

Dependencies

WGL_ARB_pixel_format is required.

This extension is written against the OpenGL 1.3 Specification.

Overview

This extension adds pixel formats with floating-point RGBA color components.

The size of each float components is specified using the same WGL_RED_BITS_ARB, WGL_GREEN_BITS_ARB, WGL_BLUE_BITS_ARB and WGL_ALPHA_BITS_ARB pixel format attributes that are used for defining the size of fixed-point components. 32 bit floating- point components are in the standard IEEE float format. 16 bit floating-point components have 1 sign bit, 5 exponent bits, and 10 mantissa bits.

In standard OpenGL RGBA color components are normally clamped to the range [0,1]. The color components of a float buffer are clamped to the limits of the range representable by their format.

New Procedures and Functions

None

New Tokens

Accepted by the

<pname>

parameters of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:

|RGBA_FLOAT_MODE_ATI | 0x8820| |:----------------------|:------| |COLOR_CLEAR_UNCLAMPED_VALUE_ATI | 0x8835|

Accepted as a value in the

<piAttribIList>

and

<pfAttribFList>

parameter arrays of wglChoosePixelFormatARB, and returned in the

<piValues>

parameter array of wglGetPixelFormatAttribivARB, and the

<pfValues>

parameter array of wglGetPixelFormatAttribfvARB:

|WGL_TYPE_RGBA_FLOAT_ATI |0x21A0| |:----------------------------|:-----|

Errors

None

New State

| Get Value | Type | Get Command | Initial Value | Description | |:--------------|:---------|:-----------------|:------------------|:----------------| |COLOR_CLEAR_VALUE | C | GetFloatv |0,0,0,0 | Color buffer clear value (RGBA mode) clamped to [0,1]| |COLOR_CLEAR_UNCLAMPED_VALUE_ATI |4 x R |GetFloatv |0,0,0,0 |Color buffer clear value (RGBA mode) unclamped |

| Get Value | Type | Get Command | Minimum Value | Description | |:--------------|:---------|:----------------|:------------------|:----------------| |RGBA_FLOAT_MODE_ATI | B | GetBooleanv | - | True if RGBA components are floats|

New Implementation Dependent State

None