Example usage for org.lwjgl.opengl GL13 glCompressedTexSubImage2D

List of usage examples for org.lwjgl.opengl GL13 glCompressedTexSubImage2D

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL13 glCompressedTexSubImage2D.

Prototype

public static void glCompressedTexSubImage2D(@NativeType("GLenum") int target, @NativeType("GLint") int level,
        @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLsizei") int width,
        @NativeType("GLsizei") int height, @NativeType("GLenum") int format,
        @NativeType("void const *") ByteBuffer data) 

Source Link

Document

Respecifies only a rectangular subregion of an existing 2D texel array, with incoming data stored in a specific compressed image format.

Usage

From source file:com.badlogic.gdx.backends.lwjgl.LwjglGL10.java

License:Apache License

public final void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width,
        int height, int format, int imageSize, Buffer data) {
    if (!(data instanceof ByteBuffer))
        throw new GdxRuntimeException(
                "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer. Blame LWJGL");
    GL13.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (ByteBuffer) data);
}

From source file:loon.core.graphics.opengl.LWjglGL10.java

License:Apache License

public final void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width,
        int height, int format, int imageSize, Buffer data) {
    if (!(data instanceof ByteBuffer))
        throw new RuntimeException(
                "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer. Blame LWJGL");
    GL13.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (ByteBuffer) data);
}

From source file:processing.lwjgl.PLWJGL.java

License:Open Source License

public void compressedTexSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height,
        int format, int imageSize, Buffer data) {
    GL13.glCompressedTexSubImage2D(target, level, xOffset, yOffset, width, height, format, (ByteBuffer) data);
}

From source file:processing.opengl.PLWJGL.java

License:Open Source License

@Override
public void compressedTexSubImage2D(int target, int level, int xOffset, int yOffset, int width, int height,
        int format, int imageSize, Buffer data) {
    GL13.glCompressedTexSubImage2D(target, level, xOffset, yOffset, width, height, format, (ByteBuffer) data);
}

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

License:Open Source License

public static void glCompressedTexSubImage2D(int a, int b, int c, int d, int e, int f, int g, ByteBuffer h) {
    GL13.glCompressedTexSubImage2D(a, b, c, d, e, f, g, h);
}