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"
29 lines
No EOL
600 B
C#
29 lines
No EOL
600 B
C#
#region usings
|
|
|
|
using OpenTK;
|
|
|
|
#endregion
|
|
|
|
namespace SM.Base.Drawing
|
|
{
|
|
/// <summary>
|
|
/// This represens a drawing instance.
|
|
/// </summary>
|
|
public class Instance
|
|
{
|
|
/// <summary>
|
|
/// The model matrix.
|
|
/// </summary>
|
|
public Matrix4 ModelMatrix = Matrix4.Identity;
|
|
|
|
/// <summary>
|
|
/// The texture offset.
|
|
/// </summary>
|
|
public Vector2 TexturePosition = Vector2.Zero;
|
|
|
|
/// <summary>
|
|
/// The texture scale.
|
|
/// </summary>
|
|
public Vector2 TextureScale = Vector2.One;
|
|
}
|
|
} |