PongFE/PongFE/Components/Texture2DComponent.cs

18 lines
391 B
C#
Raw Normal View History

2020-07-12 01:25:43 +00:00
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;
}
}
}