Class ScreenTransition
This class creates an effect between two ScreenContext.
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public abstract class ScreenTransition
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 source of the ScreenContext.
Declaration
public ScreenContext[] Sources
Field Value
Type | Description |
---|---|
ScreenContext[] |
Target
The ScreenContext target.
Declaration
public ScreenContext Target
Field Value
Type | Description |
---|---|
ScreenContext |
disposed
The platform service.
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 using 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()
Sets 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)
Updates all source contexts.
Declaration
protected void UpdateSources(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The current time. |
UpdateTarget(TimeSpan)
Updates the target context.
Declaration
protected void UpdateTarget(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The current time. |