AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIFaceStyle.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIFaceStyle_H_
4 #define _APIFaceStyle_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIRenderStyle.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class Material;
13  class Texture;
22  : public RenderStyle
23  {
25  public:
31  void SetMaterial (const Material& material) ;
36  Material GetMaterial () const;
41  void SetTransparent (bool bEnable) ;
46  void SetTransparecy (const float& alpha) ;
51  bool IsTransparent () const;
57  void SetTexture (int idx, const Texture& pTex) ;
63  Texture GetTexture (int idx) const;
64  };//FaceStyle;
65 }}//API
66 
67 #endif //_APIFaceStyle_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
The face style.
Definition: APIFaceStyle.h:21
The material.
Definition: APIMaterial.h:19
The texture.
Definition: APITexture.h:19
The Scene node style.
Definition: APIRenderStyle.h:19
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33