How to access PreparingDeviceSettingEventArgs.GraphicsDeviceInformation.GraphicsProfile?

为君一笑 提交于 2019-12-13 04:47:15

问题


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.



来源:https://stackoverflow.com/questions/11929628/how-to-access-preparingdevicesettingeventargs-graphicsdeviceinformation-graphics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!