Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

The MSDN is really confusing about this, with all their different versions of XNA jumbled together for my google results. All I want to do is find out, in XNA 4.0, what antialiasing modes are supported by the display adapter. Supposedly, this involves calling GraphicsAdapter.CheckDeviceMultiSampleType(), but that function isn't defined. What should I be using in its place?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

That method was removed in XNA4 since it was no longer needed since we now have the reach and hi-def profiles. You can now just prefer multisampling or not and the framework will set an appropriate MultiSampleCount if possible. You can still set this value yourself here but setting it too high won't cause an error.

http://msdn.microsoft.com/en-us/library/bb976069.aspx

In XNA Game Studio 3.1, use GraphicsAdapter.CheckDeviceMultiSampleType to query the hardware for multisample support. In XNA Game Studio 4.0 Refresh, set the PreferMultiSampling property on the GraphicsDeviceManager class to true to enable multisampling for the back buffer. This will be ignored if the hardware does not support multisampling.

Btw if you have problems with MSDN. In the top left of the current article you're viewing you can select the proper version (if available).

share|improve this answer
    
Okay, that makes sense now. It was that clear to me that it was unnecessary to check for different types. –  Fibericon Aug 19 '12 at 15:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.