I am trying to use Direct3D to render 2D graphics, as recommended by everyone since rejecting DirectDraw. In fact, there is no 3D information that I care about, and just want to be able to do things like draw lines, circles and related images on top of each other. So my questions
- I need to upload many images from files and draw them on top of each other. Will the textures go?
- A very silly question, but I can’t find anything: how do you visualize one surface on another?
- Do you have to do everything on one texture and then draw it for the screen as a sprite or just draw a lot of textures?
- How do you draw lines, etc. on texture / surface / sprite? I guess there is a better way than getting the device context and using GDI to draw on it?
source share