Jump to content
  • Advertisement
Sign in to follow this  
wolf_fallout

Help!! Direct X and GDI

This topic is 4505 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 every body! have problem, help me please! I want to make a map editor with direct x, the following are my setting -Use windowed mode, not fullscreen -Use directx7 surface for primary and backbuffer, -the tile images are stored in ddsurface -draw the tile on backbuffer, then blit to primary surface( i used blit, not flip, sorry for this mistake) -use modeless dialog as tile picker -intend to draw tileset on dialog, problem: -can't draw the tile image on dialog, I can draw text with DC on the dialog, but the tile image is failed. I can draw tile image on mode dialog with FlipToGDISurface, but failed in modeless dialog what should i do to solve this problem? I want to create map editor which the tile picker floated within window's client area. I tried: GetSurfaceFromDC()& GetGDISurface()/FlipToGDISurface() which one should i use. Does there any method can solve this problem. Does there any sample about that! Forgive my poor english!!!! [Edited by - wolf_fallout on April 20, 2006 12:36:24 PM]

Share this post


Link to post
Share on other sites
Advertisement
What language? I'll assume C++ for now.

From my understanding (I've not done much with DirectDraw, and if you've only just started, I strongly recommend switching over to D3D9), you need to create a DDraw surface for the dialog too. The dialog has no relation to the main window, so it'll need its own surface and swap chain for it.

Again, I'm not entirely sure. You should really be using Direct3D (Or OpenGL if you prefer. Or SDL even...)

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!