AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
FontMaterial类 参考
类 FontMaterial 继承关系图:
MaterialInstance GfxObject

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 SetTransparent (boolean enabled)
 
boolean GetTransparent ()
 
boolean GetReceiveShadow ()
 
boolean GetStatic ()
 
long GetMorphTargetCount ()
 
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

成员函数说明

◆ Cast()

static FontMaterial FontMaterial.Cast ( GfxObject obj)
static

重载 MaterialInstance .

◆ GetAlphaTest()

float FontMaterial.GetAlphaTest ( )

重载 MaterialInstance .

◆ SetAlphaTest()

void FontMaterial.SetAlphaTest ( float val)

Alpha测试的值

重载 MaterialInstance .

◆ SetText() [1/2]

Vector2 FontMaterial.SetText ( String text,
float height )

Set the text string to display.

参数
textthe string
heightthe resolution of the texture.
#param fontName the font name.
返回
the width and height of the texture.

◆ SetText() [2/2]

Vector2 FontMaterial.SetText ( String text,
float height,
String fontName )

Set the text string to display.

参数
textthe string
heightthe resolution of the texture.
#param fontName the font name.
返回
the width and height of the texture.