Mac Guides | Samples

MonoMac.OpenGL.Half Structure

The name Half is derived from half-precision floating-point number. It occupies only 16 bits, which are split into 1 Sign bit, 5 Exponent bits and 10 Mantissa bits.

See Also: Half

Syntax

Remarks

Quote from ARB_half_float_pixel specification: Any representable 16-bit floating-point value is legal as input to a GL command that accepts 16-bit floating-point data. The result of providing a value that is not a floating-point number (such as infinity or NaN) to such a command is unspecified, but must not lead to GL interruption or termination. Providing a denormalized number or negative zero to GL must yield predictable results.

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.OpenGL.Half are listed below.

See Also: ValueType

Public Constructors

The new Half instance will convert the parameter into 16-bit half-precision floating-point.
The new Half instance will convert the parameter into 16-bit half-precision floating-point.
The new Half instance will convert the parameter into 16-bit half-precision floating-point.
Constructor used by ISerializable to deserialize the object.
The new Half instance will convert the parameter into 16-bit half-precision floating-point.

Public Fields

static readonly
EpsilonSingle. Smallest positive e for which half (1.0 + e) != half (1.0)
static readonly
MaxValueSingle. Largest positive half
static readonly
MinNormalizedValueSingle. Smallest positive normalized half
static readonly
MinValueSingle. Smallest positive half
static readonly
SizeInBytesInt32. The size in bytes for an instance of the Half struct.

Public Properties

[read-only]
IsNaNBoolean. Returns true if the Half represents Not A Number (NaN)
[read-only]
IsNegativeInfinityBoolean. Returns true if the Half represents negative infinity.
[read-only]
IsPositiveInfinityBoolean. Returns true if the Half represents positive infinity.
[read-only]
IsZeroBoolean. Returns true if the Half is zero.

Public Methods

CompareTo(Half) : Int32
Compares this instance to a specified half-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified half-precision floating-point number.
Equals(Half) : Boolean
Returns a value indicating whether this instance is equal to a specified OpenTK.Half value.
FromBinaryStream(BinaryReader)
Updates the Half by reading from a Stream.
static
FromBytes(Byte[], Int32) : Half
Converts an array of bytes into Half.
static
GetBytes(Half) : Byte[]
Returns the Half as an array of bytes.
GetObjectData(SerializationInfo, StreamingContext)
Used by ISerialize to serialize the object.
static
Parse(String) : Half
Converts the string representation of a number to a half-precision floating-point equivalent.
static
Parse(String, NumberStyles, IFormatProvider) : Half
Converts the string representation of a number to a half-precision floating-point equivalent.
ToBinaryStream(BinaryWriter)
Writes the Half into a Stream.
ToSingle() : Single
Converts the 16-bit half to 32-bit floating-point.
override
ToString() : String
Converts this Half into a human-legible string representation.
ToString(String, IFormatProvider) : String
Converts this Half into a human-legible string representation.
static
TryParse(String, out Half) : Boolean
Converts the string representation of a number to a half-precision floating-point equivalent. Returns success.
static
TryParse(String, NumberStyles, IFormatProvider, out Half) : Boolean
Converts the string representation of a number to a half-precision floating-point equivalent. Returns success.

Public Operators

static
Conversion to MonoMac.OpenGL.Half(Explicit) Converts a System.Double to a OpenTK.Half.
static
Conversion to MonoMac.OpenGL.Half(Explicit) Converts a System.Single to a OpenTK.Half.
static
Conversion to System.Double(Implicit) Converts a OpenTK.Half to a System.Double.
static
Conversion to System.Single(Implicit) Converts a OpenTK.Half to a System.Single.