Example usage for org.lwjgl.opengl GL20 glUseProgram

List of usage examples for org.lwjgl.opengl GL20 glUseProgram

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL20 glUseProgram.

Prototype

public static void glUseProgram(@NativeType("GLuint") int program) 

Source Link

Document

Installs a program object as part of current rendering state.

Usage

From source file:wrath.client.graphics.ShaderProgram.java

License:Open Source License

/**
 * Unbinds any shader program currently being used by OpenGL.
 */
public static void unbindShaders() {
    GL20.glUseProgram(0);
}