TextBillboard Class |
Namespace: DigitalRune.Graphics
The TextBillboard type exposes the following members.
Name | Description | |
---|---|---|
TextBillboard |
Initializes a new instance of the TextBillboard class.
| |
TextBillboard(Object, SpriteFont) |
Initializes a new instance of the TextBillboard class.
|
Name | Description | |
---|---|---|
Clone |
Creates a new Sprite that is a clone (deep copy) of the current instance.
| |
CloneCore |
Makes the instance a clone (deep copy) of the specified
Billboard.
(Overrides BillboardCloneCore(Billboard).) | |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the Billboard
derived class.
(Overrides BillboardCreateInstanceCore.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invalidate |
Invalidates the text billboard. See remarks.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Alpha |
Gets or sets the opacity of the billboard.
(Inherited from Billboard.) | |
Color |
Gets or sets the tint color of the billboard.
(Inherited from Billboard.) | |
Font |
Gets or sets the font.
| |
Name |
Gets or sets the name of this billboard.
(Inherited from Billboard.) | |
Orientation |
Gets or sets the orientation of the billboard.
(Inherited from Billboard.) | |
Text |
Gets or sets the text. See remarks.
|
DigitalRune Graphics supports two types of billboards:
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).