Exemple #1
0
        public GuiElementDrawCommandHandle createFillClosedLines(ClosedLoop outline, Color color, float Transparency, uint StartIndex)
        {
            ulong id;
            GuiElementDrawCommand guiElementDrawCommand = guiElementDrawCommands.createNewGuiElementDrawCommandAndIncrementId(GuiElementDrawCommand.EnumType.CLOSEDLOOPGEOMETRY, out id);

            guiElementDrawCommand.closedLoopGeometry = outline.points;

            return(new GuiElementDrawCommandHandle(id));
        }
Exemple #2
0
        public static ClosedLoop generateStandardOutline(
            float insetWidth,
            float insetHeight,
            SpatialVectorDouble size
            )
        {
            ClosedLoop outline = new ClosedLoop();

            outline.points.Add(new SpatialVectorDouble(new double[] { 0.0f, 0.0f }));
            outline.points.Add(new SpatialVectorDouble(new double[] { size.x, 0.0f }));
            outline.points.Add(new SpatialVectorDouble(new double[] { size.x, size.y - insetHeight }));
            outline.points.Add(new SpatialVectorDouble(new double[] { size.x - insetWidth, size.y }));
            outline.points.Add(new SpatialVectorDouble(new double[] { 0.0f, size.y }));
            return(outline);
        }