code: public static JCGLPolygonMode polygonModeFromGL(
      final int g)
    {
      switch (g) {
        case GL2GL3.GL_FILL:
          return JCGLPolygonMode.POLYGON_FILL;
        case GL2GL3.GL_LINE:
          return JCGLPolygonMode.POLYGON_LINES;
        case GL2GL3.GL_POINT:
          return JCGLPolygonMode.POLYGON_POINTS;
        default:
          throw new UnreachableCodeException();
      }
    }
docs: Convert polygon modes from GL constants.
  
  @param g The GL constant.
  
  @return The value.