Jump to content
  • Advertisement
Sign in to follow this  
zyrolasting

2 D3D9 framework questions

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

Hello folks. DirectX9, using C++. Research brings up nothing for the below so far. My framework takes the liberty of enclosing an abstract render method in a device [Begin/End]Scene pair and then calls Present(). I use protected members as parameters to Present(), to allow the user to modify them. Thing is, I have yet to ever see these parameters not be NULL, nor do I see much reason for them to be. Can I safely assume that they can always be NULL and remove the members for my released library, or would you find a need for them? My other question is: Can I safely assume that D3DPRESENT_INTERVAL_IMMEDIATE and ONE are supported on all past, modern and future hardware? (Complete VSync option)

Share this post


Link to post
Share on other sites
Advertisement
They can always be NULL for most applications, but decide for yourself: IDirect3DDevice9::Present.

Yes, according to the documentation for D3DPRESENT they are always available. They might not always do what you expect, if for example the graphics card control panel has an option to override application settings, but they will always be there.

Share this post


Link to post
Share on other sites
For a short while I used it to support rendering to multipe windows with a single swap chain. After working on it a bit more I ended up adding an abstraction to my engine that would allow for multiple swap chains (one per window), so I don't use the hWnd override parameter any more.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!