Refactor ResourceLoader, use only Texture2d in Renderer.

This commit is contained in:
2023-06-14 23:48:26 +02:00
parent fdbd21f248
commit 06da2c3f7f
20 changed files with 128 additions and 158 deletions

View File

@@ -2,10 +2,10 @@ namespace DaggerFramework
{
public class Texture2d : Resource
{
public Texture2d(byte[] data)
public int Width { get; set; }
public int Height { get; set; }
public Texture2d(string path, byte[] buffer) : base(path, buffer)
{
Data = data;
}
public byte[] Data;
}
}