recrownedgtk/RecrownedGTK/AssetsSystem/Information/TextureInfo.cs
Harrison d50ede989c Asset loading structure complete.
Loads information from loader.
information creates useable.
Minor folder restructuring.
Untested.
2020-04-17 22:11:16 -05:00

24 lines
681 B
C#

using System;
using RecrownedGTK.Graphics;
namespace RecrownedGTK.AssetsSystem.Information {
public struct TextureInfo : IInfo {
public string name;
public byte[] textureData;
int width, height;
public Type type => typeof(TextureData);
public TextureInfo(string name, int width, int height, byte[] textureData) {
this.name = name;
this.width = width;
this.height = height;
this.textureData = textureData;
}
public IDisposable CreateUseable()
{
TextureData data = new TextureData(textureData, width, height);
return data;
}
}
}