示例#1
0
 public ModelMeshPart(ModelMesh parentMesh)
 {
     ParentMesh = parentMesh;
     ParentMesh.Parts.Add(this);
     Shader       = parentMesh.DefaultShader;
     VertexBuffer = parentMesh.DefaultVertexBuffer;
     Material     = parentMesh.DefaultMaterial;
 }
示例#2
0
 public ModelMeshPart(ModelMesh parentMesh, ShaderProgram shader, VertexBuffer vBuffer, ShaderMaterial material, int primCallCount)
     : this(parentMesh, shader, vBuffer, material, new ModelMeshPartPrimCall[primCallCount])
 {
 }
示例#3
0
 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;
 }