C# Class StarWarrior.Primitives.Lines

Show file Open project: thelinuxlich/starwarrior_CSharp

Private Properties

Property Type Description

Public Methods

Method Description
AddLine ( float x1, float y1, float x2, float y2 ) : void

The add line.

Draw ( Vector2 position ) : void

The draw.

Lines ( PrimitiveBatch primitiveBatch ) : System.Collections.Generic

Initializes a new instance of the Lines class.

Method Details

AddLine() public method

The add line.
public AddLine ( float x1, float y1, float x2, float y2 ) : void
x1 float The x 1.
y1 float The y 1.
x2 float The x 2.
y2 float The y 2.
return void

Draw() public method

The draw.
public Draw ( Vector2 position ) : void
position Vector2 The position.
return void

Lines() public method

Initializes a new instance of the Lines class.
public Lines ( PrimitiveBatch primitiveBatch ) : System.Collections.Generic
primitiveBatch PrimitiveBatch The primitive batch.
return System.Collections.Generic