Class ScreenTransitioningEffect
java.lang.Object
com.crashinvaders.vfx.effects.AbstractVfxEffect
com.crashinvaders.vfx.effects.ShaderVfxEffect
com.csse3200.game.rendering.effects.ScreenTransitioningEffect
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,com.crashinvaders.vfx.effects.ChainVfxEffect,com.crashinvaders.vfx.effects.VfxEffect
public class ScreenTransitioningEffect
extends com.crashinvaders.vfx.effects.ShaderVfxEffect
implements com.crashinvaders.vfx.effects.ChainVfxEffect
-
Field Summary
Fields inherited from class com.crashinvaders.vfx.effects.ShaderVfxEffect
program, TEXTURE_HANDLE0, TEXTURE_HANDLE1, TEXTURE_HANDLE2, TEXTURE_HANDLE3, TEXTURE_HANDLE4, TEXTURE_HANDLE5, TEXTURE_HANDLE6, TEXTURE_HANDLE7 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatfloatvoidrebind()voidrender(com.crashinvaders.vfx.VfxRenderContext context, com.crashinvaders.vfx.framebuffer.VfxPingPongWrapper buffers) voidsetCenter(float x, float y) Specify the center, in normalized screen coordinates.voidsetProgress(float progress) Sets the progress of this effectvoidsetSmoothness(float smoothness) Sets the smoothness of this effect (used in smoothstep function)Methods inherited from class com.crashinvaders.vfx.effects.ShaderVfxEffect
dispose, getProgram, renderShader, resize, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, updateMethods inherited from class com.crashinvaders.vfx.effects.AbstractVfxEffect
isDisabled, setDisabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.badlogic.gdx.utils.Disposable
disposeMethods inherited from interface com.crashinvaders.vfx.effects.VfxEffect
isDisabled, resize, setDisabled, update
-
Constructor Details
-
ScreenTransitioningEffect
public ScreenTransitioningEffect()
-
-
Method Details
-
rebind
public void rebind()- Specified by:
rebindin interfacecom.crashinvaders.vfx.effects.VfxEffect- Overrides:
rebindin classcom.crashinvaders.vfx.effects.ShaderVfxEffect
-
render
public void render(com.crashinvaders.vfx.VfxRenderContext context, com.crashinvaders.vfx.framebuffer.VfxPingPongWrapper buffers) - Specified by:
renderin interfacecom.crashinvaders.vfx.effects.ChainVfxEffect
-
setProgress
public void setProgress(float progress) Sets the progress of this effect- Parameters:
progress- The new progress value
-
setSmoothness
public void setSmoothness(float smoothness) Sets the smoothness of this effect (used in smoothstep function)- Parameters:
smoothness- the new smoothness value
-
setCenter
public void setCenter(float x, float y) Specify the center, in normalized screen coordinates. -
getCenterX
public float getCenterX()- Returns:
- the x coordinate for the center of the effect
-
getCenterY
public float getCenterY()- Returns:
- the y coordinate for the center of the effect
-
getProgress
public float getProgress()- Returns:
- The current progress
-
getSmoothness
public float getSmoothness()- Returns:
- the effect smoothness value
-