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"
25 lines
No EOL
609 B
C#
25 lines
No EOL
609 B
C#
using OpenTK;
|
|
using SM.Base.Types;
|
|
|
|
namespace SM.Base.Drawing.Particles
|
|
{
|
|
/// <summary>
|
|
/// A particle...
|
|
/// </summary>
|
|
public struct ParticleStruct<TDirection>
|
|
where TDirection : struct
|
|
{
|
|
/// <summary>
|
|
/// A direction, that the particle should travel.
|
|
/// </summary>
|
|
public TDirection Direction;
|
|
/// <summary>
|
|
/// A matrix to store rotation and scale.
|
|
/// </summary>
|
|
public Matrix4 Matrix;
|
|
/// <summary>
|
|
/// Speeeeeeeeeed
|
|
/// </summary>
|
|
public float Speed;
|
|
}
|
|
} |