*/
  public void tex_geniv (int coord, int pname, int [] params) {
    int n = 0;

    switch (pname) {
    case TEXTURE_GEN_MODE: n = 1; break;
    case OBJECT_PLANE:          // fall through
    case EYE_PLANE: n = 4; break;
    }

    RequestOutputStream o = display.out;
    synchronized (o) {
      begin_render_request (o, 120, 12 + 4 * n);
      o.write_int32 (coord);
      o.write_int32 (pname);
      for (int i = 0; i < n; i++)
        o.write_int32 (params [i]);
    }
  }