Example usage for org.lwjgl.opengl EXTDirectStateAccess glTextureParameteriEXT

List of usage examples for org.lwjgl.opengl EXTDirectStateAccess glTextureParameteriEXT

Introduction

In this page you can find the example usage for org.lwjgl.opengl EXTDirectStateAccess glTextureParameteriEXT.

Prototype

public static native void glTextureParameteriEXT(@NativeType("GLuint") int texture,
            @NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint") int param);

Source Link

Usage

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

License:Open Source License

public static void glTexParameteri(int texture, int target, int key, int value) {
    if (GLContext.getCapabilities().GL_EXT_direct_state_access) {
        EXTDirectStateAccess.glTextureParameteriEXT(texture, target, key, value);
    } else {/* www  .  j  a v a2s.  co m*/
        int pre = glGetInteger(binding(target));
        glBindTexture(target, texture);
        GL.glTexParameteri(target, key, value);
        glBindTexture(target, pre);
    }
}