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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    float
     
    float
     
    void
     
    void
    render(com.crashinvaders.vfx.VfxRenderContext context, com.crashinvaders.vfx.framebuffer.VfxPingPongWrapper buffers)
     
    void
    setCenter(float x, float y)
    Specify the center, in normalized screen coordinates.
    void
    setProgress(float progress)
    Sets the progress of this effect
    void
    setSmoothness(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, update

    Methods inherited from class com.crashinvaders.vfx.effects.AbstractVfxEffect

    isDisabled, setDisabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.badlogic.gdx.utils.Disposable

    dispose

    Methods 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:
      rebind in interface com.crashinvaders.vfx.effects.VfxEffect
      Overrides:
      rebind in class com.crashinvaders.vfx.effects.ShaderVfxEffect
    • render

      public void render(com.crashinvaders.vfx.VfxRenderContext context, com.crashinvaders.vfx.framebuffer.VfxPingPongWrapper buffers)
      Specified by:
      render in interface com.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