#include <PhxGraphicsEngine.h>
Inheritance diagram for Phx::GraphicsEngine::MaterialDescription:

Public Member Functions | |
| virtual void | resourceName (const String &resourceName)=0 |
| const String & | resourceName (void) const |
| virtual void | shininess (double shininess)=0 |
| Sets material shininess - the size of specular highlights. | |
| double | shininess (void) const |
| Gets the current shininess value for this material. | |
| virtual void | specular (const RgbaColor &specular)=0 |
| Sets the specular reflectance. | |
| const RgbaColor & | specular (void) const |
| Gets the current specular reflectance color. | |
| virtual void | ambient (const RgbaColor &ambient)=0 |
| Sets the ambient light reflectance. | |
| const RgbaColor & | ambient (void) const |
| Gets the current ambient reflectance. | |
| virtual void | diffuse (const RgbaColor &diffuse)=0 |
| Sets the diffuse light reflectance. | |
| const RgbaColor & | diffuse (void) const |
| Gets the current diffuse reflectance. | |
| virtual void | emission (const RgbaColor &emission)=0 |
| Sets the emission color for the surface. | |
| const RgbaColor & | emission (void) const |
| Gets the current emission color. | |
Protected Member Functions | |
| void | setResourceName (const String &name) |
| void | setShininess (double s) |
| void | setDiffuse (const RgbaColor &c) |
| void | setAmbient (const RgbaColor &c) |
| void | setSpecular (const RgbaColor &c) |
| void | setEmission (const RgbaColor &c) |
|
|
Gets the current ambient reflectance.
|
|
|
Sets the ambient light reflectance.
|
|
|
Gets the current diffuse reflectance.
|
|
|
Sets the diffuse light reflectance. The amount of diffuse light reflected from a surface is related to its angle relative to the light source.
|
|
|
Gets the current emission color.
|
|
|
Sets the emission color for the surface.
|
|
|
Gets the current shininess value for this material.
|
|
|
Sets material shininess - the size of specular highlights. If the new value is different from that in the material file, useFile() will become false.
|
|
|
Gets the current specular reflectance color.
|
|
|
Sets the specular reflectance. The amount of specular light reflected from a surface is related to its angle relative to the light source and to the viewer. Specular reflectance creates "highlights" with size controlled by the shininess attribute. Plastics typically have white specular, while metals tend to have specular match the diffuse color.
|
1.4.2