C# Class StarWarrior.Primitives.TrianglesStrip

The triangles strip.
Show file Open project: thelinuxlich/starwarrior_CSharp

Private Properties

Property Type Description

Public Methods

Method Description
AddPoint ( float x1, float y1 ) : void

The add point.

Draw ( Vector2 transform ) : void

The draw.

TrianglesStrip ( GraphicsDevice device, PrimitiveBatch primitiveBatch ) : System

Initializes a new instance of the TrianglesStrip class.

Method Details

AddPoint() public method

The add point.
public AddPoint ( float x1, float y1 ) : void
x1 float The x 1.
y1 float The y 1.
return void

Draw() public method

The draw.
Need at least 3 points in order to draw the triangles.
public Draw ( Vector2 transform ) : void
transform Vector2 The transform.
return void

TrianglesStrip() public method

Initializes a new instance of the TrianglesStrip class.
public TrianglesStrip ( GraphicsDevice device, PrimitiveBatch primitiveBatch ) : System
device GraphicsDevice The device.
primitiveBatch PrimitiveBatch The primitive batch.
return System