Sign in to follow this  

Enable anti-alias?

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

See the MultiSampleType parameter within the D3DPRESENT_PARAMETER structure. You can enable antialiasing that way:

d3dPP.MultisampleType = D3DMULTISAMPLE_2_SAMPLES

and the attribute SwapEffect musst be D3DSWAPEFFECT_DISCARD

therefore: for any change of anitialiasing parameters you have to reset the graphics device.

Share this post


Link to post
Share on other sites
You should have a present parameter object in order to create your device.

It's declaration is something like this:


PresentParameters presentParams = new PresentParameters();



Just add this before you create your device:


presentParams.SwapEffect = SwapEffect.Discard;
presentParams.MultiSample = MultiSampleType.TwoSamples;

Share this post


Link to post
Share on other sites

This topic is 3784 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this