|
BIMHome v1.0.0
BIMHome接口文档说明
|
材质类 更多...
#include <Material.h>
Public 类型 | |
| enum | MaterialType { BRASS , BRONZE , COPPER , GOLD , PEWTER , PLASTER , PLASTIC , SILVER , STEEL , STONE , SHINY_PLASTIC , SATIN , METALIZED , NEON_GNC , CHROME , ALUMINIUM , OBSIDIAN , NEON_PHC , JADE , RUBY , EMERALD , DEFAULT , USER_DEFINED } |
| 材质类型枚举 更多... | |
Public 成员函数 | |
| MaterialType | getType () const |
| 获取当前材质类型 | |
| Material () | |
| 默认构造函数 | |
| Material (const char *MatName) | |
| 通过材质名称构造 | |
| Material (const MaterialType MatType) | |
| 通过材质类型构造 | |
| bool | operator!= (const Material &m) const |
| 比较两个材质是否不相等 | |
| bool | operator== (const Material &m) const |
| 比较两个材质是否相等 | |
| void | set (const char *MatName) |
| 设置材质属性 | |
| void | setType (const MaterialType MatType) |
| 设置材质类型 | |
| ~Material () | |
Public 属性 | |
| Color | ambientColor |
| 环境光颜色 | |
| Color | diffuseColor |
| 漫反射颜色 | |
| Color | emissiveColor |
| 自发光颜色 | |
| float | shininess |
| 光泽度 | |
| Color | specularColor |
| 镜面反射颜色 | |
| float | transparency |
| 透明度 | |
Private 属性 | |
| MaterialType | _matType |
| 当前材质类型 | |
材质类
提供材质的定义和操作,包括预定义的标准材质和用户自定义材质。