TechEngine.Engine.FrameBuffer.DrawLine C# (CSharp) Method

DrawLine() public method

Draw a line from point0 to point1 in the framebuffer
http://en.wikipedia.org/wiki/Bresenham's_line_algorithm
public DrawLine ( Vector3 point0, Vector3 point1, int color ) : void
point0 Vector3
point1 Vector3
color int
return void
        public void DrawLine(Vector3 point0, Vector3 point1, int color)
        {
            DrawLine((int)point0.X, (int)point0.Y, (int)point1.X, (int)point1.Y, color);
        }

Same methods

FrameBuffer::DrawLine ( int x0, int y0, int x1, int y1, int color ) : void