Jump to content
  • Advertisement
Sign in to follow this  
papitorico

question about GetDeviceCaps()

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

what's the difference between LPDIRECT3D9->GetDeviceCaps(); and LPDIRECT3DEVICE9->LPDIRECT3D9; can I use any of them withuot problems?

Share this post


Link to post
Share on other sites
Advertisement
Sorry the question is:

what's the difference between LPDIRECT3D9->GetDeviceCaps(); and LPDIRECT3DDEVICE9->GetDeviceCaps(); can I use any of them withuot problems?

Share this post


Link to post
Share on other sites
One represents a way of accessing all devices attached to the system (IDirect3D9) and the other accesses only a specific single device (IDirect3DDevice9).

Basically it's down to your very first bits of code. To call IDirect3DDevice9::GetDeviceCaps() you must already have created the device. This may be a complete waste of time if that device's caps reveals it to be incompatible with your requirements.

Calling it via the manager interface, IDirect3D9::GetDeviceCaps(), you can check *before* trying to create the device whether or not it is compatible with what you need.

hth
Jack

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.

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

Sign me up!