Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected Primitive(PrimitiveBehaviour primitiveBehaviour)
 {
     PrimitiveBehaviour = primitiveBehaviour;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public Primitive(PrimitiveBehaviour primitiveBehaviour, PrimitiveTopology primitiveTopology, IEnumerable <IVertex> vertices, Color color) :
     this(primitiveBehaviour, primitiveTopology, vertices as IReadOnlyList <IVertex> ?? vertices.ToArray(), color)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public Primitive(PrimitiveBehaviour primitiveBehaviour, PrimitiveTopology primitiveTopology, Vertex[] vertices, Color color) :
     base(primitiveBehaviour, new Material(color), primitiveTopology, vertices)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected Primitive(PrimitiveBehaviour primitiveBehaviour, PrimitiveTopology primitiveTopology, IReadOnlyList <IVertex> vertices, Color color) :
     base(primitiveBehaviour, new Material(color), primitiveTopology, vertices)
 {
 }