|  | Python Script Engine
    1.0
    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 (String name, glsColor ambient, glsColor diffuse, glsColor specular, glsColor emission, float shininess, bool inUse, ColorMaterialMode_e mode) | |
| String | GetName () | 
| void | SetName (String name) | 
| glsColor | GetAmbient () | 
| void | SetAmbient (glsColor ambient) | 
| glsColor | GetDiffuse () | 
| void | SetDiffuse (glsColor diffuse) | 
| glsColor | GetSpecular () | 
| void | SetSpecular (glsColor specular) | 
| glsColor | GetEmission () | 
| void | SetEmission (glsColor emission) | 
| float | GetShininess () | 
| void | SetShininess (float shininess) | 
| ColorMaterialMode_e | GetColorMaterialMode () | 
| void | 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 | ( | String | 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.
| String Material::GetName | ( | ) | 
Retrieves the material's name.
| float Material::GetShininess | ( | ) | 
Retrieves the material's shininess.
| glsColor Material::GetSpecular | ( | ) | 
Retrieves the material's specular color.
| void Material::SetAmbient | ( | glsColor | ambient | ) | 
Sets the material's ambient color.
| ambient | New ambient color for the material | 
| void Material::SetColorMaterialMode | ( | ColorMaterialMode_e | mode | ) | 
Sets the material's emission color.
| mode | New color material mode for the material | 
| void Material::SetDiffuse | ( | glsColor | diffuse | ) | 
Sets the material's diffuse color.
| diffuse | New diffuse color for the material | 
| void Material::SetEmission | ( | glsColor | emission | ) | 
Sets the material's emission color.
| emission | New emission color for the material | 
| void Material::SetName | ( | String | name | ) | 
Sets the material's name.
| name | New name of material | 
| void Material::SetShininess | ( | float | shininess | ) | 
Sets the material's emission color.
| shininess | New shininess value for the material | 
| void Material::SetSpecular | ( | glsColor | specular | ) | 
Sets the material's specular color.
| specular | New specular color for the material |