Fixed readme errors by using simple ascii format for export in org

dev
Shariq Shah 10 years ago
parent 53ae2b488d
commit 521a566e38
  1. 228
      README
  2. 124
      README.md
  3. 9
      orgfile.org
  4. 4
      src/renderer.c

228
README

@ -0,0 +1,228 @@
__________________
PROJECT SYMMETRY
Shariq Shah
__________________
Table of Contents
_________________
1 Project Symmetry
.. 1.1 What?
.. 1.2 Why?
2 Things TODO
.. 2.1 DONE Input
.. 2.2 DONE Shaders
.. 2.3 DONE Geometry
.. 2.4 DONE change struct usage
.. 2.5 DONE change Array implementation
.. 2.6 DONE resolve vec-types sizes
.. 2.7 DONE Transform
.. 2.8 DONE Deltatime
.. 2.9 DONE Investigate about Exit() and at_exit() functions and whether to use them or not.
.. 2.10 DONE Fix readme markdown
.. 2.11 TODO Framebuffer and resolution independent rendering
.. 2.12 DONE Remove Kazmath dependency
.. 2.13 DONE Entity
.. 2.14 TODO Positive and negative values for input_maps and returning corresponding values when they are true
.. 2.15 DONE Textures
.. 2.16 DONE Camera
.. 2.17 DONE Test render
.. 2.18 TODO Bounding Boxes
.. 2.19 TODO File extension checking for asset loading
.. 2.20 DONE Materials
.. 2.21 DONE Mesh/Model
.. 2.22 TODO Add modifiers to input maps to enable combinations for example, c-x, m-k etc
.. 2.23 DONE Heirarchical Transforms
.. 2.24 DONE Materials with textures
.. 2.25 TODO 2d drawing routines
.. 2.26 TODO Gui
.. 2.27 TODO Physics
.. 2.28 TODO Improve the readme
.. 2.29 TODO ???
.. 2.30 TODO Profit!
1 Project Symmetry
==================
1.1 What?
~~~~~~~~~
An attempt to convert all previous code written in Project
Abstraction(written in C++) to C while using as few libraries as
possible.
1.2 Why?
~~~~~~~~
- To create a platform on which i will base further projects on.
- To learn and remove as many black boxes as possible.
- Profit!?!
2 Things TODO
=============
2.1 DONE Input
~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-02 Thu 01:24]
- Input maps (addition/removal)
- Adding removing keys to input maps
- Changing map na
2.2 DONE Shaders
~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-11 Sat 17:57]
- set asset folder
- load/compile shader
2.3 DONE Geometry
~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-11 Sat 17:57]
2.4 DONE change struct usage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-21 Tue 15:13]
2.5 DONE change Array implementation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-25 Sat 20:27]
2.6 DONE resolve vec-types sizes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-25 Sat 20:27]
2.7 DONE Transform
~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-26 Sun 18:01]
2.8 DONE Deltatime
~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-07-27 Mon 11:54]
2.9 DONE Investigate about Exit() and at_exit() functions and whether to use them or not.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-08-02 Sun 19:09]
2.10 DONE Fix readme markdown
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-12-10 Thu 16:36]
2.11 TODO Framebuffer and resolution independent rendering
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.12 DONE Remove Kazmath dependency
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-12-10 Thu 16:36]
2.13 DONE Entity
~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-09-15 Tue 12:17]
2.14 TODO Positive and negative values for input_maps and returning corresponding values when they are true
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.15 DONE Textures
~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-10-09 Fri 18:47]
2.16 DONE Camera
~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-08-19 Wed 13:30]
2.17 DONE Test render
~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-08-19 Wed 13:30]
2.18 TODO Bounding Boxes
~~~~~~~~~~~~~~~~~~~~~~~~
2.19 TODO File extension checking for asset loading
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.20 DONE Materials
~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-10-13 Tue 19:38]
2.21 DONE Mesh/Model
~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-10-13 Tue 19:38]
2.22 TODO Add modifiers to input maps to enable combinations for example, c-x, m-k etc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.23 DONE Heirarchical Transforms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.24 DONE Materials with textures
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- State "DONE" from "TODO" [2015-10-15 Thu 21:21]
2.25 TODO 2d drawing routines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.26 TODO Gui
~~~~~~~~~~~~~
2.27 TODO Physics
~~~~~~~~~~~~~~~~~
2.28 TODO Improve the readme
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2.29 TODO ???
~~~~~~~~~~~~~
2.30 TODO Profit!
~~~~~~~~~~~~~~~~~

