public void Draw(GlRectangle Border, GlColor drawColor, float drawWidth) { float curWidth = this.getCurrentGlWidth(); Gl.glLineWidth(drawWidth); this.Draw(Border, drawColor); Gl.glLineWidth(curWidth); }
public void setDrawingColor(GlColor newColor) { if (newColor == null) { return; } this.DrawingColor = newColor as GlWinDrawColor; }
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);; }
/// <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); }
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); }
public virtual void DrawFill(GlRectangle Border, GlColor drawColor) { throw new System.NotImplementedException(); }
public virtual void Draw(GlRectangle Border, GlColor drawColor, float lineWidth) { throw new System.NotImplementedException(); }
public virtual void Draw(GlColor drawColor) { throw new System.NotImplementedException(); }
public void setBackgroundColor(GlColor C) { Gl.glClearColor(C.R, C.G, C.B, 1);//set window background }
public GlWinDrawColor(GlColor copyColor) { }
public static bool Equals(GlColor C1, GlColor C2) { throw new System.NotImplementedException(); }
public virtual void Validate(GlColor color) { throw new System.NotImplementedException(); }
public GlColor(GlColor copyColor) { }
public virtual void Draw(float length, float width, GlColor drawColor) { throw new System.NotImplementedException(); }