Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="lineSize"></param>
        /// <param name="colors"></param>
        public void DrawRect(float lineSize, Color[] colors)
        {
            RectMesh mesh = graphics.GetMeshFactory <RectMesh>();

            mesh.lineWidth = lineSize;
            mesh.colors    = colors;

            graphics.SetMeshDirty();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="lineSize"></param>
        /// <param name="lineColor"></param>
        /// <param name="fillColor"></param>
        public void DrawRect(float lineSize, Color lineColor, Color fillColor)
        {
            RectMesh mesh = graphics.GetMeshFactory <RectMesh>();

            mesh.lineWidth = lineSize;
            mesh.lineColor = lineColor;
            mesh.fillColor = null;
            mesh.colors    = null;

            graphics.color = fillColor;
            graphics.SetMeshDirty();
        }