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"
37 lines
No EOL
717 B
C#
37 lines
No EOL
717 B
C#
#region usings
|
|
|
|
using SM.Base.Contexts;
|
|
using SM.Base.Drawing;
|
|
using SM.Base.Scene;
|
|
using SM.OGL.Mesh;
|
|
using SM2D.Scene;
|
|
using SM2D.Types;
|
|
|
|
#endregion
|
|
|
|
namespace SM2D.Drawing
|
|
{
|
|
public class DrawComplex : DrawingBasis<Transformation>, I2DShowItem
|
|
{
|
|
public Material Material
|
|
{
|
|
get => _material;
|
|
set => _material = value;
|
|
}
|
|
|
|
public GenericMesh Mesh
|
|
{
|
|
get => _mesh;
|
|
set => _mesh = value;
|
|
}
|
|
|
|
public int ZIndex { get; set; }
|
|
|
|
protected override void DrawContext(ref DrawContext context)
|
|
{
|
|
base.DrawContext(ref context);
|
|
|
|
context.Shader.Draw(context);
|
|
}
|
|
}
|
|
} |