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("GLsizei") int imageSize, @NativeType("void const *") long 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.jglfw.JglfwGL20.java

License:Apache License

public void glCompressedTexSubImage2D(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, imageSize,
            (ByteBuffer) data);/*from   w w w .j  av a  2s.  c  o  m*/
}

From source file:playn.java.JavaGL20.java

License:Apache License

@Override
public void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height,
        int format, int data_imageSize, int data) {
    GL13.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, data_imageSize,
            data);/*from w w  w .  j  ava  2 s  . c o m*/
}

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, int h, long i) {
    GL13.glCompressedTexSubImage2D(a, b, c, d, e, f, g, h, i);
}