OpenTkEngine.Core.Graphics.DrawRect C# (CSharp) Method

DrawRect() public static method

public static DrawRect ( float x, float y, float z, float width, float height, int lineWidth, Color4 color ) : void
x float
y float
z float
width float
height float
lineWidth int
color Color4
return void
        public static void DrawRect(float x, float y, float z, float width, float height, int lineWidth, Color4 color)
        {
            GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line);
            GL.LineWidth(lineWidth);
            FillRect(x, y, z, width, height, color);
            GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
        }