I have read through Advanced2D development by J Harbour in which you create a 2D directX 9.0 game engine. The engine is based around a single window.
I was planning on doing it the following way but im not sure its the correct approach:
- Write a window class that has all the parameters to allow creation of different types and styles of window
- Each window will have its own D3D device
- Each window will be registered with windows
- Each window will have its own rendering portion, so each sprite on its draw command will pass in it's D3D device (like a GC in openGL)
This is what I plan to do but im not sure about handling the rendering properly. I also can never know how many windows a user could create so I am going to add them to a vector and then iterate over each whilst processing. I haven't really thought about sound yet.
My question is, is there anything blindingly I have missed out or really need to think about before I start this.
All the best,