Ypsilon.TitleSafe.DrawTitleSafeAreas C# (CSharp) Method

DrawTitleSafeAreas() public static method

public static DrawTitleSafeAreas ( GraphicsDevice graphics, VectorRenderer vectors, Microsoft.Xna.Framework.Color notActionSafeColor, Microsoft.Xna.Framework.Color notTitleSafeColor ) : void
graphics GraphicsDevice
vectors Ypsilon.Core.Graphics.VectorRenderer
notActionSafeColor Microsoft.Xna.Framework.Color
notTitleSafeColor Microsoft.Xna.Framework.Color
return void
        public static void DrawTitleSafeAreas(GraphicsDevice graphics, VectorRenderer vectors,
            Color notActionSafeColor, Color notTitleSafeColor)
        {
            int width = graphics.PresentationParameters.BackBufferWidth;
            int height = graphics.PresentationParameters.BackBufferHeight;
            int dx = (int)(width * 0.05);
            int dy = (int)(height * 0.05);
            // const int z = 0;
            /*(vectors.DrawLines(new[] {
                new Vector3(dx, dy, z),
                new Vector3(dx + width - 2 * dx, dy, z),
                new Vector3(dx + width - 2 * dx, dy + height - 2 * dy, z),
                new Vector3(dx, dy + height - 2 * dy, z) }, Matrix.Identity, notActionSafeColor, true);

            vectors.DrawLines(new[] {
                new Vector3(dx * 2, dy * 2, z),
                new Vector3(dx * 2 + width - 4 * dx, dy * 2, z),
                new Vector3(dx * 2 + width - 4 * dx, dy * 2 + height - 4 * dy, z),
                new Vector3(dx * 2, dy* 2 + height - 4 * dy, z) }, Matrix.Identity, notTitleSafeColor, true);*/
        }