C# 클래스 Nez.ImageMaskTransition

uses an image to mask out part of the scene scaling it from max-to-min then from min-to-max with rotation. Note that the Texture should be loaded in the main Core.contentManager, not a Scene contentManager. The transition will unload it for you. The Texture should be transparent where it should be masked out and white where it should be masked in.
상속: SceneTransition
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
delayBeforeMaskOut float
duration float
maxRotation float
maxScale float
minRotation float
minScale float
rotationEaseType EaseType
scaleEaseType EaseType

공개 메소드들

메소드 설명
ImageMaskTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
ImageMaskTransition ( Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
onBeginTransition ( ) : IEnumerator
preRender ( Graphics graphics ) : void
render ( Graphics graphics ) : void

보호된 메소드들

메소드 설명
transitionComplete ( ) : void

메소드 상세

ImageMaskTransition() 공개 메소드

public ImageMaskTransition ( Func sceneLoadAction, Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
sceneLoadAction Func
maskTexture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

ImageMaskTransition() 공개 메소드

public ImageMaskTransition ( Microsoft.Xna.Framework.Graphics.Texture2D maskTexture ) : System
maskTexture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

onBeginTransition() 공개 메소드

public onBeginTransition ( ) : IEnumerator
리턴 IEnumerator

preRender() 공개 메소드

public preRender ( Graphics graphics ) : void
graphics Graphics
리턴 void

render() 공개 메소드

public render ( Graphics graphics ) : void
graphics Graphics
리턴 void

transitionComplete() 보호된 메소드

protected transitionComplete ( ) : void
리턴 void

프로퍼티 상세

delayBeforeMaskOut 공개적으로 프로퍼티

delay after the mask-in before the mark-out begins
public float delayBeforeMaskOut
리턴 float

duration 공개적으로 프로퍼티

duration of the transition both in and out
public float duration
리턴 float

maxRotation 공개적으로 프로퍼티

maximum rotation of the mask animation
public float maxRotation
리턴 float

maxScale 공개적으로 프로퍼티

maximum scale of the mask
public float maxScale
리턴 float

minRotation 공개적으로 프로퍼티

minimum rotation of the mask animation
public float minRotation
리턴 float

minScale 공개적으로 프로퍼티

minimum scale of the mask
public float minScale
리턴 float

rotationEaseType 공개적으로 프로퍼티

ease equation to use for the rotation animation
public EaseType rotationEaseType
리턴 EaseType

scaleEaseType 공개적으로 프로퍼티

ease equation to use for the scale animation
public EaseType scaleEaseType
리턴 EaseType