gpt4 book ai didi

com.bitfire.postprocessing.effects.Zoomer类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:51:08 26 4
gpt4 key购买 nike

本文整理了Java中com.bitfire.postprocessing.effects.Zoomer类的一些代码示例,展示了Zoomer类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zoomer类的具体详情如下:
包路径:com.bitfire.postprocessing.effects.Zoomer
类名称:Zoomer

Zoomer介绍

[英]Implements a zooming effect: either a radial blur filter or a zoom filter is used.
[中]实现缩放效果:使用径向模糊过滤器或缩放过滤器。

代码示例

代码示例来源:origin: dingjibang/GDX-RPG

/** Specify the zoom origin, in screen coordinates. */
public void setOrigin (Vector2 o) {
  setOrigin(o.x, o.y);
}

代码示例来源:origin: manuelbua/libgdx-contribs

/** Creating a Zoomer without any parameter will use plain simple zooming */
public Zoomer (int viewportWidth, int viewportHeight) {
  setup(viewportWidth, viewportHeight, null);
}

代码示例来源:origin: manuelbua/uracer-kotd

private void autoEnableZoomBlur (float blurStrength) {
  boolean enabled = zoom.isEnabled();
  boolean isZero = AMath.isZero(blurStrength);
  if (isZero && enabled) {
    zoom.setEnabled(false);
  } else if (!isZero && !enabled) {
    zoom.setEnabled(true);
  }
}

代码示例来源:origin: manuelbua/uracer-kotd

zoom.setEnabled(true);
zoom.setOrigin(playerScreenPos);
zoom.setBlurStrength(0);
zoom.setZoom(1);
zoomBlurStrengthFactor.reset(0, true);

代码示例来源:origin: manuelbua/uracer-kotd

@Override
  public void render (FrameBuffer src, FrameBuffer dest) {
    restoreViewport(dest);
    if (doRadial) {
      radialBlur.setInput(src).setOutput(dest).render();
    } else {
      zoom.setInput(src).setOutput(dest).render();
    }
  }
}

代码示例来源:origin: manuelbua/uracer-kotd

if (zoom.isEnabled()) {
  zoom.setBlurStrength(f);
  if (hasPlayer) {
    zoom.setOrigin(playerScreenPos);

代码示例来源:origin: manuelbua/uracer-kotd

Zoomer z = new Zoomer(refW, refH, rbq);
addEffect(Effects.Zoomer.name, z);

代码示例来源:origin: manuelbua/libgdx-contribs

@Override
  public void render (FrameBuffer src, FrameBuffer dest) {
    restoreViewport(dest);
    if (doRadial) {
      radialBlur.setInput(src).setOutput(dest).render();
    } else {
      zoom.setInput(src).setOutput(dest).render();
    }
  }
}

代码示例来源:origin: dingjibang/GDX-RPG

/** Creating a Zoomer without any parameter will use plain simple zooming */
public Zoomer (int viewportWidth, int viewportHeight) {
  setup(viewportWidth, viewportHeight, null);
}

代码示例来源:origin: manuelbua/libgdx-contribs

/** Specify the zoom origin, in screen coordinates. */
public void setOrigin (Vector2 o) {
  setOrigin(o.x, o.y);
}

代码示例来源:origin: dingjibang/GDX-RPG

@Override
  public void render (FrameBuffer src, FrameBuffer dest) {
    restoreViewport(dest);
    if (doRadial) {
      radialBlur.setInput(src).setOutput(dest).render();
    } else {
      zoom.setInput(src).setOutput(dest).render();
    }
  }
}

代码示例来源:origin: manuelbua/uracer-kotd

/** Creating a Zoomer without any parameter will use plain simple zooming */
public Zoomer (int viewportWidth, int viewportHeight) {
  setup(viewportWidth, viewportHeight, null);
}

代码示例来源:origin: manuelbua/uracer-kotd

/** Specify the zoom origin, in screen coordinates. */
public void setOrigin (Vector2 o) {
  setOrigin(o.x, o.y);
}

代码示例来源:origin: dingjibang/GDX-RPG

/** Creating a Zoomer specifying the radial blur quality will enable radial blur */
public Zoomer (int viewportWidth, int viewportHeight, RadialBlur.Quality quality) {
  setup(viewportWidth, viewportHeight, new RadialBlur(quality));
}

代码示例来源:origin: manuelbua/uracer-kotd

/** Creating a Zoomer specifying the radial blur quality will enable radial blur */
public Zoomer (int viewportWidth, int viewportHeight, RadialBlur.Quality quality) {
  setup(viewportWidth, viewportHeight, new RadialBlur(quality));
}

代码示例来源:origin: manuelbua/libgdx-contribs

/** Creating a Zoomer specifying the radial blur quality will enable radial blur */
public Zoomer (int viewportWidth, int viewportHeight, RadialBlur.Quality quality) {
  setup(viewportWidth, viewportHeight, new RadialBlur(quality));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com