public static async Task <GLTexture> FromImageFile(CancellationToken cancelationToken, string filePath) { ImageFileGLTextureReader reader = new ImageFileGLTextureReader(filePath); return(await reader.ReadTextureAsync(cancelationToken)); }
public static GLTexture FromImageFile(string filePath) { ImageFileGLTextureReader reader = new ImageFileGLTextureReader(filePath); return(reader.ReadTexture()); }