Пример #1
0
		public TriangleIndexVertexArray(int numTriangleIndices, int[] triangleIndexBase, int triangleIndexStride, int numVertices, Vector3[] vertexBase, int vertexStride)
		{
			IndexedMesh mesh = new IndexedMesh();
			mesh.TriangleCount = numTriangleIndices;
			mesh.TriangleIndexBase = triangleIndexBase;
			mesh.TriangleIndexStride = triangleIndexStride;
			mesh.VertexBase = vertexBase;
			mesh.VertexCount = numVertices;
			mesh.VertexStride = vertexStride;

			AddIndexedMesh(mesh);
		}
Пример #2
0
        public TriangleIndexVertexArray(int numTriangleIndices, int[] triangleIndexBase, int triangleIndexStride, int numVertices, Vector3[] vertexBase, int vertexStride)
        {
            IndexedMesh mesh = new IndexedMesh();

            mesh.TriangleCount       = numTriangleIndices;
            mesh.TriangleIndexBase   = triangleIndexBase;
            mesh.TriangleIndexStride = triangleIndexStride;
            mesh.VertexBase          = vertexBase;
            mesh.VertexCount         = numVertices;
            mesh.VertexStride        = vertexStride;

            AddIndexedMesh(mesh);
        }
Пример #3
0
 public void AddIndexedMesh(IndexedMesh indexedMesh)
 {
     _indexedMeshes.Add(indexedMesh);
 }
Пример #4
0
 public void AddIndexedMesh(IndexedMesh indexedMesh)
 {
     _indexedMeshes.Add(indexedMesh);
 }