Removed unnessecary attribute.
This commit is contained in:
parent
01b900f368
commit
8e2510903f
@ -3,12 +3,10 @@ using RecrownedGTK.Graphics;
|
||||
|
||||
namespace RecrownedGTK.AssetsSystem.Information {
|
||||
public struct TextureInfo : IInfo {
|
||||
public string name;
|
||||
public byte[] textureData;
|
||||
public readonly byte[] textureData;
|
||||
int width, height;
|
||||
public Type type => typeof(TextureData);
|
||||
public TextureInfo(string name, int width, int height, byte[] textureData) {
|
||||
this.name = name;
|
||||
public TextureInfo(int width, int height, byte[] textureData) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.textureData = textureData;
|
||||
|
@ -12,7 +12,7 @@ namespace RecrownedGTK.AssetsSystem.Loaders {
|
||||
int width;
|
||||
int height;
|
||||
byte[] textureData = LoadPNG(path, out width, out height);
|
||||
TextureInfo info = new TextureInfo(Path.GetFileName(path), width, height, textureData);
|
||||
TextureInfo info = new TextureInfo(width, height, textureData);
|
||||
return info;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user