Picking and Rendertargets working for all 3D APIs
Although the output is still the same, a lot now happened in the background.
First of all the output is the same again for DirectX, OpenGL and OpenGL ES.
There was support for multiple rendertargets added. What is now used for picking.
The 3D globe and the 2D triangle is now also rendered(as an ID) into an integer pickbuffer.
Therefore the mouse(or any 2d coordinate) could now be used to detect objects underneath it.
After using constant buffers for DirectX I implemented uniform buffer objects for the OpenGL implementations. This makes constants handling very efficient.
Now I’m happy to announce the next task, which is text-rendering!