CreateTexture(Image.Load <Rgba32>(front), Image.Load <Rgba32>(back), Image.Load <Rgba32>(up), Image.Load <Rgba32>(down), Image.Load <Rgba32>(left), Image.Load <Rgba32>(right)));
Пример #2
0
 public static Texture LoadFromFile(string path, bool generateMipmaps = true) => new (CreateTexture(Image.Load <Rgba32>(path), generateMipmaps));