This is ctypes (http://docs.python.org/library/ctypes.html), a python library to allow direct access to functions and libraries written directly in C. Because python and C are very different, some parts of ctypes initially seem very strange.
On Thu, Feb 12, 2009 at 12:56 PM, [email protected] < [email protected]> wrote: > > Hi! > I cannot recognise what sort of python construct is this, > i do understand though that it's needed for passing arrays in opengl. > > vertices_gl = (GLfloat * len(vertices))(*vertices) > > This means multipling a type with an int and then calling it ? > Or casting ? > Never seen anything like this in python. > Thanks in advance! > > > -- Tristam MacDonald http://swiftcoder.wordpress.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