@ -1,124 +0,0 @@
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Project Symmetry</a>
<ul>
<li><a href="#sec-1-1">1.1. What?</a></li>
<li><a href="#sec-1-2">1.2. Why?</a></li>
</ul>
</li>
<li><a href="#sec-2">2. Things TODO</a>
<ul>
<li><a href="#sec-2-1">2.1. <span class="done DONE">DONE</span> Input</a></li>
<li><a href="#sec-2-2">2.2. <span class="done DONE">DONE</span> Shaders</a></li>
<li><a href="#sec-2-3">2.3. <span class="done DONE">DONE</span> Geometry</a></li>
<li><a href="#sec-2-4">2.4. <span class="done DONE">DONE</span> change struct usage</a></li>
<li><a href="#sec-2-5">2.5. <span class="done DONE">DONE</span> change Array implementation</a></li>
<li><a href="#sec-2-6">2.6. <span class="done DONE">DONE</span> resolve vec-types sizes</a></li>
<li><a href="#sec-2-7">2.7. <span class="done DONE">DONE</span> Transform</a></li>
<li><a href="#sec-2-8">2.8. <span class="done DONE">DONE</span> Deltatime</a></li>
<li><a href="#sec-2-9">2.9. <span class="done DONE">DONE</span> Investigate about Exit() and at<sub>exit</sub>() functions and whether to use them or not.</a></li>
<li><a href="#sec-2-10">2.10. <span class="todo TODO">TODO</span> Entity</a></li>
<li><a href="#sec-2-11">2.11. <span class="todo TODO">TODO</span> Positive and negative values for input<sub>maps</sub> and returning corresponding values when they are true</a></li>
<li><a href="#sec-2-12">2.12. <span class="todo TODO">TODO</span> Camera</a></li>
<li><a href="#sec-2-13">2.13. <span class="todo TODO">TODO</span> Test render</a></li>
<li><a href="#sec-2-14">2.14. <span class="todo TODO">TODO</span> Bounding Boxes</a></li>
<li><a href="#sec-2-15">2.15. <span class="todo TODO">TODO</span> Materials</a></li>
<li><a href="#sec-2-16">2.16. <span class="todo TODO">TODO</span> Mesh/Model</a></li>
<li><a href="#sec-2-17">2.17. <span class="todo TODO">TODO</span> Heirarchical Transforms</a></li>
<li><a href="#sec-2-18">2.18. <span class="todo TODO">TODO</span> 2d drawing routines</a></li>
<li><a href="#sec-2-19">2.19. <span class="todo TODO">TODO</span> Gui</a></li>
<li><a href="#sec-2-20">2.20. <span class="todo TODO">TODO</span> Physics</a></li>
<li><a href="#sec-2-21">2.21. <span class="todo TODO">TODO</span> Improve the readme</a></li>
<li><a href="#sec-2-22">2.22. <span class="todo TODO">TODO</span> ???</a></li>
<li><a href="#sec-2-23">2.23. <span class="todo TODO">TODO</span> Profit!</a></li>
</ul>
</li>
</ul>
</div>
</div>
# Project Symmetry<a id="sec-1" name="sec-1"></a>
## What?<a id="sec-1-1" name="sec-1-1"></a>
An attempt to convert all previous code written in Project Abstraction(written in C++) to C
while using as few libraries as possible.
## Why?<a id="sec-1-2" name="sec-1-2"></a>
- To create a platform on which i will base further projects on.
- To learn and remove as many black boxes as possible.
- Profit!?!
# Things TODO<a id="sec-2" name="sec-2"></a>
## DONE Input<a id="sec-2-1" name="sec-2-1"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-02 Thu 01:24]</span></span>
- Input maps (addition/removal)
- Adding removing keys to input maps
- Changing map na
## DONE Shaders<a id="sec-2-2" name="sec-2-2"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-11 Sat 17:57]</span></span>
- set asset folder
- load/compile shader
## DONE Geometry<a id="sec-2-3" name="sec-2-3"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-11 Sat 17:57]</span></span>
## DONE change struct usage<a id="sec-2-4" name="sec-2-4"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-21 Tue 15:13]</span></span>
## DONE change Array implementation<a id="sec-2-5" name="sec-2-5"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-25 Sat 20:27]</span></span>
## DONE resolve vec-types sizes<a id="sec-2-6" name="sec-2-6"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-25 Sat 20:27]</span></span>
## DONE Transform<a id="sec-2-7" name="sec-2-7"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-26 Sun 18:01]</span></span>
## DONE Deltatime<a id="sec-2-8" name="sec-2-8"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-07-27 Mon 11:54]</span></span>
## DONE Investigate about Exit() and at<sub>exit</sub>() functions and whether to use them or not.<a id="sec-2-9" name="sec-2-9"></a>
- State "DONE" from "TODO" <span class="timestamp-wrapper"><span class="timestamp">[2015-08-02 Sun 19:09]</span></span>
## TODO Entity<a id="sec-2-10" name="sec-2-10"></a>
## TODO Positive and negative values for input<sub>maps</sub> and returning corresponding values when they are true<a id="sec-2-11" name="sec-2-11"></a>
## TODO Camera<a id="sec-2-12" name="sec-2-12"></a>
## TODO Test render<a id="sec-2-13" name="sec-2-13"></a>
## TODO Bounding Boxes<a id="sec-2-14" name="sec-2-14"></a>
## TODO Materials<a id="sec-2-15" name="sec-2-15"></a>
## TODO Mesh/Model<a id="sec-2-16" name="sec-2-16"></a>
## TODO Heirarchical Transforms<a id="sec-2-17" name="sec-2-17"></a>
## TODO 2d drawing routines<a id="sec-2-18" name="sec-2-18"></a>
## TODO Gui<a id="sec-2-19" name="sec-2-19"></a>
## TODO Physics<a id="sec-2-20" name="sec-2-20"></a>
## TODO Improve the readme<a id="sec-2-21" name="sec-2-21"></a>
## TODO ???<a id="sec-2-22" name="sec-2-22"></a>
## TODO Profit!<a id="sec-2-23" name="sec-2-23"></a>

