dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] Handle problem


From: Dmitriy
Subject: [Pnet-developers] Handle problem
Date: Tue, 12 Oct 2004 02:02:57 +0600

How to link(bind) OpenGL to window, which was created with PNET 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)
{
  dc=GetDC(cwnd);

  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 PNET and linux?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]