NScumm.MonoGame.XnaGraphicsManager.XnaGraphicsManager C# (CSharp) Метод

XnaGraphicsManager() публичный Метод

public XnaGraphicsManager ( int width, int height, Core format, GameWindow window, GraphicsDevice device ) : Microsoft.Xna.Framework
width int
height int
format Core
window Microsoft.Xna.Framework.GameWindow
device GraphicsDevice
Результат Microsoft.Xna.Framework
        public XnaGraphicsManager(int width, int height, Core.Graphics.PixelFormat format, GameWindow window, GraphicsDevice device)
        {
            if (device == null)
                throw new ArgumentNullException("device");

            _window = window;
            _device = device;
            _width = width;
            _height = height;
            PixelFormat = format;

            _texture = new Texture2D(device, _width, _height);
            _textureCursor = new Texture2D(device, 16, 16);
            _palColors = new Color[256];
            _colors = new Color[_width * _height];
            _preferredAspect = (float)_width / _height;
        }