com.io7m.jcanephora.core.api

## Interface JCGLCullingType

-     public interface JCGLCullingType

  OpenGL face culling.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cullingDisable()` Disable face culling.
    `void` | `cullingEnable(JCGLFaceSelection faces, JCGLFaceWindingOrder order)` Enable face culling for `faces` and specify that front faces are specified by giving vertices in the winding order specified by `order`.
    `boolean` | `cullingIsEnabled()`

- - ### Method Detail

    - #### cullingDisable

          void cullingDisable()
                       throws JCGLException

      Disable face culling.
      Throws:
        `JCGLException` - Iff an OpenGL error occurs

    - #### cullingEnable

          void cullingEnable(JCGLFaceSelection faces,
                             JCGLFaceWindingOrder order)
                      throws JCGLException

      Enable face culling for `faces` and specify that front faces are specified by giving vertices in the winding order specified by `order`. The OpenGL defaults are `FACE_BACK` and `FRONT_FACE_COUNTER_CLOCKWISE` for `faces` and `order` respectively.
      Parameters:
        `faces` - The faces to cull
        `order` - The order of vertices in front-facing faces
      Throws:
        `JCGLException` - Iff an OpenGL error occurs

    - #### cullingIsEnabled

          boolean cullingIsEnabled()
                            throws JCGLException

      Returns:
        `true` iff culling is enabled.
      Throws:
        `JCGLException` - Iff an OpenGL error occurs

Copyright © 2016 <code@io7m.com> http://io7m.com