On 11-04-18 08:39 AM, Abhijeet Rastogi wrote:
Thanks Davis for your reply.
But, then in C++ code, I have used it too... ( like in choiche = selectBuff[(hits*4)-1];)... So, what will I do in python code?

See the PyOpenGL documentation for glSelectBuffer, in the section Sample Code References you'll find a few links to sample code, including from OpenGLContext.  Basically you get back a list from the glRenderMode() call and you can iterate over the (near,far,names) records in that list:

    http://pyopengl.sourceforge.net/documentation/manual-3.0/glSelectBuffer.xhtml

HTH,
Mike


On Mon, Apr 18, 2011 at 5:46 PM, Joshua R. Davis <joshuardavis@q.com> wrote:
You just pass in the buffer size. This is in the code I pointed you to.

selectionBufferCapacity = 64
glSelectBuffer(selectionBufferCapacity)

Josh

On 2011 Apr 18, at 7:06 AM, Abhijeet Rastogi wrote:

> Also, I have noticed that in python, glSelectBuffer (size) → None is the specification. So, how am I supposed to use selectBuff. Because in C++, we also pass selectBuff's reference to the function.
>
> On Mon, Apr 18, 2011 at 5:33 PM, Abhijeet Rastogi <abhijeet.1989@gmail.com> wrote:
> Hi,
>
> I am not clear as to how do we use glSelectBuffer in pyopengl.
>
> So far, I have tried to convert it to python and my attempt is as follows:
> Python code:- http://sprunge.us/JPUj?python
> C++ code:- http://sprunge.us/YPhU?c++
>
>
>
>
> --
> Regards,
> Abhijeet Rastogi (shadyabhi)
> http://www.google.com/profiles/abhijeet.1989
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev_______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyOpenGL-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users

Joshua R. Davis    joshuardavis@q.com






--
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989
------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list PyOpenGL-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyopengl-users


-- 
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com