View Full Version : opengl and directdraw

02-20-2002, 12:21 AM
can i use both opengl and ddraw in one application?

02-20-2002, 04:53 PM
no, not unless your completely release one and reinitialize the other

02-20-2002, 09:56 PM
Mmm, well, I assume you can use both at the same time, in the same program, if you don't use them in the same window. Can't see any reason why you can't use them on different windows.

02-20-2002, 11:48 PM

02-21-2002, 01:38 AM
Then how can I use swap buffer without glaux or glut?

02-21-2002, 11:26 AM
Make sure to ask for a double-buffered pixel format when you call ChoosePixelFormat (include PFD_DOUBLEBUFFER in dwFlags). After you have set up your OpenGL Rendering Context on a window that uses a double buffered pixel format, just call SwapBuffers to swap buffers.

If the question you really wanted to ask was how to create an OpenGL window without using glaux or glut, then I would suggest scanning this group for past posts.

02-22-2002, 06:22 AM
I was once able to have opengl draw to a directdraw surface. However, I changed video cards and it no longer worked. I suspect this is not a standard thing to do.