[Gambas-user] [Gambas3] The static method Gl.SelectBuffer
laurent bernabe
laurent.bernabe at ...626...
Sat Nov 17 19:01:06 CET 2012
Hello : thank you for your answer.
Ok, I went into the Gambas SVN repository, in the source
/trunk/gb.opengl/src/GLselectFeedback.c and I noticed the use of an
internal buffer.
But I still don't understand how I can get the value stored in the buffer,
once I left the GL_SELECT mode.
I've joined my openGL application source files : MMain class, and
ColoredCube.class.
In MMain, method screen_Draw(), I tried to get the value of the array
returned by gl.RenderMode(gl.RENDER), but I get an error, line 37 : Null
object reference.
What's wrong with my code ?
Regards
Laurent Bernabé
2012/11/17 <tommyline at ...2340...>
> As set in GLselectFeedback.c file in gb.opengl/src gambas source directory
> gl.SelectBuffer sets buffer with size 2048 and uses internal selectbuffer
> array of size 2048.
>
> ----- Original Message -----
> From: "laurent bernabe" <laurent.bernabe at ...626...>
> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> Sent: Saturday, 17 November, 2012 11:25:44 AM
> Subject: Re: [Gambas-user] [Gambas3] The static method Gl.SelectBuffer
>
> Thank you :)
>
> I think I'll wait for him : also because I have another difficulty
> regarding object selection/picking in Gambas3 OpenGL.
>
> Regards
>
> 2012/11/17 François Gallo <basic.gambas at ...626...>
>
> >
> > Le 17 nov. 2012 à 09:38, laurent bernabe <laurent.bernabe at ...626...> a
> > écrit :
> >
> > > Hello,
> > >
> > > I am trying to do picking in OpenGL in Gambas3.
> > > So I need to use the method Gl.SelectBuffer, but I am facing a big
> > problem :
> > >
> > > Whereas the Official OpenGL documentation says that it takes arguments
> > Size
> > > (int) and Buffer (array of unsigned int), (and Gambas one says it also
> > !!!)
> > > : I noticed that this function don't take any argument.
> > >
> > > So, how can set then get the buffer to use with gl.SelectBuffer() ?
> >
> > For the gb.opengl component, i recommend you to contact (or wait) Laurent
> > Carlier.
> > he is the author of gb.opengl and certainly who is the best placed to
> > answer to your
> > question.
> >
> > >
> > > Thanks in advance :)
> > >
> > > Regards
> > >
> > > Laurent Bernabé
> > >
> >
> ------------------------------------------------------------------------------
> > > Monitor your physical, virtual and cloud infrastructure from a single
> > > web console. Get in-depth insight into apps, servers, databases,
> vmware,
> > > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > > Pricing starts from $795 for 25 servers or applications!
> > > http://p.sf.net/sfu/zoho_dev2dev_nov
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Monitor your physical, virtual and cloud infrastructure from a single
> > web console. Get in-depth insight into apps, servers, databases, vmware,
> > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > Pricing starts from $795 for 25 servers or applications!
> > http://p.sf.net/sfu/zoho_dev2dev_nov
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColoredCube.module
Type: application/octet-stream
Size: 1177 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121117/11e26184/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MMain.module
Type: application/octet-stream
Size: 2009 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121117/11e26184/attachment-0001.obj>
More information about the User
mailing list