Beispiel #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));
        }
Beispiel #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());
        }