List of usage examples for org.lwjgl.opengl GL13 glCompressedTexImage2D
public static void glCompressedTexImage2D(@NativeType("GLenum") int target, @NativeType("GLint") int level, @NativeType("GLenum") int internalformat, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLint") int border, @Nullable @NativeType("void const *") ByteBuffer data)
From source file:ar.com.quark.backend.lwjgl.opengl.DesktopGLES20.java
License:Apache License
/** * {@inheritDoc}//from w ww. j a v a 2 s.com */ @Override public void glCompressedTexImage2D(int target, int level, int internal, int width, int height, int border, Int8Array data) { GL13.glCompressedTexImage2D(target, level, internal, width, height, border, data.data()); }
From source file:com.badlogic.gdx.backends.lwjgl.LwjglGL10.java
License:Apache License
public final void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, 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.glCompressedTexImage2D(target, level, internalformat, width, height, border, (ByteBuffer) data); }
From source file:com.badlogic.gdx.backends.lwjgl.LwjglGL20.java
License:Apache License
public void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { if (data instanceof ByteBuffer) { GL13.glCompressedTexImage2D(target, level, internalformat, width, height, border, (ByteBuffer) data); } else {/*from w w w. j a v a2s . c om*/ throw new GdxRuntimeException( "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer instead."); } }
From source file:io.root.gfx.glutils.GL.java
License:Apache License
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { if (data instanceof ByteBuffer) { GL13.glCompressedTexImage2D(target, level, internalformat, width, height, border, (ByteBuffer) data); } else {/*w ww . j av a 2 s .c o m*/ throw new NullPointerException( "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer instead."); } }
From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java
License:Open Source License
@Override public void setCompressedTexImage(int level, int internalFormat, int width, int height, int compressedSize, Buffer buffer) {// w w w . ja v a 2 s. co m GL13.glCompressedTexImage2D(GL11.GL_TEXTURE_2D, level, textureInternalFormatToGL[internalFormat], width, height, 0, getDirectByteBuffer(compressedSize, buffer, 0)); }
From source file:loon.core.graphics.opengl.LWjglGL10.java
License:Apache License
public final void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { if (!(data instanceof ByteBuffer)) { throw new RuntimeException( "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer. Blame LWJGL"); }// ww w.j av a 2 s .c o m GL13.glCompressedTexImage2D(target, level, internalformat, width, height, border, (ByteBuffer) data); }
From source file:org.oscim.gdx.LwjglGL20.java
License:Apache License
public void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { if (data instanceof ByteBuffer) { GL13.glCompressedTexImage2D(target, level, internalformat, width, height, border, (ByteBuffer) data); } else {//from www. j a v a 2s . co m throw new GdxRuntimeException( "Can't use " + data.getClass().getName() + " with this method. Use ByteBuffer instead."); } }
From source file:processing.lwjgl.PLWJGL.java
License:Open Source License
public void compressedTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int imageSize, Buffer data) { GL13.glCompressedTexImage2D(target, level, internalFormat, width, height, border, (ByteBuffer) data); }
From source file:processing.opengl.PLWJGL.java
License:Open Source License
@Override public void compressedTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int imageSize, Buffer data) { GL13.glCompressedTexImage2D(target, level, internalFormat, width, height, border, (ByteBuffer) data); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glCompressedTexImage2D(int a, int b, int c, int d, int e, int f, ByteBuffer g) { GL13.glCompressedTexImage2D(a, b, c, d, e, f, g); }