Getting the handle to the current window?

grizzley90

02-11-2006 00:32:37

How would I be able to get the handle of the current window in mogre??

Bekas

02-11-2006 11:26:41

Like this:
IntPtr handle;

unsafe
{
fixed (void* p = &this.handle)
{
window.GetCustomAttribute("HWND", p);
}
}

Bekas

02-11-2006 13:42:32

I'll add custom overloads (similar to the SceneManager.Get/SetOption overloads) to GetCustomAttribute so that there's no need for the unsafe context and so that it can be used by VB.NET.