Skip to content

Commit

Permalink
Update & publish new doc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue Fire committed Sep 30, 2024
1 parent e19bde7 commit 15f65c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/main/_sources/flame/rendering/images.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ To synchronously retrieve a previously cached image, the `fromCache` method can
with that key was not previously loaded, it will throw an exception.

To add an already loaded image to the cache, the `add` method can be used and you can set the key
that the image should have in the cache.
that the image should have in the cache. You can retrieve all the keys in the cache using the `keys`
getter.

You can also use `ImageExtension.fromPixels()` to dynamically create an image during the game.

Expand Down
3 changes: 2 additions & 1 deletion docs/main/flame/rendering/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ <h2>Loading images<a class="headerlink" href="#loading-images" title="Link to th
<p>To synchronously retrieve a previously cached image, the <code class="docutils literal notranslate"><span class="pre">fromCache</span></code> method can be used. If an image
with that key was not previously loaded, it will throw an exception.</p>
<p>To add an already loaded image to the cache, the <code class="docutils literal notranslate"><span class="pre">add</span></code> method can be used and you can set the key
that the image should have in the cache.</p>
that the image should have in the cache. You can retrieve all the keys in the cache using the <code class="docutils literal notranslate"><span class="pre">keys</span></code>
getter.</p>
<p>You can also use <code class="docutils literal notranslate"><span class="pre">ImageExtension.fromPixels()</span></code> to dynamically create an image during the game.</p>
<p>For <code class="docutils literal notranslate"><span class="pre">clear</span></code> and <code class="docutils literal notranslate"><span class="pre">clearCache</span></code>, do note that <code class="docutils literal notranslate"><span class="pre">dispose</span></code> is called for each removed image from the
cache, so make sure that you don’t use the image afterwards.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/main/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 15f65c8

Please sign in to comment.