|  | Python Script Engine
    8.3
    GL Studio Editor Python Script API | 
| Public Types | |
| enum | ColorMaterialMode_e { NO_COLOR_MATERIAL , DIFFUSE_COLOR_MATERIAL , AMBIENT_COLOR_MATERIAL , DIFFUSE_AND_AMBIENT_COLOR_MATERIAL , EMISSION_COLOR_MATERIAL , SPECULAR_COLOR_MATERIAL } | 
| Public Member Functions | |
| Material () | |
| Material (Material &src) | |
| Material (str name, GlsColor ambient, GlsColor diffuse, GlsColor specular, GlsColor emission, float shininess, bool inUse, ColorMaterialMode_e mode) | |
| str | GetName () | 
| None | SetName (str name) | 
| GlsColor | GetAmbient () | 
| None | SetAmbient (GlsColor ambient) | 
| GlsColor | GetDiffuse () | 
| None | SetDiffuse (GlsColor diffuse) | 
| GlsColor | GetSpecular () | 
| None | SetSpecular (GlsColor specular) | 
| GlsColor | GetEmission () | 
| None | SetEmission (GlsColor emission) | 
| float | GetShininess () | 
| None | SetShininess (float shininess) | 
| ColorMaterialMode_e | GetColorMaterialMode () | 
| None | SetColorMaterialMode (ColorMaterialMode_e mode) | 
common editor interface material
| Material::Material | ( | ) | 
Default Constructor.
| Material::Material | ( | Material & | src | ) | 
Copy Constructor.
| src | material wrapper to copy | 
| Material::Material | ( | str | name, | 
| GlsColor | ambient, | ||
| GlsColor | diffuse, | ||
| GlsColor | specular, | ||
| GlsColor | emission, | ||
| float | shininess, | ||
| bool | inUse, | ||
| ColorMaterialMode_e | mode | ||
| ) | 
Creates a material with the given information set.
| name | name of new material | 
| ambient | ambient color of material | 
| diffuse | diffuse color of material | 
| specular | specular color of material | 
| emission | emission color of material | 
| shininess | shininess of material | 
| inUse | flag whether the material is being used | 
| mode | the color material mode of the material | 
| GlsColor Material::GetAmbient | ( | ) | 
Retrieves the material's ambient color.
| ColorMaterialMode_e Material::GetColorMaterialMode | ( | ) | 
Retrieves the material's shininess.
| GlsColor Material::GetDiffuse | ( | ) | 
Retrieves the material's diffuse color.
| GlsColor Material::GetEmission | ( | ) | 
Retrieves the material's emission color.
| str Material::GetName | ( | ) | 
Retrieves the material's name.
| float Material::GetShininess | ( | ) | 
Retrieves the material's shininess.
| GlsColor Material::GetSpecular | ( | ) | 
Retrieves the material's specular color.
| None Material::SetAmbient | ( | GlsColor | ambient | ) | 
Sets the material's ambient color.
| ambient | New ambient color for the material | 
| None Material::SetColorMaterialMode | ( | ColorMaterialMode_e | mode | ) | 
Sets the material's emission color.
| mode | New color material mode for the material | 
| None Material::SetDiffuse | ( | GlsColor | diffuse | ) | 
Sets the material's diffuse color.
| diffuse | New diffuse color for the material | 
| None Material::SetEmission | ( | GlsColor | emission | ) | 
Sets the material's emission color.
| emission | New emission color for the material | 
| None Material::SetName | ( | str | name | ) | 
Sets the material's name.
| name | New name of material | 
| None Material::SetShininess | ( | float | shininess | ) | 
Sets the material's emission color.
| shininess | New shininess value for the material | 
| None Material::SetSpecular | ( | GlsColor | specular | ) | 
Sets the material's specular color.
| specular | New specular color for the material |