Re: [PyOpenGL-Users] Converting C++ code to python code
Brought to you by:
mcfletch
From: Abhijeet R. <abh...@gm...> - 2011-04-17 17:40:26
|
So, there is no need of defining anything because python will return it during the function call. That helped. Thanks Derakon. On Sun, Apr 17, 2011 at 10:44 PM, Derakon <de...@gm...> wrote: > > Any time that the C version of OpenGL code returns something by > reference, the Python version will just return the value directly. So > you should be able to do this: > > selectBuff = glSelectBuffer(BUFFER_LENGTH) > viewport = glGetIntegerv(GL_VIEWPORT) > > -- Regards, Abhijeet Rastogi (shadyabhi) http://www.google.com/profiles/abhijeet.1989 |