2020-07-15 20:08:58 +00:00
|
|
|
using System.Numerics;
|
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; }
|
|
|
|
|
2020-07-18 05:53:22 +00:00
|
|
|
public Texture2DComponent(Texture2D texture, int layer)
|
2020-07-12 01:25:43 +00:00
|
|
|
{
|
|
|
|
Texture = texture;
|
|
|
|
Layer = layer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|