Example usage for org.lwjgl.opengl GL11 glGetTexParameteri

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

Introduction

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

Prototype

@NativeType("void")
public static int glGetTexParameteri(@NativeType("GLenum") int target, @NativeType("GLenum") int pname) 

Source Link

Document

Place integer information about texture parameter pname for the specified target into params .

Usage

From source file:de.kitsunealex.projectx.client.render.block.RenderHelper.java

License:Open Source License

protected int[] disableMipmap() {
    int min = GL11.glGetTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER);
    int mag = GL11.glGetTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER);
    GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
    GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
    return new int[] { min, mag };
}

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

License:Open Source License

public static int glGetTexParameteri(int a, int b) {
    return GL11.glGetTexParameteri(a, b);
}