Click or drag to resize
DigitalRuneBillboard Class
Represents an oriented, textured quad used for drawing impostors, particles, text, and other effects.
Inheritance Hierarchy

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

The Billboard type exposes the following members.

Constructors
  NameDescription
Protected methodBillboard
Initializes a new instance of the Billboard class.
Top
Methods
  NameDescription
Public methodClone
Creates a new Billboard that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Billboard.
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Billboard derived class.
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.)
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.
Public propertyColor
Gets or sets the tint color of the billboard.
Public propertyName
Gets or sets the name of this billboard.
Public propertyOrientation
Gets or sets the orientation of the billboard.
Top
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).

See Also