Paint.BaseGame.BaseGame C# (CSharp) Méthode

BaseGame() public méthode

Initializes a new instance of the Paint.BaseGame class.
public BaseGame ( ImageStateData imageStateData, ToolboxLayoutDefinition toolboxLayoutDefinition, int deviceScale ) : System
imageStateData ImageStateData ImageSaveData
toolboxLayoutDefinition Paint.ToolboxLayout.ToolboxLayoutDefinition Layout of the toolbox
deviceScale int Layout of the toolbox
Résultat System
        public BaseGame(ImageStateData imageStateData, ToolboxLayoutDefinition toolboxLayoutDefinition, int deviceScale)
        {
            this.ImageStateData = imageStateData;
            this.ToolboxLayoutDefinition = toolboxLayoutDefinition;
            this.DeviceScale = deviceScale;

            this.GraphicsDeviceManager = new GraphicsDeviceManager(this);
            this.GraphicsDeviceManager.IsFullScreen = true;

            if (imageStateData.Width > imageStateData.Height)
            {
                this.GraphicsDeviceManager.SupportedOrientations =
                    DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;
            }
            else
            {
                this.GraphicsDeviceManager.SupportedOrientations =
                    DisplayOrientation.Portrait | DisplayOrientation.PortraitUpsideDown;
            }

            this.Content.RootDirectory = "Content";
        }