Harrison
d50ede989c
Loads information from loader. information creates useable. Minor folder restructuring. Untested.
24 lines
681 B
C#
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;
|
|
}
|
|
}
|
|
} |