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

    switch (pname) {
    case FOG_MODE:              // fall through
    case FOG_DENSITY:           // fall through
    case FOG_START:             // fall through
    case FOG_END:               // fall through
    case FOG_INDEX: n = 1; break;      
    case FOG_COLOR: n = 4; break;
    }
    
    RequestOutputStream o = display.out;
    synchronized (o) {
      begin_render_request (o, 81, 8 + 4 * n);
      o.write_int32 (pname);
      for (int i = 0; i < n; i++)
        o.write_float (params [i]);
    }
  }