Пример #1
0
        public static async Task <GLTexture> FromStreamAsync(CancellationToken cancelationToken, Stream input, int width, int height, PixelFormatDescriptor format)
        {
            StreamGLTextureReader reader = new StreamGLTextureReader(input, width, height, format);

            return(await reader.ReadTextureAsync(cancelationToken));
        }