Refactor ResourceLoader, use only Texture2d in Renderer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user