Example usage for org.lwjgl.opengl ARBDrawBuffers glDrawBuffersARB

List of usage examples for org.lwjgl.opengl ARBDrawBuffers glDrawBuffersARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBDrawBuffers glDrawBuffersARB.

Prototype

public static void glDrawBuffersARB(@NativeType("GLenum const *") int[] bufs) 

Source Link

Document

Array version of: #glDrawBuffersARB DrawBuffersARB

Usage

From source file:com.ardor3d.renderer.lwjgl.LwjglTextureRenderer.java

License:Open Source License

private void setDrawBuffers(final int maxEntry) {
    if (maxEntry <= 1) {
        setDrawBuffer(maxEntry != 0 ? EXTFramebufferObject.GL_COLOR_ATTACHMENT0_EXT : GL11.GL_NONE);
    } else {/*from  w  w w .  j a v a  2 s.c o m*/
        // We should only get to this point if we support ARBDrawBuffers.
        _attachBuffer.clear();
        _attachBuffer.limit(maxEntry);
        ARBDrawBuffers.glDrawBuffersARB(_attachBuffer);
    }
}