Gui rendermanagement nearly finished
Ok, as said in my last post i will make an advanced 2d system and a gui. I have now decided to start with the gui and add 2d Functions on demand.
Here is a first screen, nothing special, but it shows some progress:
Note the correct rendering of the window at the cube. I'm using one of my first 2D additions, SetScale , to mirror the rendering correctly for the texture.
What does the renderer currently do: Every control is itself contained in a buffer which is only updated if it is marked as dirty. the rendering goes up the parents tree and each control buffer is renderend into its parents buffer at the desired location. With this technique i only need to draw one Image most of the time to represent a root gui element.
I will keep you informed.
2 Comments
Recommended Comments