ARCed.Controls.GraphicsDeviceService.GraphicsDeviceService C# (CSharp) Метод

GraphicsDeviceService() статический приватный Метод

Constructor is private, because this is a singleton class: client controls should use the public AddRef method instead.
static private GraphicsDeviceService ( IntPtr windowHandle, int width, int height ) : System
windowHandle System.IntPtr
width int
height int
Результат System
		GraphicsDeviceService(IntPtr windowHandle, int width, int height)
		{
			this.parameters = new PresentationParameters
			{
				BackBufferWidth = Math.Max(width, 1),
				BackBufferHeight = Math.Max(height, 1),
				BackBufferFormat = SurfaceFormat.Color,
				DepthStencilFormat = DepthFormat.Depth24,
				DeviceWindowHandle = windowHandle,
				PresentationInterval = PresentInterval.Immediate,
				IsFullScreen = false
			};

			this.graphicsDevice = new GraphicsDevice(GraphicsAdapter.DefaultAdapter,
												GraphicsProfile.Reach,
												this.parameters);
		}