AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIPhongMaterial.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIPhongMaterial_H_
4 #define _APIPhongMaterial_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIMaterial.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class Material;
21  : public Material
22  {
24  public:
30  void SetAmbient (const ColorValue& clr) ;
35  ColorValue GetAmbient () const;
41  void SetDiffuse (const ColorValue& clr) ;
46  ColorValue GetDiffuse () const;
52  void SetSpecular (const ColorValue& clr) ;
57  ColorValue GetSpecular () const;
63  void SetEmission (const ColorValue& clr) ;
68  ColorValue GetEmission () const;
74  void SetShininess (const float& value) ;
79  float GetShininess () const;
80  };//PhongMaterial;
81 }}//API
82 
83 #endif //_APIPhongMaterial_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The material.
Definition: APIMaterial.h:19
The material with phong Algorithm.
Definition: APIPhongMaterial.h:20
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
Color Value.
Definition: APIMath.h:183