Files
Voile/Source/Resources/Texture2dLoader.cs
2023-02-28 20:58:31 +01:00

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;
}
}
}