Jump to content
  • Advertisement

Archived

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

ZomeonE

IDirectDraw or IDirectDraw4 ???

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

Advertisement
If you're planning on writing for Win9x, use the latest interfaces. If you want to support WinNT also start with IDirectDraw and use QueryInterface to get the newest interface available. I believe I saw somewhere that WinNT will support above DX3 with the latest service pack but I'm not sure which version. If you want to be safe use QueryInterface.

------------------
Breakaway Games

Share this post


Link to post
Share on other sites
By the way, if you use the C++ classes, are there new versions like DirectDraw7 or does the original one now refer to the most recent interface?

Share this post


Link to post
Share on other sites
What is the best way to create a ddraw object in win9x?

QueryInterface or is there a easier way, like

LPDIRECTDRAW4 lpdd4;

???

Share this post


Link to post
Share on other sites
alexmoura: In keeping with the COM standard, a new interface is always created so you can refer to any interface you want. There is an IDirectDraw7 interface now.

Zomeone: if you want to create a DirectX7 DirectDraw object you would do it like:

code:

LPDIRECTDRAW7 lpDirDraw;
hRet = DirectDrawCreateEx(NULL, (VOID**)&lpDirDraw, IID_IDirectDraw7, NULL);

QueryInterface is just to find the newest version so you can default to an older one if the newer one isn't found.


------------------
Breakaway Games

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I believe that Direct Draw Objects skipped from version 4 to 7 so there isn't a version 6 of the Direct Draw Object. But anyway, you create an original Direct Draw object without a version number, and then use QueryInterface with the original object to get the latest version of object.

Share this post


Link to post
Share on other sites
Is it better to use IDirectDraw4 instead of IDirectDraw?

Which is the fastest and best to write a game in?

What are the differences`?

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.

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!