Example usage for org.lwjgl.opengl ARBFramebufferObject glFramebufferTexture2D

List of usage examples for org.lwjgl.opengl ARBFramebufferObject glFramebufferTexture2D

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBFramebufferObject glFramebufferTexture2D.

Prototype

public static void glFramebufferTexture2D(@NativeType("GLenum") int target,
        @NativeType("GLenum") int attachment, @NativeType("GLenum") int textarget,
        @NativeType("GLuint") int texture, @NativeType("GLint") int level) 

Source Link

Document

Attaches a level of a 2D texture object as a logical buffer to the currently bound framebuffer object.

Usage

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void setFramebufferTexture(int target, int attachment, int texture, int level) {
    ARBFramebufferObject.glFramebufferTexture2D(framebufferTargetToGL[target], attachmentToGL[attachment],
            GL11.GL_TEXTURE_2D, texture, level);
}