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

org.lwjgl.opengles.NVReadBuffer Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengles;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;

/**
 * Native bindings to the NV_read_buffer extension.
 * 
 * 

Unextended OpenGL ES 2.0 only supports using ReadPixels to read from the default color buffer of the currently-bound framebuffer. However, it is useful * for debugging to be able to read from non-default color buffers. Particularly, when the NV_draw_buffers extension is supported, each framebuffer may * contain multiple color buffers. This extension provides a mechanism to select which color buffer to read from.

* *

The NV_read_buffer extension adds the command ReadBufferNV, which is used to select which color buffer of the currently-bound framebuffer to use as the * source for subsequent calls to ReadPixels, CopyTexImage2D, and CopyTexSubImage2D. If the system-provided framebuffer is bound, then ReadBufferNV * accepts value BACK. If a user-created FBO is bound, then ReadBufferNV accepts COLOR_ATTACHMENT0. Additionally, if the NV_draw_buffers extension is * supported, ReadBufferNV accepts COLOR_ATTACHMENTn_NV (n is 0 to 15).

*/ public class NVReadBuffer { /** Accepted by the {@code pname} parameter of GetIntegerv. */ public static final int GL_READ_BUFFER_NV = 0xC02; static { GLES.initialize(); } protected NVReadBuffer() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glReadBufferNV ); } // --- [ glReadBufferNV ] --- public static native void glReadBufferNV(@NativeType("GLenum") int mode); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy