FerretEngine/src/Graphics/ResolutionManager.cs
/// <summary>
/// Sets the device to use the draw pump
/// Sets correct aspect ratio
/// </summary>
Sets the device to use the draw pump
Sets correct aspect ratio
Sets the device to use the draw pump Sets correct aspect ratio
public void BeginDraw()
        {
            FullViewport();
            _graphicsDevice.GraphicsDevice.Clear(Color.Black);
            ResetViewport();
            _graphicsDevice.GraphicsDevice.Clear(Color.Black);
        }
public void BeginDraw ( ) { FullViewport ( ) ; _graphicsDevice . GraphicsDevice . Clear ( Color . Black ) ; ResetViewport ( ) ; _graphicsDevice . GraphicsDevice . Clear ( Color . Black ) ; }
Sets the device to use the draw pump
Sets correct aspect ratio
Sets the device to use the draw pump Sets correct aspect ratio
// Start by resetting viewport to (0,0,1,1) // Clear to Black // Calculate Proper Viewport according to Aspect Ratio // and clear that // This way we are gonna have black bars if aspect ratio requires it and // the clear color on the rest