public Triangle(GraphicsDevice device, PrimitiveBatch primitiveBatch) { this.device = device; this.batch = primitiveBatch; state = new RasterizerState(); state.CullMode = CullMode.CullCounterClockwiseFace; state.FillMode = FillMode.WireFrame; }
/// <summary>Initializes a new instance of the <see cref="TrianglesStrip" /> class.</summary> /// <param name="device">The device.</param> /// <param name="primitiveBatch">The primitive batch.</param> public TrianglesStrip(GraphicsDevice device, PrimitiveBatch primitiveBatch) { this.IsFilled = true; this.Color = Color.White; this.point = new List <Vector2>(); this.device = device; this.batch = primitiveBatch; this.state = new RasterizerState { CullMode = CullMode.CullCounterClockwiseFace, FillMode = FillMode.WireFrame }; }
/// <summary>Initializes a new instance of the <see cref="Triangle" /> class.</summary> /// <param name="primitiveBatch">The primitive batch.</param> public Triangle(PrimitiveBatch primitiveBatch) { this.Color = Color.White; this.points = new List <Vector2>(); this.batch = primitiveBatch; }
/// <summary>Initializes a new instance of the <see cref="Triangle" /> class.</summary> /// <param name="primitiveBatch">The primitive batch.</param> public Triangle(PrimitiveBatch primitiveBatch) { this.Color = Color.White; this.points = new List<Vector2>(); this.batch = primitiveBatch; }
/// <summary>Initializes a new instance of the <see cref="Lines" /> class.</summary> /// <param name="primitiveBatch">The primitive batch.</param> public Lines(PrimitiveBatch primitiveBatch) { this.Color = Color.White; this.lines = new List <Vector2>(); this.batch = primitiveBatch; }
public Lines(GraphicsDevice device, PrimitiveBatch primitiveBatch) { this.device = device; this.batch = primitiveBatch; }