@ -1,3 +1,6 @@
#+AUTHOR:Shariq Shah
#+EMAIL:bluerriq@gmail.com
#+TITLE:Project Symmetry
* Project Symmetry
** What?
@ -34,9 +37,11 @@ while using as few libraries as possible.
- State "DONE" from "TODO" [2015-07-27 Mon 11:54]
** DONE Investigate about Exit() and at_exit() functions and whether to use them or not.
- State "DONE" from "TODO" [2015-08-02 Sun 19:09]
** TODO Fix readme markdown
** DONE Fix readme markdown
- State "DONE" from "TODO" [2015-12-10 Thu 16:36]
** TODO Framebuffer and resolution independent rendering
** TODO Remove Kazmath dependency
** DONE Remove Kazmath dependency
- State "DONE" from "TODO" [2015-12-10 Thu 16:36]
** DONE Entity
- State "DONE" from "TODO" [2015-09-15 Tue 12:17]
** TODO Positive and negative values for input_maps and returning corresponding values when they are true

@ -129,6 +129,10 @@ void renderer_cleanup(void)
void on_framebuffer_size_change(GLFWwindow* window, int width, int height)
{
glViewport(0, 0, width, height);
struct Camera* camera = camera_get(0);
float aspect = (float)width / (float)height;
camera->aspect_ratio = aspect > 0.f ? aspect : 4.f / 3.f;
camera_update_proj(camera);
}
void renderer_set_clearcolor(float red, float green, float blue, float alpha)

Loading…
Cancel
Save