code: public static int faceSelectionToGL(
      final JCGLFaceSelection faces)
    {
      switch (faces) {
        case FACE_BACK:
          return GL11.GL_BACK;
        case FACE_FRONT:
          return GL11.GL_FRONT;
        case FACE_FRONT_AND_BACK:
          return GL11.GL_FRONT_AND_BACK;
      }
  
      throw new UnreachableCodeException();
    }
docs: Convert faces to GL constants.
  
  @param faces The faces.
  
  @return The resulting GL constant.