OpenGL win32 Python

Maxim Khitrov mkhitrov at gmail.com
Fri Apr 17 15:50:46 CEST 2009


On Fri, Apr 17, 2009 at 9:27 AM, gintare statkute <g.statkute at gmail.com> wrote:
> Hello,
>
> i found an example for OpenGL in windows.
> It is incredibly helpful, but how to rewrite it to be useful in Python.
>
> How to give address of pfd in Python?:
> iFormat = ChoosePixelFormat( hDC, &pfd );
> SetPixelFormat( hDC, iFormat, &pfd );

Take a look at ctypes.byref and ctypes.pointer. Post the results if
you get it to work :)

- Max



More information about the Python-list mailing list