Example usage for org.lwjgl.opengl GL11 glCopyTexImage2D

List of usage examples for org.lwjgl.opengl GL11 glCopyTexImage2D

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 glCopyTexImage2D.

Prototype

public static void glCopyTexImage2D(@NativeType("GLenum") int target, @NativeType("GLint") int level,
        @NativeType("GLenum") int internalFormat, @NativeType("GLint") int x, @NativeType("GLint") int y,
        @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLint") int border) 

Source Link

Document

Defines a two-dimensional texel array in exactly the manner of #glTexImage2D TexImage2D , except that the image data are taken from the framebuffer rather than from client memory.

Usage

From source file:processing.opengl.PLWJGL.java

License:Open Source License

@Override
public void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height,
        int border) {
    GL11.glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glCopyTexImage2D(int a, int b, int c, int d, int e, int f, int g, int h) {
    GL11.glCopyTexImage2D(a, b, c, d, e, f, g, h);
}

From source file:zildo.fwk.opengl.Utils.java

License:Open Source License

public static void copyScreenToTexture(int p_texId, int p_sizeX, int p_sizeY) {
    GL11.glBindTexture(GL11.GL_TEXTURE_2D, p_texId);

    GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
    GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);

    GL11.glCopyTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, 0, 0, p_sizeX, p_sizeY, 0);
}