How to access PreparingDeviceSettingEventArgs.Grap

2019-09-11 15:16发布

问题:

I would like to change the GraphicsProfile to Reach. As told to me in another answer the solution would be to use:

graphics.PreparingDeviceSettings += (s, e) =>
{
    e.GraphicsDeviceInformation.GraphicsProfile = GraphicsProfile.Reach;
};

But my e.GraphicsDeviceInformation does not contain the GraphicsProfileproperty.

I don't understand how two implementations of the same class are present in MonoGame.Microsoft.Xna.Framework and MonoGame.Microsoft.Xna.Framework.Graphics.
The one in ...Framework is the one used by PreparingDeviceSettingEventArgs but the other one contains the property I need: GraphicsProfile.

(I feel like I am missing something very stupid here...)

回答1:

It is currently not supported. Simply create an XNA project for PCs.

But I then wonder how I could do if I want to support an Android build (MonoGame) which would not fit with the High profile.