Example usage for org.lwjgl.opengl GL20 nglDrawBuffers

List of usage examples for org.lwjgl.opengl GL20 nglDrawBuffers

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL20 nglDrawBuffers.

Prototype

public static void nglDrawBuffers(int n, long bufs) 

Source Link

Document

Unsafe version of: #glDrawBuffers DrawBuffers

Usage

From source file:com.samrj.devil.gl.FBO.java

License:Open Source License

/**
 * Enables each of the given color buffer attachments for this frame buffer.
 * /*from w  w w.j a  v a2  s  . co m*/
 * @param a An array of draw buffers.
 */
public void drawBuffers(int... a) {
    ensureBound();
    long address = MemStack.wrapi(a);
    GL20.nglDrawBuffers(a.length, address);
    MemStack.pop();
}