コード例 #1
0
        public static async Task <GLTexture> FromImageFile(CancellationToken cancelationToken, string filePath)
        {
            ImageFileGLTextureReader reader = new ImageFileGLTextureReader(filePath);

            return(await reader.ReadTextureAsync(cancelationToken));
        }
コード例 #2
0
        public static GLTexture FromImageFile(string filePath)
        {
            ImageFileGLTextureReader reader = new ImageFileGLTextureReader(filePath);

            return(reader.ReadTexture());
        }