All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengl.NVCopyDepthToColor Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

/**
 * Some applications, especially systems for distributed OpenGL rendering, would like to have a fast way of copying their depth buffer into a color
 * buffer; for example, this allows the depth buffer to be scanned out, allowing downstream compositing operations.
 * 
 * 

To do this operation in unextended OpenGL, the app must use {@link GL11#glReadPixels ReadPixels} of {@link GL11#GL_DEPTH_COMPONENT DEPTH_COMPONENT} data, followed by {@link GL11#glDrawPixels DrawPixels} of {@link GL11#GL_RGBA 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 * {@link GL11#glCopyPixels CopyPixels}: {@link #GL_DEPTH_STENCIL_TO_RGBA_NV DEPTH_STENCIL_TO_RGBA_NV} and {@link #GL_DEPTH_STENCIL_TO_BGRA_NV DEPTH_STENCIL_TO_BGRA_NV}.

* *

Requires {@link NVPackedDepthStencil NV_packed_depth_stencil}.

*/ public final class NVCopyDepthToColor { /** Accepted by the {@code type} parameter of CopyPixels. */ public static final int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E, GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F; private NVCopyDepthToColor() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy