diff --git a/content/opengl/triangle.png b/content/images/triangle.png similarity index 100% rename from content/opengl/triangle.png rename to content/images/triangle.png diff --git a/content/opengl/triangle.md b/content/opengl/triangle.md index e2da33b..14dfa14 100644 --- a/content/opengl/triangle.md +++ b/content/opengl/triangle.md @@ -7,7 +7,7 @@ The following code depends on the ``opengl`` and ``nim-glfw`` packages which can be installed via babel by executing ``babel install opengl@#head nim-glfw@#head``. You will need the GLFW DLL in order to run this on Windows. -![Triangle Windows](https://nimrod-by-example.github.io/opengl/triangle.png) +![Triangle Windows](https://nimrod-by-example.github.io/images/triangle.png) One thing to keep in mind when writing OpenGL code in Nimrod is that ``float`` is actually ``float64``. But vertices must be ``float32`` so you must explicitly diff --git a/content/toc.md b/content/toc.md index 622da54..f76930c 100644 --- a/content/toc.md +++ b/content/toc.md @@ -23,4 +23,6 @@ * [Bitsets](/bitsets/) * [Varargs](/varargs/) * [OOP Macro](/oop_macro/) -{: #toc-list} \ No newline at end of file +* OpenGL + * [Triangle](/opengl/triangle/) +{: #toc-list}