Example usage for org.lwjgl.opengl GL11 nglTexParameteriv

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

Introduction

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

Prototype

public static void nglTexParameteriv(int target, int pname, long params) 

Source Link

Document

Unsafe version of: #glTexParameteriv TexParameteriv

Usage

From source file:com.samrj.devil.gl.Texture.java

License:Open Source License

public final T swizzle(int r, int g, int b, int a) {
    if (!isBound())
        throw new IllegalStateException("Texture must be bound.");
    long address = MemStack.wrapi(r, g, b, a);
    GL11.nglTexParameteriv(target, GL33.GL_TEXTURE_SWIZZLE_RGBA, address);
    MemStack.pop();//from w  ww  . j  a v a 2  s. co m
    return getThis();
}