AnyCAD Rapid API 2023
Help you to create a better world!
FontMaterial Class Reference
Inheritance diagram for FontMaterial:
MaterialInstance GfxObject

Public Member Functions

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 Member Functions inherited from MaterialInstance
String GetName ()
 
void SetName (String val)
 
long GetHashCodeId ()
 
MaterialTemplate GetTemplate ()
 
void SetTemplate (MaterialTemplate val)
 
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)
 
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 SetColor (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, Uniform val)
 
- Public Member Functions inherited from GfxObject
long GetUuid ()
 

Static Public Member Functions

static FontMaterial Cast (GfxObject obj)
 
static FontMaterial Create (String templateName)
 

Detailed Description

<> The font material

Member Function Documentation

◆ Cast()

static FontMaterial FontMaterial.Cast ( GfxObject  obj)
static

Reimplemented from MaterialInstance.

◆ SetText() [1/2]

Vector2 FontMaterial.SetText ( String  text,
float  height 
)

Set the text string to display.

Parameters
textthe string
heightthe resolution of the texture.
#param fontName the font name.
Returns
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.

Parameters
textthe string
heightthe resolution of the texture.
#param fontName the font name.
Returns
the width and height of the texture.