To do this operation in unextended OpenGL, the app must use ReadPixels of DEPTH_COMPONENT data, followed by DrawPixels of RGBA
data. However, this typically will not provide adequate performance.
This extension provides a way to copy the depth data directly into the color buffer, by adding two new options for the "type" parameter of
CopyPixels: DEPTH_STENCIL_TO_RGBA_NV and DEPTH_STENCIL_TO_BGRA_NV.
Requires NV_packed_depth_stencil.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_DEPTH_STENCIL_TO_BGRA_NV
Accepted by the |
| public static final int | GL_DEPTH_STENCIL_TO_RGBA_NV
Accepted by the |
| Access | Constructor and Description |
|---|---|
| private |
| GL_DEPTH_STENCIL_TO_BGRA_NV | back to summary |
|---|---|
| public static final int GL_DEPTH_STENCIL_TO_BGRA_NV Accepted by the | |
| GL_DEPTH_STENCIL_TO_RGBA_NV | back to summary |
|---|---|
| public static final int GL_DEPTH_STENCIL_TO_RGBA_NV Accepted by the | |
| NVCopyDepthToColor | back to summary |
|---|---|
| private NVCopyDepthToColor() | |