On Fri, Apr 17, 2009 at 9:27 AM, gintare statkute <g.statk...@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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to