PongFE/PongFE/Components/Texture2DComponent.cs

18 lines
391 B
C#

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;
}
}
}