Thread: [PyOpenGL-Users] WGL: ChoosePixelFormat, CreatePIXELFORMATDESCRIPTOR
Brought to you by:
mcfletch
From: Rene J. <chi...@ho...> - 2001-12-12 20:13:51
|
Hi. The openGLDemo from Pythonwin creates a PIXELFORMATDESCRIPTOR using CreatePIXELFORMATDESCRIPTOR, but I can't find that call anywhere in.. well.. the entire universe world really. Searched everywhere. This approach is wrong: Desc = PIXELFORMATDESCRIPTOR() Desc.xxx = yyy ... ChoosePixelFormat(DCHandle, Desc) So is this: ChoosePixelFormat(DCHandle, PIXELFORMATDESCRIPTORPtr (Desc)) I get a 'TypeError.. Expected _p_q_const__PIXELFORMATDESCRIPTOR' thrown in my face. But what is right then?? Thanks in advance. chi...@ho... _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |