Jump to content

  • Log In with Google      Sign In   
  • Create Account


DirectDraw + OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Facehat   Members   -  Reputation: 696

Like
Likes
Like

Posted 18 August 1999 - 02:00 PM

Yet another question: Why can't you use OpenGL with DirectDraw? I was thinking of simply grabbing a device context from a DirectDraw surface and rendering to that, but it sounds like that can't be done. Any reason why?

--TheGoop


Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 11 August 1999 - 05:55 PM

Sounds like two APIs...
Two different sets of code fighting for exclusive rights over your video memory and renderer.
Just go Direct3D... OpenGl and DX are merging anyway.. and DX seems to be portable to the new API that will be formed.

-DL


#3 NuFAN   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 August 1999 - 09:54 PM

Hi,
you can use both API's together, it's a bit complicated, but you can do. Many coders prefer this to change the display mode and then set it as the device context.

It depends on what you're gonna do with your programs. If you want to create portable code, use OpenGL. If you only create programs for Windows, then you should better stay at DirectX, because there are many components and if you understand one, it's not hard to understand the rest.

CU

------------------
Skullpture Entertainment
#40842461


#4 druid-   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 August 1999 - 09:58 AM

A few points:

1)
There's a very simple reason why you can't use a ddraw surface to render opengl on and still access through ddraw functions:

Microsoft hasn't written a driver model to support it.

This is the essential reason, though there can be some issues with hardware compatibility, but MS hasn't even given venders a chance to try it out.

2)
OpenGL and DX are not merging, SGI will continue to support OpenGL and a recent announcement makes it clear that they have stepped out of cooperation with MS on the low-level API.

3)
It is common practice to use ddraw to temporarily set fullscreen (for one app), since MS did not include this functionality in the Win32 API. However, I don't believe this is what TheGoop was asking about.

4)
There are many other reasons to choose OpenGL over DX than just portability. I use OpenGL, but I'm not a fierce advocate of it, try them both and make your own decision.

------------------
Scott Franke [druid-]
sfranke@usc.edu
druid-'s GL Journal
http://www.gamedev.net/opengl


#5 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 18 August 1999 - 02:00 PM

In general mixing DDraw with OpenGL can be a bad idea, while you can get it to work, some OpenGL drivers use DDraw internally.

l8r
Ryan





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS