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

    switch (pname) {
    case LIGHT_MODEL_COLOR_CONTROL: // fall through
    case LIGHT_MODEL_LOCAL_VIEWER: // fall through
    case LIGHT_MODEL_TWO_SIDE: n = 1; break;
    case LIGHT_MODEL_AMBIENT: n = 4; break;
    }

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