Archived

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

MetaKnight

OpenGL OpenGL with DirectDraw?

Recommended Posts

OpenGL with DirectDraw? Is this posible? Im trying to do it right now, but the direct Draw picture keeps flickering all weridly. Can anyone solve this engima?

Share this post


Link to post
Share on other sites
The only way I''ve heard of this being accopmlished successfully is if you use two seperate DLLs. One for DX, the other for OGL.

Besides making yourself proud, why would you want to run the two simultaneously??



"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I''m reaching up and reaching out. I''m reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one''s been. We''ll ride the spiral to the end and may just go where no one''s been." - Maynard James Keenan
[TheBlackJester ]
[Wildfire Studios ]

Share this post


Link to post
Share on other sites
First of all, your question can be caused by a number of problems, and unless we get a more specific explanation we can''t help you. Secondly (this is to the second person): he''s talking about DirectDraw, not Direct3D (the mixture of the two is supported on some video cards). Which brings me to my next point: as some videocards support the mixture of ddraw and OpenGL, some don''t, so to maintain maximum compatibility across systems, its best to not use DirectDraw in conjunction with OpenGL.

Share this post


Link to post
Share on other sites
Oh well i seem to have some of the things fixed now, but i have one problem . I got the Direct Draw surface on a DC and the Open GL on the DC, but the opengl one is double buffer, and when i so SWAPBUFFERS(g_HDC), it makes the DDRAW thing flicker
any help?

Share this post


Link to post
Share on other sites
Before this thread gets any further... Why exactly do you want to use OpenGL with DirectDraw (I''m assuming you mean that you want to use them both at the same time, from the way you worded your question).

So, before we go into technicalities, WHY do you need to use both at once?

Trent(ShiningKnight)
trent@voxelsoft.com
The Official Site of All True Programmers

Share this post


Link to post
Share on other sites