Example usage for org.lwjgl.opengl GL30 GL_FRAMEBUFFER_SRGB

List of usage examples for org.lwjgl.opengl GL30 GL_FRAMEBUFFER_SRGB

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL30 GL_FRAMEBUFFER_SRGB.

Prototype

int GL_FRAMEBUFFER_SRGB

To view the source code for org.lwjgl.opengl GL30 GL_FRAMEBUFFER_SRGB.

Click Source Link

Document

Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Usage

From source file:com.runescape.client.revised.client.lwjgl.RenderUtilities.java

License:Open Source License

public static void initializeGraphics() {
    GL11.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
    GL11.glFrontFace(GL11.GL_CW);//from w w w  .  j  av  a  2s . c om
    GL11.glCullFace(GL11.GL_BACK);
    GL11.glEnable(GL11.GL_CULL_FACE);
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    GL11.glEnable(GL30.GL_FRAMEBUFFER_SRGB);
    // TODO: Depth clamp
}