public ModelMeshPart(ModelMesh parentMesh) { ParentMesh = parentMesh; ParentMesh.Parts.Add(this); Shader = parentMesh.DefaultShader; VertexBuffer = parentMesh.DefaultVertexBuffer; Material = parentMesh.DefaultMaterial; }
public ModelMeshPart(ModelMesh parentMesh, ShaderProgram shader, VertexBuffer vBuffer, ShaderMaterial material, int primCallCount) : this(parentMesh, shader, vBuffer, material, new ModelMeshPartPrimCall[primCallCount]) { }
public ModelMeshPart(ModelMesh parentMesh, ShaderProgram shader, VertexBuffer vBuffer, ShaderMaterial material, ModelMeshPartPrimCall[] primCalls) : this(parentMesh) { Shader = shader ?? Shader; VertexBuffer = vBuffer ?? VertexBuffer; Material = material ?? Material; PrimitiveCalls = primCalls; }