private void SetArrayForChannel <T>(Mesh.InternalShaderChannel channel, T[] values) { this.SetSizedArrayForChannel(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel), values, this.SafeLength(values)); }
private void SetListForChannel <T>(Mesh.InternalShaderChannel channel, List <T> values) { this.SetSizedArrayForChannel(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel), Mesh.ExtractArrayFromList(values), this.SafeLength <T>(values)); }
private T[] GetAllocArrayFromChannel <T>(Mesh.InternalShaderChannel channel) { return(this.GetAllocArrayFromChannel <T>(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel))); }
public void GetColors(List <Color> colors) { if (colors == null) { throw new ArgumentNullException("The result colors list cannot be null.", "colors"); } this.GetListForChannel <Color>(colors, this.vertexCount, Mesh.InternalShaderChannel.Color, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Color)); }
public void GetTangents(List <Vector4> tangents) { if (tangents == null) { throw new ArgumentNullException("The result tangents list cannot be null.", "tangents"); } this.GetListForChannel <Vector4>(tangents, this.vertexCount, Mesh.InternalShaderChannel.Tangent, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Tangent)); }
public void GetNormals(List <Vector3> normals) { if (normals == null) { throw new ArgumentNullException("The result normals list cannot be null.", "normals"); } this.GetListForChannel <Vector3>(normals, this.vertexCount, Mesh.InternalShaderChannel.Normal, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Normal)); }
public void GetVertices(List <Vector3> vertices) { if (vertices == null) { throw new ArgumentNullException("The result vertices list cannot be null.", "vertices"); } this.GetListForChannel <Vector3>(vertices, this.vertexCount, Mesh.InternalShaderChannel.Vertex, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Vertex)); }