public static class MrModel.Builder extends MrObject.MrObjectBuilder
MrModel
instancemName, mTransform, mUniformKeys
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MrModel |
createModel()
Creates a new model instance from this builder
|
MrModel.Builder |
setMaterials(MrMaterial[] materials)
Sets the materials of this model.
|
MrModel.Builder |
setMesh(MrMesh mesh)
Sets the mesh of this model.
|
MrModel.Builder |
setName(java.lang.String name)
Sets the name of this object.
|
MrModel.Builder |
setShaderProgram(MrShaderProgram shaderProgram)
Sets the shader program of this model.
|
MrModel.Builder |
setSkeleton(MrSkeleton skeleton)
Sets the skeleton of this model.
|
MrModel.Builder |
setTransform(MrTransform transform)
Sets the transform of this object.
|
MrModel.Builder |
setUniformKeys(java.util.Map<java.lang.String,MrUniformKey> uniformKeys)
Sets the uniformkeys of this object.
|
public MrModel.Builder setName(java.lang.String name)
MrObject.MrObjectBuilder
setName
in class MrObject.MrObjectBuilder
public MrModel.Builder setTransform(MrTransform transform)
MrObject.MrObjectBuilder
setTransform
in class MrObject.MrObjectBuilder
public MrModel.Builder setUniformKeys(java.util.Map<java.lang.String,MrUniformKey> uniformKeys)
MrObject.MrObjectBuilder
setUniformKeys
in class MrObject.MrObjectBuilder
public MrModel.Builder setShaderProgram(MrShaderProgram shaderProgram)
setShaderProgram
in class MrObject.MrObjectBuilder
shaderProgram
- public MrModel.Builder setMesh(MrMesh mesh)
mesh
- public MrModel.Builder setMaterials(MrMaterial[] materials)
materials
- public MrModel.Builder setSkeleton(MrSkeleton skeleton)
skeleton
- public MrModel createModel()