Init.
This commit is contained in:
14
Source/Resources/Texture2dLoader.cs
Executable file
14
Source/Resources/Texture2dLoader.cs
Executable file
@@ -0,0 +1,14 @@
|
||||
namespace DaggerFramework
|
||||
{
|
||||
public class Texture2dLoader : ResourceLoader
|
||||
{
|
||||
public override Resource Load(string path)
|
||||
{
|
||||
var data = File.ReadAllBytes(path);
|
||||
var texture = new Texture2d(data);
|
||||
texture.Path = path;
|
||||
|
||||
return texture;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user