Beispiel #1
0
        public void Draw(GlRectangle Border, GlColor drawColor, float drawWidth)
        {
            float curWidth = this.getCurrentGlWidth();

            Gl.glLineWidth(drawWidth);
            this.Draw(Border, drawColor);
            Gl.glLineWidth(curWidth);
        }
Beispiel #2
0
        public void setDrawingColor(GlColor newColor)
        {
            if (newColor == null)
            {
                return;
            }

            this.DrawingColor = newColor as GlWinDrawColor;
        }
Beispiel #3
0
        public void DrawFill(GlRectangle Border, GlColor drawColor)
        {
            GlColor curColor = this.getCurrentGlColor();

            if (drawColor != null)
            {
                Gl.glColor3f(drawColor.R, drawColor.G, drawColor.B);
            }

            this.DrawFill(Border);
            Gl.glColor3f(curColor.R, curColor.G, curColor.B);;
        }
Beispiel #4
0
        /// <summary>
        /// Draws the figure with given color. Changes Gl drawing color and then rolls it back. If drawColor is equal to null draws the figure with current drawing color.
        /// </summary>
        public void Draw(GlColor drawColor)
        {
            GlColor curColor = this.getCurrentGlColor();

            if (drawColor != null)
            {
                Gl.glColor3f(drawColor.R, drawColor.G, drawColor.B);
            }

            this.Draw();
            Gl.glColor3f(curColor.R, curColor.G, curColor.B);
        }
Beispiel #5
0
        public void Draw(float length, GlColor drawColor)
        {
            GlColor curColor = base.getCurrentGlColor();

            if (drawColor != null)
            {
                Gl.glColor3f(drawColor.R, drawColor.G, drawColor.B);
            }

            this.Draw(length);
            Gl.glColor3f(curColor.R, curColor.G, curColor.B);
        }
Beispiel #6
0
 public virtual void DrawFill(GlRectangle Border, GlColor drawColor)
 {
     throw new System.NotImplementedException();
 }
Beispiel #7
0
 public virtual void Draw(GlRectangle Border, GlColor drawColor, float lineWidth)
 {
     throw new System.NotImplementedException();
 }
Beispiel #8
0
 public virtual void Draw(GlColor drawColor)
 {
     throw new System.NotImplementedException();
 }
Beispiel #9
0
 public void setBackgroundColor(GlColor C)
 {
     Gl.glClearColor(C.R, C.G, C.B, 1);//set window background
 }
Beispiel #10
0
 public GlWinDrawColor(GlColor copyColor)
 {
 }
Beispiel #11
0
 public static bool Equals(GlColor C1, GlColor C2)
 {
     throw new System.NotImplementedException();
 }
Beispiel #12
0
 public virtual void Validate(GlColor color)
 {
     throw new System.NotImplementedException();
 }
Beispiel #13
0
 public GlColor(GlColor copyColor)
 {
 }
Beispiel #14
0
 public virtual void Draw(float length, float width, GlColor drawColor)
 {
     throw new System.NotImplementedException();
 }