[Mono-winforms-list] Handle Problem

Dmitriy ddmk@r66.ru
Tue, 12 Oct 2004 02:01:52 +0600

How to link(bind) OpenGL to window, which was created with MONO SWF?

for Windows and Microsoft .NET it is not a problem:
We get a handle from window in C# code and in C++ code
void Create(HWND hwnd)

  int iPixelFormat = ChoosePixelFormat(dc,&rPFD);
  if(!SetPixelFormat(dc,iPixelFormat,&rPFD)) FAIL("SetPixelFormat failed!");
  if(!(hRC = wglCreateContext(dc))) FAIL("wglCreateContext failed!");
//we have OpenGL context

How TODO so under mono and linux?