MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGMaterial クラス

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 MGOfstreamoperator<< (MGOfstream &buf, const MGMaterial &mt)
 Serialization fucntion. [詳解]
 
MG_DLL_DECLR friend MGIfstreamoperator>> (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.

void MGMaterial::getAmbientColor ( float  ambientColor[3]) const
inline
void MGMaterial::getDiffuseColor ( float  diffuseColor[3]) const
inline
void MGMaterial::getEmissiveColor ( float  emissiveColor[3]) const
inline
float MGMaterial::getShininess ( ) const
inline
void MGMaterial::getSpecularColor ( float  specularColor[3]) const
inline
float MGMaterial::getTransparency ( ) const
inline
long MGMaterial::identify_type ( ) const
inline

Return This object's typeID.

std::ostream& MGMaterial::out ( std::ostream &  ostrm) const

Output function.

void MGMaterial::setAmbientColor ( const float  ambientColor[3])
inline
void MGMaterial::setAmbientColor ( float  v0,
float  v1,
float  v2 
)
inline
void MGMaterial::setDiffuseColor ( const float  diffuseColor[3])
inline
void MGMaterial::setDiffuseColor ( float  v0,
float  v1,
float  v2 
)
inline
void MGMaterial::setEmissiveColor ( const float  emissiveColor[3])
inline
void MGMaterial::setEmissiveColor ( float  v0,
float  v1,
float  v2 
)
inline
void MGMaterial::setShininess ( float  shininess)
inline
void MGMaterial::setSpecularColor ( const float  specularColor[3])
inline
void MGMaterial::setSpecularColor ( float  v0,
float  v1,
float  v2 
)
inline
void MGMaterial::setTransparency ( float  transparency)

フレンドと関連関数の詳解

MG_DLL_DECLR friend MGOfstream& operator<< ( MGOfstream buf,
const MGMaterial mt 
)
friend

Serialization fucntion.

MG_DLL_DECLR friend MGIfstream& operator>> ( MGIfstream buf,
MGMaterial mt 
)
friend

このクラス詳解は次のファイルから抽出されました: