Class ScreenTransition
This class make an effect between two ScreenContext.
Implements
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public abstract class ScreenTransition : IDisposable
Constructors
ScreenTransition(TimeSpan)
Initializes a new instance of the ScreenTransition class.
Declaration
public ScreenTransition(TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | The duration. |
Fields
BackgroundColor
The background color.
Declaration
public Color BackgroundColor
Field Value
Type | Description |
---|---|
Color |
Sources
The ScreenContext sources.
Declaration
public ScreenContext[] Sources
Field Value
Type | Description |
---|---|
ScreenContext[] |
Target
The ScreenContext target.
Declaration
public ScreenContext Target
Field Value
Type | Description |
---|---|
ScreenContext |
disposed
Whether this instance has been disposed.
Declaration
protected bool disposed
Field Value
Type | Description |
---|---|
bool |
Properties
CurrentTime
Gets the current transition time.
Declaration
public TimeSpan CurrentTime { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Lerp
Gets the Transition lerp value.
Declaration
public float Lerp { get; }
Property Value
Type | Description |
---|---|
float |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
Draw(TimeSpan)
Draws the specified game time.
Declaration
protected abstract void Draw(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |
EndTransition()
End of the transition.
Declaration
protected virtual void EndTransition()
Initialize()
Initializes this instance.
Declaration
protected abstract void Initialize()
SetRenderState()
Set the transition Render State.
Declaration
protected virtual void SetRenderState()
Update(TimeSpan)
Updates the specified game time.
Declaration
protected abstract void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |
UpdateSources(TimeSpan)
Update all source contexts.
Declaration
protected void UpdateSources(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The current time. |
UpdateTarget(TimeSpan)
Update target context.
Declaration
protected void UpdateTarget(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The current time. |