   PresentationParameters
  When you run an XNA Game class, the line 'graphics = new GraphicsDeviceManager(this);' is used to initialize the graphics device. Although the 'graphics' variable is read only. What I would like to do is use custom presentation parameters to initialize the device, such as setting anti aliasing, anisotropy, etc.; how would I do that?Thank you,-TS...   
  I'm not sure why "graphics" would be read only?You can access and change presentation parameters using:graphics.GraphicsDevice.PresentationParametersYou may have to call graphics.ApplyChanges() after that, I forgot wether or not you need to do it for presentation parameters.   ;  This is the error I'm getting when I try to change the PPs.Error1Property or indexer 'Microsoft.Xna.Framework.Graphics.GraphicsDevice.PresentationParameters' cannot be assigned to -- it is read onlyC:\Users\Myself\Documents\Visual Studio 2008\Projects\Simple\Simple1\Game1.cs3613Simple1WindowsUnfortuantely, it is read only... :\   ;  Are you trying something like this?:graphics.GraphicsDevice.PresentationParameters = mycustomPresentationParamatersThis won't work, but you can directly change the pp's:graphics.GraphicsDevice.PresentationParameters.MultiSampleType = MultiSampleType.FourSamples;;  You can customize the presentation parameters by handling the PreparingDeviceSettings event.   ;  OK, I tried it, although it didn't work. Quality did not change, I tried 0,2,4,8 samples; also tried applyChanges(). I think it's meant to be read only.There has to be a way to set PPs before initialization... :\   ;  What MJP said, use the PreparingDeviceSettings event.   ;  OK, there msdn forums got something about that. It seems you have to create an event handler for preinitialization, and you can set your PPs at that time. Now to figure out anisotropy and RenderStates...http://msdn.microsoft.com/en-us/library/bb975403.aspxThanks!-TS   ;  This is quite interesting, considering that I've been directly assigning pp's for some time, and it actually worked.But yes, it seems you're not supposed to do this.I wonder why they didn't make all of it read only then.Good to know the correct way of doing it though, thanks :)   ;Quote:Original post by MJPYou can customize the presentation parameters by handling the PreparingDeviceSettings event.I just tried your link (same as mine) and it doesn't work... :*sigh*   