recrownedgtk/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs

22 lines
619 B
C#
Raw Normal View History

using System;
using RecrownedGTK.Graphics;
namespace RecrownedGTK.AssetsSystem.Information {
public struct TextureInfo : IInfo {
2020-04-18 03:29:01 +00:00
public readonly byte[] textureData;
int width, height;
public Type type => typeof(TextureData);
2020-04-18 03:29:01 +00:00
public TextureInfo(int width, int height, byte[] textureData) {
this.width = width;
this.height = height;
this.textureData = textureData;
}
public IDisposable CreateUseable()
{
TextureData data = new TextureData(textureData, width, height);
return data;
}
}
}