Skip to main content
gamedev.net
🔒 Locked

Checking caps

Started by sj 1 reply 450+ views
Original Post
sj
sj
How can I check the bit masked values in D3DCAPS9? For example, how would I check the PresentationIntervals to see if D3DPRESENT_INTERVAL_ONE is supported?
S1CA
S1CA
In the same way you''d check any bitflag - do a bitwise AND:

if (caps.PresentationIntervals & D3DPRESENT_INTERVAL_ONE)


BTW: The sample framework in the SDK demonstrates checking caps bits...

--
Simon O''Connor
ex -Creative Asylum
Programmer &
Microsoft MVP
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
sj
sj
Ok, thanks for help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.