コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TriangleBuffer"/> class.
        /// </summary>
        /// <param name="specification">The specification for the vertices in the buffer.</param>
        public TriangleBuffer(VertexSpecification specification)
        {
            if (specification == null)
            {
                throw new ArgumentNullException(nameof(specification));
            }

            Specification = specification;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VertexArray"/> class.
 ///
 /// </summary>
 /// <param name="specification">The vertex specification to use for this vertex array.</param>
 public VertexArray(VertexSpecification specification)
 {
     _specification = specification;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VertexSpecification"/> class
 /// that starts as a copy of an existing vertex specification.
 /// </summary>
 /// <param name="specification">The vertex specification to copy.</param>
 public VertexSpecification(VertexSpecification specification)
 {
     _entries = new List <Entry>(specification._entries);
 }