*/
  public void tex_parameterfv (int target, int pname, 
    float [] params) {

    int n = 0;
    
    switch (pname) {    
    case TEXTURE_MIN_FILTER:    // fall through
    case TEXTURE_MAG_FILTER:    // fall through
    case TEXTURE_WRAP_S:        // fall through
    case TEXTURE_WRAP_T:        // fall through
    case TEXTURE_PRIORITY: n = 1; break;
    case TEXTURE_BORDER_COLOR: n = 4; break;
    }

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