コード例 #1
0
 public async override Task Load(ResourcePool pool, CancellationToken token)
 {
     buffer = await pool.GetBuffer();
     var loader = new SpriteLoader(BufferUsageHint.DynamicDraw, buffer);
     tileSet.LoadTileMap(loader, mapIndices, depth);
     sprites = loader.Load();
 }
コード例 #2
0
        public async override Task Load(ResourcePool pool, CancellationToken token)
        {
            buffer = await pool.GetBuffer();

            var loader = new SpriteLoader(BufferUsageHint.DynamicDraw, buffer);

            tileSet.LoadTileMap(loader, mapIndices, depth);
            sprites = loader.Load();
        }