AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
Vector2 | SetText (String text, float height, String fontName) |
Vector2 | SetText (String text, float height) |
void | SetBillboard (boolean bEnabled) |
void | ClearBackground () |
void | SetBackground (Vector3 val) |
Vector3 | GetBackground () |
void | SetAlphaTest (float val) |
float | GetAlphaTest () |
boolean | GetBillboard () |
Public 成员函数 继承自 MaterialInstance | |
String | GetName () |
void | SetName (String val) |
long | GetHashCodeId () |
MaterialTemplate | GetTemplate () |
long | GetUpdateVersion () |
short | GetLineWidth () |
void | SetLineWidth (short val) |
boolean | GetDepthTest () |
void | SetDepthTest (boolean val) |
boolean | GetDepthWrite () |
void | SetDepthWrite (boolean val) |
UniformSet | GetUniforms () |
EnumBlendingMode | GetBlending () |
void | SetBlending (EnumBlendingMode val) |
float | GetRenderOrder () |
void | SetRenderOrder (float val) |
void | SetColor (Vector3 val) |
Vector3 | GetColor () |
void | SetOpacity (float val) |
float | GetOpacity () |
void | SetFaceSide (EnumFaceSide val) |
EnumFaceSide | GetFaceSide () |
void | SetVertexColors (boolean val) |
boolean | GetVertexColors () |
void | SetVertexColors4 (boolean val) |
boolean | GetVertexColors4 () |
void | SetRGB (short r, short g, short b) |
void | SetColor (float r, float g, float b) |
void | SetColorByRGB (float r, float g, float b) |
void | SetColorByVec3 (Vector3 v) |
void | SetTransparent (boolean enabled) |
boolean | GetTransparent () |
boolean | GetReceiveShadow () |
boolean | GetStatic () |
long | GetMorphTargetCount () |
void | SetFixedSize (boolean fixedSize) |
boolean | IsFixedSize () |
void | RequestUpdate () |
void | ComputeHashCode () |
void | AddDefine (String key, String value) |
void | AddTexture (String name, Texture texture) |
Texture | GetTexture (String name) |
void | SetUniform (String name, boolean val) |
void | SetUniform (String name, int val) |
void | SetUniform (String name, EnumTextureUnit val) |
void | SetUniform (String name, float val) |
void | SetUniform (String name, Vector2 val) |
void | SetUniform (String name, Vector3 val) |
void | SetUniform (String name, Vector4 val) |
void | SetUniform (String name, Matrix3 val) |
void | SetUniform (String name, Matrix4 val) |
void | SetUniform (String name, Matrix2 val) |
void | SetUniformBool (String name, boolean val) |
void | SetUniformInt (String name, int val) |
void | SetUniformTextureUnit (String name, EnumTextureUnit val) |
void | SetUniformFloat (String name, float val) |
void | SetUniformVec2 (String name, Vector2 val) |
void | SetUniformVec3 (String name, Vector3 val) |
void | SetUniformVec4 (String name, Vector4 val) |
void | SetUniformMat2 (String name, Matrix2 val) |
void | SetUniformMat3 (String name, Matrix3 val) |
void | SetUniformMat4 (String name, Matrix4 val) |
Public 成员函数 继承自 GfxObject | |
long | GetUuid () |
静态 Public 成员函数 | |
static FontMaterial | Cast (GfxObject obj) |
static FontMaterial | Create (String templateName) |
<> The font material
|
static |
重载 MaterialInstance .
float FontMaterial.GetAlphaTest | ( | ) |
重载 MaterialInstance .
void FontMaterial.SetAlphaTest | ( | float | val | ) |
Alpha测试的值
重载 MaterialInstance .
Vector2 FontMaterial.SetText | ( | String | text, |
float | height ) |
Set the text string to display.
text | the string |
height | the resolution of the texture. #param fontName the font name. |
Vector2 FontMaterial.SetText | ( | String | text, |
float | height, | ||
String | fontName ) |
Set the text string to display.
text | the string |
height | the resolution of the texture. #param fontName the font name. |