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