[PyOpenGL-Users] [ pyopengl-Support Requests-643668 ] WGL ChoosePixelFormat calling error
Brought to you by:
mcfletch
From: <no...@so...> - 2002-11-25 17:36:14
|
Support Requests item #643668, was opened at 2002-11-25 12:36 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=205988&aid=643668&group_id=5988 Category: GL Group: v2.0 Status: Open Priority: 5 Submitted By: David Hughes (dwhughes) Assigned to: Nobody/Anonymous (nobody) Summary: WGL ChoosePixelFormat calling error Initial Comment: System: Win98, Python 2.2.2 PYOPENGL-2.0.0.44.WIN32-PY2.2.EXE Win32 extensions v.148 Trying to run the openGLDemo .py included with Pythonwin, I cannot execute pfd = createPIXELFORMATDESCRIPTOR() because I don't seem to have that function. I replaced the call with pfd = PIXELFORMATDESCRIPTOR() <snip value assignments> ppfd = PIXELFORMATDESCRIPTORPtr(pfd) the call that causes problems is pixelformat = ChoosePixelFormat(dc, ppfd) with the following trace File "C:\Python22\Lib\site- packages\Pythonwin\pywin\Demos\openGLDemo.py", line 121, in _SetupPixelFormat pixelformat = ChoosePixelFormat(dc, ppfd) TypeError: Type error. Expected _p_q_const__PIXELFORMATDESCRIPTOR How should I be calling the PixelFormat functions? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=205988&aid=643668&group_id=5988 |