C# Class Nez.TextureWipeTransition

uses a texture (transitionTexture) to control a wipe animation. the blue channel of the texture determines if color is shown or the previous scenes render. Sample textures are based on: https://www.youtube.com/watch?v=LnAoD7hgDxw
Inheritance: SceneTransition
ファイルを表示 Open project: prime31/Nez

Public Properties

Property Type Description
duration float
easeType EaseType

Public Methods

Method Description
TextureWipeTransition ( ) : System
TextureWipeTransition ( Func sceneLoadAction ) : System
TextureWipeTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D transitionTexture ) : System
TextureWipeTransition ( Microsoft.Xna.Framework.Graphics.Texture2D transitionTexture ) : System
onBeginTransition ( ) : IEnumerator
render ( Graphics graphics ) : void

Method Details

TextureWipeTransition() public method

public TextureWipeTransition ( ) : System
return System

TextureWipeTransition() public method

public TextureWipeTransition ( Func sceneLoadAction ) : System
sceneLoadAction Func
return System

TextureWipeTransition() public method

public TextureWipeTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D transitionTexture ) : System
sceneLoadAction Func
transitionTexture Microsoft.Xna.Framework.Graphics.Texture2D
return System

TextureWipeTransition() public method

public TextureWipeTransition ( Microsoft.Xna.Framework.Graphics.Texture2D transitionTexture ) : System
transitionTexture Microsoft.Xna.Framework.Graphics.Texture2D
return System

onBeginTransition() public method

public onBeginTransition ( ) : IEnumerator
return IEnumerator

render() public method

public render ( Graphics graphics ) : void
graphics Graphics
return void

Property Details

duration public_oe property

duration for the wind transition
public float duration
return float

easeType public_oe property

ease equation to use for the animation
public EaseType easeType
return EaseType