Project/02 - Engine/LittleBigTools/GraphicsDeviceService.cs
/// <summary>
/// Creates the GraphicsDevice for the service.
/// </summary>
Creates the GraphicsDevice for the service.
Creates the GraphicsDevice for the service .
private void CreateDevice(IntPtr windowHandle)
        {
            parameters = new PresentationParameters();
            parameters.BackBufferWidth = 480;
            parameters.BackBufferHeight = 320;
            parameters.BackBufferFormat = SurfaceFormat.Color;
            parameters.DeviceWindowHandle = windowHandle;
            parameters.DepthStencilFormat = DepthFormat.Depth24Stencil8;
            parameters.IsFullScreen = false;
            GraphicsDevice = new GraphicsDevice();
            if (DeviceCreated != null)
                DeviceCreated(this, EventArgs.Empty);
        }
private void CreateDevice ( IntPtr windowHandle ) { parameters = new PresentationParameters ( ) ; parameters . BackBufferWidth = 480 ; parameters . BackBufferHeight = 320 ; parameters . BackBufferFormat = SurfaceFormat . Color ; parameters . DeviceWindowHandle = windowHandle ; parameters . DepthStencilFormat = DepthFormat . Depth24Stencil8 ; parameters . IsFullScreen = false ; GraphicsDevice = new GraphicsDevice ( ) ; if ( DeviceCreated != null ) DeviceCreated ( this , EventArgs . Empty ) ; }
Creates the GraphicsDevice for the service.
Creates the GraphicsDevice for the service .
// since we're using render targets anyway, the  // backbuffer size is somewhat irrelevant //Constructor with parameters not available in MonoGame
windowHandle
IntPtr