Inheritance: IDisposable
コード例 #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;
 }
コード例 #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
     };
 }
コード例 #3
0
ファイル: Triangle.cs プロジェクト: twobob/starwarrior_CSharp
 /// <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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #6
0
 public Lines(GraphicsDevice device, PrimitiveBatch primitiveBatch)
 {
     this.device = device;
     this.batch  = primitiveBatch;
 }