// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Runtime.InteropServices; using osuTK; using osuTK.Graphics; using osuTK.Graphics.ES30; namespace osu.Framework.Graphics.OpenGL.Vertices { [StructLayout(LayoutKind.Sequential)] public struct TimedTexturedVertex2D : IEquatable, IVertex { [VertexMember(2, VertexAttribPointerType.Float)] public Vector2 Position; [VertexMember(4, VertexAttribPointerType.Float)] public Color4 Colour; [VertexMember(2, VertexAttribPointerType.Float)] public Vector2 TexturePosition; [VertexMember(1, VertexAttribPointerType.Float)] public float Time; public readonly bool Equals(TimedTexturedVertex2D other) => Position.Equals(other.Position) && TexturePosition.Equals(other.TexturePosition) && Colour.Equals(other.Colour) && Time.Equals(other.Time); } }