protected static class MrShaderProgram.Data extends MrComponent.Data
Constructor and Description |
---|
Data(java.lang.String name,
MrShader vertexShader,
MrShader fragmentShader) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(MrAttribute attribute) |
void |
addUniform(MrUniform uniform) |
java.util.Map<java.lang.Integer,MrAttribute> |
getAttributes() |
MrShader |
getFragmentShader() |
int |
getId() |
java.lang.String |
getName()
Gets the name, it will be used in
MrComponent.getName() |
java.util.Map<java.lang.String,MrUniform> |
getUniforms() |
MrShader |
getVertexShader() |
void |
setId(int id) |
public java.lang.String getName()
MrComponent.Data
MrComponent.getName()
getName
in class MrComponent.Data
public int getId()
public void setId(int id)
public MrShader getVertexShader()
public MrShader getFragmentShader()
public void addUniform(MrUniform uniform)
public java.util.Map<java.lang.String,MrUniform> getUniforms()
public void addAttribute(MrAttribute attribute)
public java.util.Map<java.lang.Integer,MrAttribute> getAttributes()