Jump to content
  • Advertisement

Archived

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

SSJ_Trunks

DirectX 7.0a

This topic is 6461 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
Ummm... into it how?? For programming, in Windows Explorer, for tweaking, learning, what? If you want to get into it learning, get a book or read some online articles. If you want to get into it programming, just do this:
    
LPDIRECTDRAW lpdd;
LPDIRECTDRAW7 lpdd7;

DirectDrawCreate(NULL, &lpdd, NULL);

// here''s where you get the DD object version 7

lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID *) &lpdd7);

// you can now release the old object

lpdd->Release();

// the lpdd7 object is now valid for use in operations such as:

lpdd7->SetDisplayMode(1024, 768, 16, 0, 0);

for more, consult the docs that came with the SDK. Hope this is what you were looking for...


==============================
\\// live long and prosper; \||/ die short and rot.
==============================

Share this post


Link to post
Share on other sites
could someone answer, how does Gaiiden''s version differ from just using DirectDrawCreateEx on the lpdd7 object?

Share this post


Link to post
Share on other sites
I think DirectDrawCreateEx lets you use some advanced d3d features. pretty sure...
-Majix

Share this post


Link to post
Share on other sites
Yeah, but for DirectDraw I just like to stick with DirectDrawCreate()

==============================
\\// live long and prosper; \||/ die short and rot.
==============================

Share this post


Link to post
Share on other sites
The object that implements DirectDraw 7 is different from the one that implements previous versions. DirectDrawCreate creates the old object,which you can then QI for any version (including 7.)

To create the newer object, use DirectDrawCreateEx. This object exposes the IDirect3D7 interface, which the other does not.

Share this post


Link to post
Share on other sites
Damn straight. I forgot about that completely. I remeber seeing that when I was looking through the v7 SDK docs once, but I was so used to using QueryInterface() when DirectDraw was still in version 4 that it just never sunk in. Thanks for the wake-up, I guess I should actually start using it now....

==============================
\\// live long and prosper; \||/ die short and rot.
==============================

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!