Click or drag to resize
DigitalRuneTextBillboard Class
Represents a text, which is rendered as billboard.
Inheritance Hierarchy

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class TextBillboard : Billboard

The TextBillboard type exposes the following members.

Constructors
  NameDescription
Public methodTextBillboard
Initializes a new instance of the TextBillboard class.
Public methodTextBillboard(Object, SpriteFont)
Initializes a new instance of the TextBillboard class.
Top
Methods
  NameDescription
Public methodClone
Creates a new Sprite that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Billboard.
(Overrides BillboardCloneCore(Billboard).)
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Billboard derived class.
(Overrides BillboardCreateInstanceCore.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvalidate
Invalidates the text billboard. See remarks.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAlpha
Gets or sets the opacity of the billboard.
(Inherited from Billboard.)
Public propertyColor
Gets or sets the tint color of the billboard.
(Inherited from Billboard.)
Public propertyFont
Gets or sets the font.
Public propertyName
Gets or sets the name of this billboard.
(Inherited from Billboard.)
Public propertyOrientation
Gets or sets the orientation of the billboard.
(Inherited from Billboard.)
Public propertyText
Gets or sets the text. See remarks.
Top
Remarks

DigitalRune Graphics supports two types of billboards:

  • ImageBillboard ... static or animated bitmap
  • TextBillboard ... text using a bitmap font

A billboard can be positioned by adding a BillboardNode to a 3D scene. The billboard orientation can be set using the Orientation property. See class BillboardOrientation for more information.

Billboard Size: To resize an ImageBillboard change the Size property or change the ScaleLocal of the associated scene node. To resize a TextBillboard change the Font or change the ScaleLocal of the associated scene node. (The font size is measured directly in world space unit, i.e. a 12 pt font is 12 units in world space.)

Cloning:
Billboards are cloneable. Clone creates a copy of the current sprite. The Texture of a ImageBillboard or the Text of a TextBillboard is copied by reference (no deep copy).

See Also