AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
The texture. 更多...
Public 成员函数 | |
void | SetFilePath (Path^ strFile) |
Path^ | GetFilePath () |
bool | SetFileBuffer (Path^ id, CharBuffer^ buffer) |
bool | SetFileBits (Path^ id, CharBuffer^ buffer, int width, int height, int stride) |
void | SetScale (Vector2^ scale) |
Vector2^ | GetScale () |
void | SetTranslation (Vector2^ trans) |
Vector2^ | GetTranslation () |
void | SetRotation (Real angle) |
Real | GetRoation () |
void | UpdateTransform () |
Matrix4^ | GetTransform () |
void | RequestUpdate () |
![]() | |
void | SetName (String^ strName) |
String^ | GetName () |
![]() | |
String^ | GetObjectClassId () |
StringList^ | ListParentClassIds () |
The texture.
TODO:
Path ^ AnyCAD::Platform::Texture::GetFilePath | ( | ) |
Get image file name.
Real AnyCAD::Platform::Texture::GetRoation | ( | ) |
Get rotation factor.
Vector2 ^ AnyCAD::Platform::Texture::GetScale | ( | ) |
Get scale.
Matrix4 ^ AnyCAD::Platform::Texture::GetTransform | ( | ) |
Get transform matrix.
Vector2 ^ AnyCAD::Platform::Texture::GetTranslation | ( | ) |
Get translation.
void AnyCAD::Platform::Texture::RequestUpdate | ( | ) |
Request to update the texture after the image is changed.
bool AnyCAD::Platform::Texture::SetFileBits | ( | Path^ | id, |
CharBuffer^ | buffer, | ||
int | width, | ||
int | height, | ||
int | stride | ||
) |
load texture image from buffer.
id | the uniqu ID |
buffer | the image buffer data. |
width | the width |
height | the height |
stride | the stride |
bool AnyCAD::Platform::Texture::SetFileBuffer | ( | Path^ | id, |
CharBuffer^ | buffer | ||
) |
load texture image from buffer.
id | the uniqu ID |
buffer | the image buffer data. |
void AnyCAD::Platform::Texture::SetFilePath | ( | Path^ | strFile | ) |
Set image file name.
strFile | the file name. |
void AnyCAD::Platform::Texture::SetRotation | ( | Real | angle | ) |
Rotation.
angle | the rotation factor. |
void AnyCAD::Platform::Texture::SetScale | ( | Vector2^ | scale | ) |
Set scale.
scale | the scale factor. |
void AnyCAD::Platform::Texture::SetTranslation | ( | Vector2^ | trans | ) |
Move.
trans | the offset factor. |
void AnyCAD::Platform::Texture::UpdateTransform | ( | ) |
Update the transform after change the transform factors..