PongFE/PongFE/Components/Texture2DComponent.cs

19 lines
414 B
C#

using System.Numerics;
using Encompass;
using Microsoft.Xna.Framework.Graphics;
namespace PongFE.Components
{
public struct Texture2DComponent : IComponent, IDrawableComponent
{
public Texture2D Texture { get; }
public int Layer { get; }
public Texture2DComponent(Texture2D texture, int layer)
{
Texture = texture;
Layer = layer;
}
}
}