SM.Core: + Particle System + scriptable system for scripts ~ Moved Texts- and Particles-namespace to SM.Base.Drawing ~ Changed how you tell the stopwatch to pause. (From method to property) ~ Fixed Randomize.GetFloat(min, max) ~ Now automaticly adds the DrawingBase.Transformation to DrawContext.ModelMatrix. No need to change DrawContext.Instances[0], anymore. SM.OGL: + "one-file-shader"-support SM2D: + DrawParticles (Control for Texture and Color not there yet) ~ Changed coordnate system to upper-right as (1,1) ~ Changed default shader to "one-file-shader"
35 lines
No EOL
745 B
C#
35 lines
No EOL
745 B
C#
#region usings
|
|
|
|
using System;
|
|
|
|
#endregion
|
|
|
|
namespace SM.Base.Drawing.Text
|
|
{
|
|
/// <summary>
|
|
/// Contains information for a font character.
|
|
/// </summary>
|
|
[Serializable]
|
|
public struct CharParameter
|
|
{
|
|
/// <summary>
|
|
/// The position on the X-axis.
|
|
/// </summary>
|
|
public int X;
|
|
|
|
/// <summary>
|
|
/// The width of the character.
|
|
/// </summary>
|
|
public float Width;
|
|
|
|
/// <summary>
|
|
/// The normalized position inside the texture.
|
|
/// </summary>
|
|
public float NormalizedX;
|
|
|
|
/// <summary>
|
|
/// The normalized width inside the texture.
|
|
/// </summary>
|
|
public float NormalizedWidth;
|
|
}
|
|
} |