I have created a RenderItem class (couldn't think of a better name) that contains the following:
The issue is I have been about to bang my head against the desk all day on is:
I am not sure how to have each class that is Renderable populate a vector of RenderItems so that when I use D3D to create my VertexBuffer I can populate the size correctly and the offste of each textured quad.
On another note, when you get completely frustrated with something whats a good way to get past it while coding?
Thanks in advance as usual.
The issue is I have been about to bang my head against the desk all day on is:
I am not sure how to have each class that is Renderable populate a vector of RenderItems so that when I use D3D to create my VertexBuffer I can populate the size correctly and the offste of each textured quad.
On another note, when you get completely frustrated with something whats a good way to get past it while coding?
Thanks in advance as usual.