Click or drag to resize
DigitalRuneImageBillboard Class
Represents an oriented, textured quad used for drawing impostors, particles, 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 class ImageBillboard : Billboard

The ImageBillboard type exposes the following members.

Constructors
  NameDescription
Public methodImageBillboard
Initializes a new instance of the ImageBillboard class.
Public methodImageBillboard(PackedTexture)
Initializes a new instance of the ImageBillboard 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.
(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.)
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 propertyAlphaTest
Gets or sets a reference value for alpha testing.
Public propertyAnimationTime
Gets or sets the normalized animation time.
Public propertyBlendMode
Gets or sets the blend mode.
Public propertyColor
Gets or sets the tint color of the billboard.
(Inherited from Billboard.)
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 propertySize
Gets or sets the size of the billboard in world space.
Public propertySoftness
Gets or sets the softness - see remarks.
Public propertyTexture
Gets or sets the billboard texture (with premultiplied alpha).
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