Example usage for org.lwjgl.opengl GL11 glFrontFace

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

Introduction

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

Prototype

public static void glFrontFace(@NativeType("GLenum") int dir) 

Source Link

Document

The first step of polygon rasterization is to determine if the polygon is back-facing or front-facing.

Usage

From source file:processing.opengl.PLWJGL.java

License:Open Source License

@Override
public void frontFace(int dir) {
    GL11.glFrontFace(dir);
}

From source file:tectonicus.rasteriser.lwjgl.LwjglRasteriser.java

License:BSD License

@Override
public void resetState() {
    GL11.glColorMask(true, true, true, true);

    GL11.glDepthFunc(GL11.GL_LEQUAL);/*ww  w. j  av a2s .com*/

    GL11.glEnable(GL11.GL_DEPTH_TEST);
    GL11.glEnable(GL11.GL_CULL_FACE);
    GL11.glCullFace(GL11.GL_BACK);
    GL11.glFrontFace(GL11.GL_CW);

    GL11.glDisable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
}

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

License:Open Source License

public static void glFrontFace(int a) {
    GL11.glFrontFace(a);
}