Python Script Engine
7.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 |