Bgra4444 Structure

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Packed vector type containing unsigned normalized values, ranging from 0 to 1, using 4 bits each for x, y, z, and w.

Namespace:  Microsoft.Xna.Framework.Graphics.PackedVector
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Structure Bgra4444 _
    Implements IPackedVector(Of UShort), IPackedVector
public struct Bgra4444 : IPackedVector<ushort>, 
    IPackedVector

The Bgra4444 type exposes the following members.

Constructors

  Name Description
Public method Bgra4444(Vector4) Creates an instance of this object.
Public method Bgra4444(Single, Single, Single, Single) Creates an instance of this object.

Top

Properties

  Name Description
Public property PackedValue Gets or sets the packed representation of the vector.

Top

Methods

  Name Description
Public method Equals(Object) Tests an object to see if it is equal to this object. (Overrides ValueType.Equals(Object).)
Public method Equals(Bgra4444) Tests an object to see if it is equal to this object.
Public method GetHashCode Gets the hash code for this object. (Overrides ValueType.GetHashCode().)
Public method ToString Returns a string representation. (Overrides ValueType.ToString().)
Public method ToVector4 Unpacks this object to a four-component vector.

Top

Operators

  Name Description
Public operatorStatic member Equality Equality operator, which compares two objects to see if they are equal.
Public operatorStatic member Inequality Tests two objects to see if they are not equal.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IPackedVector.PackFromVector4 Converts a four-component vector into the format for this object.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.