Struct Bgr565
- Namespace
- Microsoft.Xna.Framework.Graphics.PackedVector
- Assembly
- MonoGame.Framework.dll
Packed vector type containing unsigned normalized values ranging from 0 to 1. The x and z components use 5 bits, and the y component uses 6 bits.
public struct Bgr565 : IPackedVector<ushort>, IPackedVector, IEquatable<Bgr565>
- Implements
- Inherited Members
Constructors
Bgr565(Vector3)
Initializes a new instance of this structure.
public Bgr565(Vector3 vector)
Parameters
Bgr565(float, float, float)
Initializes a new instance of this structure.
public Bgr565(float x, float y, float z)
Parameters
xfloatThe initial x-component value for this structure.
yfloatThe initial y-component value for this structure.
zfloatThe initial z-component value for this structure.
Properties
PackedValue
Directly gets or sets the packed representation of the value.
public ushort PackedValue { get; set; }
Property Value
Methods
Equals(Bgr565)
public bool Equals(Bgr565 other)
Parameters
otherBgr565
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToVector3()
Expands the packed representation of this structure to a Vector3.
public Vector3 ToVector3()
Returns
- Vector3
The expanded value.
ToVector4()
Expands the packed representation into a Vector4.
public Vector4 ToVector4()
Returns
Operators
operator ==(Bgr565, Bgr565)
Returns a value that indicates whether the two values are equal.
public static bool operator ==(Bgr565 lhs, Bgr565 rhs)
Parameters
lhsBgr565The value on the left of the equality operator.
rhsBgr565The value on the right of the equality operator.
Returns
- bool
true if the two values are equal; otherwise, false.
operator !=(Bgr565, Bgr565)
Returns a value that indicates whether the two value are not equal.
public static bool operator !=(Bgr565 lhs, Bgr565 rhs)
Parameters
lhsBgr565The value on the left of the inequality operator.
rhsBgr565The value on the right of the inequality operator.
Returns
- bool
true if the two value are not equal; otherwise, false.