本文整理了Java中com.bitfire.postprocessing.effects.Zoomer
类的一些代码示例,展示了Zoomer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zoomer
类的具体详情如下:
包路径:com.bitfire.postprocessing.effects.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));
}
内容来源于网络,如有侵权,请联系作者删除!