summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Particles/Particle.cs
blob: 042d8cef106c14f32c3105242f71ed270083ba66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using MonoGame.Extended;

namespace MonoGame.Extended.Particles
{
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct Particle
    {
        public float Inception;
        public float Age;
        public Vector2 Position;
        public Vector2 TriggerPos;
        public Vector2 Velocity;
        public HslColor Color;
        public float Opacity;
        public Vector2 Scale;
        public float Rotation;
        public float Mass;
        public float LayerDepth;

        public static readonly int SizeInBytes = Marshal.SizeOf(typeof(Particle));
    }
}