MGCL V10
V10
MGCL V10
|
MGMaterial defines OpenGL's Material attributes. [詳解]
公開メンバ関数 | |
MGMaterial () | |
MGMaterial (const float ambient[3], const float diffuse[3], const float specular[3], const float emission[3], float shininess, float transparency) | |
void | exec (MGRenderAttr::RENDERSIDE rs) const |
render GLAttribute process. [詳解] | |
void | setAmbientColor (const float ambientColor[3]) |
void | getAmbientColor (float ambientColor[3]) const |
void | setAmbientColor (float v0, float v1, float v2) |
void | setDiffuseColor (const float diffuseColor[3]) |
void | getDiffuseColor (float diffuseColor[3]) const |
void | setDiffuseColor (float v0, float v1, float v2) |
void | setSpecularColor (const float specularColor[3]) |
void | getSpecularColor (float specularColor[3]) const |
void | setSpecularColor (float v0, float v1, float v2) |
void | setEmissiveColor (const float emissiveColor[3]) |
void | getEmissiveColor (float emissiveColor[3]) const |
void | setEmissiveColor (float v0, float v1, float v2) |
void | setShininess (float shininess) |
float | getShininess () const |
void | setTransparency (float transparency) |
float | getTransparency () const |
long | identify_type () const |
Return This object's typeID. [詳解] | |
std::ostream & | out (std::ostream &ostrm) const |
Output function. [詳解] | |
フレンド | |
MG_DLL_DECLR friend MGOfstream & | operator<< (MGOfstream &buf, const MGMaterial &mt) |
Serialization fucntion. [詳解] | |
MG_DLL_DECLR friend MGIfstream & | operator>> (MGIfstream &buf, MGMaterial &mt) |
MGMaterial defines OpenGL's Material attributes.
See the private member data for the details.
MGMaterial::MGMaterial | ( | ) |
MGMaterial::MGMaterial | ( | const float | ambient[3], |
const float | diffuse[3], | ||
const float | specular[3], | ||
const float | emission[3], | ||
float | shininess, | ||
float | transparency | ||
) |
void MGMaterial::exec | ( | MGRenderAttr::RENDERSIDE | rs | ) | const |
render GLAttribute process.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return This object's typeID.
std::ostream& MGMaterial::out | ( | std::ostream & | ostrm | ) | const |
Output function.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void MGMaterial::setTransparency | ( | float | transparency | ) |
|
friend |
Serialization fucntion.
|
friend |