-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,038 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace EmptyKeys.UserInterface.Media | ||
{ | ||
/// <summary> | ||
/// Implements abstract Effect | ||
/// </summary> | ||
public abstract class EffectBase | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="EffectBase"/> class. | ||
/// </summary> | ||
/// <param name="nativeEffect">The native effect.</param> | ||
public EffectBase(object nativeEffect) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets the native effect. | ||
/// </summary> | ||
/// <returns></returns> | ||
public abstract object GetNativeEffect(); | ||
|
||
/// <summary> | ||
/// Updates the effect parameters. | ||
/// </summary> | ||
/// <param name="parameters">The parameters.</param> | ||
public abstract void UpdateEffectParameters(params object[] parameters); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace EmptyKeys.UserInterface.Media | ||
{ | ||
/// <summary> | ||
/// Describes font effect | ||
/// </summary> | ||
public enum FontEffectType | ||
{ | ||
/// <summary> | ||
/// No effect needed, this is standard sprite font | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// Signed Distance Field font type | ||
/// </summary> | ||
SDF | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Xna.Framework.Graphics; | ||
|
||
namespace EmptyKeys.UserInterface.Media | ||
{ | ||
/// <summary> | ||
/// Implements FNA specific effect | ||
/// </summary> | ||
/// <seealso cref="EmptyKeys.UserInterface.Media.EffectBase" /> | ||
public class FNAEffect : EffectBase | ||
{ | ||
private Effect effect; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FNAEffect"/> class. | ||
/// </summary> | ||
/// <param name="nativeEffect">The native effect.</param> | ||
public FNAEffect(object nativeEffect) : base(nativeEffect) | ||
{ | ||
effect = nativeEffect as Effect; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the native effect. | ||
/// </summary> | ||
/// <returns></returns> | ||
public override object GetNativeEffect() | ||
{ | ||
return effect; | ||
} | ||
|
||
/// <summary> | ||
/// Updates the effect parameters. | ||
/// </summary> | ||
/// <param name="parameters">The parameters.</param> | ||
public override void UpdateEffectParameters(params object[] parameters) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.