code: public static JCGLPrimitives primitiveFromGL(
      final int code)
    {
      switch (code) {
        case GL.GL_LINES:
          return JCGLPrimitives.PRIMITIVE_LINES;
        case GL.GL_LINE_LOOP:
          return JCGLPrimitives.PRIMITIVE_LINE_LOOP;
        case GL.GL_POINTS:
          return JCGLPrimitives.PRIMITIVE_POINTS;
        case GL.GL_TRIANGLES:
          return JCGLPrimitives.PRIMITIVE_TRIANGLES;
        case GL.GL_TRIANGLE_STRIP:
          return JCGLPrimitives.PRIMITIVE_TRIANGLE_STRIP;
        default:
          throw new UnreachableCodeException();
      }
    }
docs: Convert primitives from GL constants.
  
  @param code The GL constant.
  
  @return The value.