• Advertisement
Sign in to follow this  

DirectX, GDI+, and double buffering

This topic is 3731 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, all: I've a question regarding DirectX and GDI+. I have created a scene that the user can move around in -- much like Halo or any other FPS. This, of course, was created using DirectX. I have also created a radar in the top-right corner of the window; this radar was created using GDI+. When the window is relatively small, there is no flickering issues with the radar. However, when the window is enlarged, the flickering of the radar becomes a problem. As such, I'd like to incorporate double buffering for GDI+, so the radar does not flicker. I've tried to make my window double buffered using the BufferedGraphicsContext and BufferedGraphics for GDI+. However, if I double buffer the window, the scene rendered by DirectX is missing. Any clues as how to mix DirectX and GDI+ so that the GDI+ is double buffered? Thank you, all. Trecius

Share this post


Link to post
Share on other sites
Advertisement
Yeah, really it's a bad idea to mix DX and GDI.

Just use DX, it will do anything and everything you want - faster than GDI.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement