Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public static GLTexture FromStream(Stream input, int width, int height, PixelFormatDescriptor format)
        {
            StreamGLTextureReader reader = new StreamGLTextureReader(input, width, height, format);

            return(reader.ReadTexture());
        }