[Gambas-user] [Gambas3] The static method Gl.SelectBuffer
Laurent Carlier
lordheavym at ...626...
Sun Nov 18 00:30:29 CET 2012
Le samedi 17 novembre 2012 19:01:06 laurent bernabe a écrit :
> 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é
>
Here a small project based on example 13.3 from
http://www.glprogramming.com/red/chapter13.html
Hope it can help! Picking wasn't easy to implement; it gaves me
a headache :)
If you need some functionnality (extensions) in Opengl that you can test, just
ask, i will see if i can implement them.
Regards,
++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glpicking-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 5706 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121118/33b1b6ff/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121118/33b1b6ff/attachment.sig>
More information about the User
mailing list