Inheritance: IDisposable
Exemplo n.º 1
0
 public Triangle(GraphicsDevice device, PrimitiveBatch primitiveBatch)
 {
     this.device    = device;
     this.batch     = primitiveBatch;
     state          = new RasterizerState();
     state.CullMode = CullMode.CullCounterClockwiseFace;
     state.FillMode = FillMode.WireFrame;
 }
Exemplo n.º 2
0
 /// <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
     };
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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;
 }
Exemplo n.º 5
0
 /// <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;
 }
Exemplo n.º 6
0
 public Lines(GraphicsDevice device, PrimitiveBatch primitiveBatch)
 {
     this.device = device;
     this.batch  = primitiveBatch;
 }