/// <summary> /// Creates new instance of type <see cref="NativeVertexNormalCollection" />. /// </summary> /// <param name="mesh"> Mesh that hosts this collection. </param> public NativeVertexNormalCollection(NativeMesh mesh) { this.mesh = mesh; this.MeshHandle = mesh.CMeshHandle; this.UpdateCollection(); this.mesh.VerticesReallocated += (sender, args) => this.UpdateCollection(); }
/// <summary> /// Creates new instance of type <see cref="NativeVertexColor0Collection" />. /// </summary> /// <param name="mesh"> Mesh that hosts this collection. </param> protected NativeVertexColorCollection(NativeMesh mesh) { this.Mesh = mesh; this.MeshHandle = mesh.CMeshHandle; this.Mesh.VerticesReallocated += this.mesh_VerticesReallocated; this.UpdateCollection(); }
/// <summary> /// Creates new instance of type <see cref="NativeIndicesCollection" />. /// </summary> /// <param name="mesh"> Mesh that hosts this collection. </param> public NativeIndicesCollection(NativeMesh mesh) { this.mesh = mesh; this.MeshHandle = mesh.CMeshHandle; this.UpdateCollection(); }
/// <summary> /// Creates new instance of class <see cref="NativeVertexPositionCollection" />. /// </summary> /// <param name="mesh"> <see cref="NativeMesh" /> that hosts this collection. </param> public NativeVertexPositionCollection(NativeMesh mesh) { this.mesh = mesh; this.MeshHandle = mesh.CMeshHandle; this.UpdateCollection(); }
/// <summary> /// Creates new instance of type <see cref="NativeVertexTextureCoordinatesCollection" />. /// </summary> /// <param name="mesh"> Mesh that hosts this collection. </param> public NativeVertexTextureCoordinatesCollection(NativeMesh mesh) { this.MeshHandle = mesh.CMeshHandle; mesh.VerticesReallocated += this.mesh_VerticesReallocated; this.UpdateCollection(); }
/// <summary> /// Creates new instance of type <see cref="NativeVertexQTangentCollection" />. /// </summary> /// <param name="mesh"> Mesh that hosts this collection. </param> public NativeVertexQTangentCollection(NativeMesh mesh) { this.MeshHandle = mesh.CMeshHandle; mesh.VerticesReallocated += this.mesh_VerticesReallocated; this.UpdateCollection(); }
/// <summary> /// Creates new instance of class <see cref="NativeVertexColor0Collection" />. /// </summary> /// <param name="mesh"> <see cref="NativeMesh" /> that hosts this collection. </param> public NativeVertexColor0Collection(NativeMesh mesh) : base(mesh) { }