Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Thathmew

OpenGL Direct Draw with OpenGL

This topic is 6925 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

Any pointers to info on setting up OpenGL to work with DirectDraw? I remember some articles and info on this from a long while back but haven''t been able to find them. And no, I don''t want to use D3D IM. I need OpenGL. thanks for any assistance, -m

Share this post


Link to post
Share on other sites
Advertisement
Ok..You can''t use OpenGL and DDraw at same time..but, for example, you can initialize the video mode with DDraw and use OpenGL for 3D operations.

Share this post


Link to post
Share on other sites
Well, the game will be using 3D objects sprites with a 2d isometric background. I need to do the 3D objects in OpenGL and I''d rather do the 2D stuff in DDraw.

There is no overlap in operations, i.e. no DDraw calls in OpenGL.

Share this post


Link to post
Share on other sites
I think the idea was to initiate DDraw, go fullscreen, create the flipping chain and then get a device context for the back surface and have OpenGL render on that. I''m not sure if anyone''s ever used that in anything big, and I probably don''t remember correctly.

Share this post


Link to post
Share on other sites
If you expect your program to work on most people''s video cards, anything I''ve read (including the main OpenGL FAQ) states that you should NOT mix the two. The reason is, many windows video drivers use DirectDraw internally to handle the surfaces for OpenGL. Better drivers have their own system to handle them both, but many don''t. You''ll end up having two separate DirectDraws fighting for control of the same window and you won''t like what happens as a result (crashes or freezing). I wouldn''t trust it if you care about compatibility.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!