Example usage for org.lwjgl.opengl GL destroy

List of usage examples for org.lwjgl.opengl GL destroy

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL destroy.

Prototype

public static void destroy() 

Source Link

Document

Unloads the OpenGL native library.

Usage

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

License:Open Source License

/**
 * Destroys DevilGL and releases all associated resources.
 *///from  ww w  .ja  v a2s.c  om
public static void destroy() {
    checkState();
    init = false;
    objects = null;
    VAO.terminate();

    boundProgram = null;
    readFBO = null;
    drawFBO = null;

    DGLException.terminate();

    thread = null;
    capabilities = null;

    GL.destroy();
}