14 lines
319 B
C#
Executable File
14 lines
319 B
C#
Executable File
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;
|
|
}
|
|
}
|
|
} |