The Open Toolkit library
1.0
|
Represents a handle to an OpenGL or OpenAL context. More...
Inherits IComparable< ContextHandle >, and IEquatable< ContextHandle >.
Public Member Functions | |
ContextHandle (IntPtr h) | |
Constructs a new instance with the specified handle. More... | |
override string | ToString () |
Converts this instance to its equivalent string representation. More... | |
override bool | Equals (object obj) |
Compares this instance to the specified object. More... | |
override int | GetHashCode () |
Returns the hash code for this instance. More... | |
int | CompareTo (ContextHandle other) |
Compares the numerical value of this instance to the specified ContextHandle and returns a value indicating their relative order. More... | |
bool | Equals (ContextHandle other) |
Compares this instance to the specified ContextHandle for equality. More... | |
Static Public Member Functions | |
static | operator IntPtr (ContextHandle c) |
Converts the specified ContextHandle to the equivalent IntPtr. More... | |
static | operator ContextHandle (IntPtr p) |
Converts the specified IntPtr to the equivalent ContextHandle. More... | |
static bool | operator== (ContextHandle left, ContextHandle right) |
Compares two ContextHandles for equality. More... | |
static bool | operator!= (ContextHandle left, ContextHandle right) |
Compares two ContextHandles for inequality. More... | |
Public Attributes | |
IntPtr | handle |
Static Public Attributes | |
static readonly ContextHandle | Zero = new ContextHandle(IntPtr.Zero) |
A read-only field that represents a handle that has been initialized to zero. More... | |
Properties | |
IntPtr | Handle [get] |
Gets a System.IntPtr that represents the handle of this ContextHandle. More... | |
Represents a handle to an OpenGL or OpenAL context.
OpenTK.ContextHandle.ContextHandle | ( | IntPtr | h | ) |
Constructs a new instance with the specified handle.
h | A System.IntPtr containing the value for this instance. |
int OpenTK.ContextHandle.CompareTo | ( | ContextHandle | other | ) |
Compares the numerical value of this instance to the specified ContextHandle and returns a value indicating their relative order.
other | The ContextHandle to compare to. |
override bool OpenTK.ContextHandle.Equals | ( | object | obj | ) |
Compares this instance to the specified object.
obj | The System.Object to compare to. |
bool OpenTK.ContextHandle.Equals | ( | ContextHandle | other | ) |
Compares this instance to the specified ContextHandle for equality.
other | The ContextHandle to compare to. |
override int OpenTK.ContextHandle.GetHashCode | ( | ) |
Returns the hash code for this instance.
|
explicitstatic |
Converts the specified IntPtr to the equivalent ContextHandle.
p | The System.IntPtr to convert. |
|
explicitstatic |
Converts the specified ContextHandle to the equivalent IntPtr.
c | The ContextHandle to convert. |
|
static |
Compares two ContextHandles for inequality.
left | The ContextHandle to compare. |
right | The ContextHandle to compare to. |
|
static |
Compares two ContextHandles for equality.
left | The ContextHandle to compare. |
right | The ContextHandle to compare to. |
override string OpenTK.ContextHandle.ToString | ( | ) |
Converts this instance to its equivalent string representation.
|
static |
A read-only field that represents a handle that has been initialized to zero.
|
get |
Gets a System.IntPtr that represents the handle of this ContextHandle.