Skip to content

Commit

Permalink
static namespace caching!!!!! 😱 😻
Browse files Browse the repository at this point in the history
either namespace or function names will change to accommodate for sounds and animations in the future
  • Loading branch information
durkisneer1 committed Jan 18, 2024
1 parent 6748bd9 commit cb16751
Show file tree
Hide file tree
Showing 79 changed files with 1,515 additions and 1,068 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/getting_started/index.doctree
Binary file not shown.
Binary file added docs/build/doctrees/reference/cache.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/reference/constants.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/draw.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/entity.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/error_logger.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/font.doctree
Binary file not shown.
Binary file added docs/build/doctrees/reference/globals.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/input.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/texture.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/reference/texture_cache.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/reference/tile_map.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/_sources/getting_started/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ After following the :doc:`../installation` guide, you are ready for your first K
int main() {
kn::RenderWindow& window = kn::RenderWindow::getInstance();
kn::RenderWindow& window = kn::RenderWindow::get();
kn::time::Clock clock;
bool done = false;
Expand Down
17 changes: 17 additions & 0 deletions docs/build/html/_sources/reference/cache.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
=====
cache
=====

.. doxygenfunction:: kn::cache::load

.. doxygenfunction:: kn::cache::create

.. doxygenfunction:: kn::cache::move

.. doxygenfunction:: kn::cache::getCache

.. doxygenfunction:: kn::cache::unload

.. doxygenfunction:: kn::cache::unloadAll

.. doxygenfunction:: kn::cache::getTexture
5 changes: 0 additions & 5 deletions docs/build/html/_sources/reference/constants.rst.txt

This file was deleted.

12 changes: 12 additions & 0 deletions docs/build/html/_sources/reference/globals.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
=======
globals
=======

.. doxygenvariable:: kn::SCREEN_SIZE

.. doxygenvariable:: kn::GRAVITY

constants
---------

.. doxygenfile:: Constants.hpp
4 changes: 2 additions & 2 deletions docs/build/html/_sources/reference/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ API Reference
rect.rst
render_window.rst
sound.rst
texture_cache.rst
texture.rst
tile_map.rst
constants.rst
cache.rst
draw.rst
globals.rst
input.rst
math.rst
music.rst
Expand Down
6 changes: 0 additions & 6 deletions docs/build/html/_sources/reference/texture_cache.rst.txt

This file was deleted.

474 changes: 237 additions & 237 deletions docs/build/html/genindex.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/build/html/getting_started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@
<li class="toctree-l2"><a class="reference internal" href="../reference/rect.html">Rect</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/render_window.html">RenderWindow</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/sound.html">Sound</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/texture_cache.html">TextureCache</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/texture.html">Texture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/tile_map.html">TileMap</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/constants.html">constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/cache.html">cache</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/draw.html">draw</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/globals.html">globals</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/input.html">input</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/math.html">math</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference/music.html">music</a></li>
Expand Down Expand Up @@ -225,7 +225,7 @@ <h2>Creating a Window<a class="headerlink" href="#creating-a-window" title="Link
<span class="linenos"> 4</span>
<span class="linenos"> 5</span>
<span class="linenos"> 6</span><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="linenos"> 7</span><span class="w"> </span><span class="n">kn</span><span class="o">::</span><span class="n">RenderWindow</span><span class="o">&amp;</span><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">kn</span><span class="o">::</span><span class="n">RenderWindow</span><span class="o">::</span><span class="n">getInstance</span><span class="p">();</span>
<span class="linenos"> 7</span><span class="w"> </span><span class="n">kn</span><span class="o">::</span><span class="n">RenderWindow</span><span class="o">&amp;</span><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">kn</span><span class="o">::</span><span class="n">RenderWindow</span><span class="o">::</span><span class="n">get</span><span class="p">();</span>
<span class="linenos"> 8</span><span class="w"> </span><span class="n">kn</span><span class="o">::</span><span class="n">time</span><span class="o">::</span><span class="n">Clock</span><span class="w"> </span><span class="n">clock</span><span class="p">;</span>
<span class="linenos"> 9</span>
<span class="linenos">10</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@
<li class="toctree-l2"><a class="reference internal" href="reference/rect.html">Rect</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/render_window.html">RenderWindow</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/sound.html">Sound</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/texture_cache.html">TextureCache</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/texture.html">Texture</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/tile_map.html">TileMap</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/constants.html">constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/cache.html">cache</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/draw.html">draw</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/globals.html">globals</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/input.html">input</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/math.html">math</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/music.html">music</a></li>
Expand Down
4 changes: 2 additions & 2 deletions docs/build/html/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@
<li class="toctree-l2"><a class="reference internal" href="reference/rect.html">Rect</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/render_window.html">RenderWindow</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/sound.html">Sound</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/texture_cache.html">TextureCache</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/texture.html">Texture</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/tile_map.html">TileMap</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/constants.html">constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/cache.html">cache</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/draw.html">draw</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/globals.html">globals</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/input.html">input</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/math.html">math</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference/music.html">music</a></li>
Expand Down
Binary file modified docs/build/html/objects.inv
Binary file not shown.
Loading

0 comments on commit cb16751

Please sign in to comment.