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 ( ) ; }
Convert faces to GL constants .