AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APITexture.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APITexture_H_
4 #define _APITexture_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIRenderResource.h"
9 
10 namespace AnyCAD{ namespace API
11 {
20  : public RenderResource
21  {
23  public:
28  void SetFilePath (const Path& strFile) ;
33  Path GetFilePath () const;
40  bool SetFileBuffer (const Path& id, const CharBuffer& buffer) ;
50  bool SetFileBits (const Path& id, const CharBuffer& buffer, int width, int height, int stride) ;
55  void SetScale (const Vector2& scale) ;
60  Vector2 GetScale () const;
65  void SetTranslation (const Vector2& trans) ;
70  Vector2 GetTranslation () const;
75  void SetRotation (Real angle) ;
80  Real GetRoation () const;
84  void UpdateTransform () ;
89  Matrix4 GetTransform () const;
93  void RequestUpdate () ;
94  };//Texture;
95 }}//API
96 
97 #endif //_APITexture_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Matrix4.
Definition: APIMath.h:248
Point or vector.
Definition: APIMath.h:16
The texture.
Definition: APITexture.h:19
The rendering resource.
Definition: APIRenderResource.h:19
std::vector< char > CharBuffer
Definition: APIString.h:14
TODO:
Definition: APIPath.h:16
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
double Real
Definition: APIMath.h:7