Le samedi 24 novembre 2012 14:02:11 Benoît Minisini a écrit : > Le 24/11/2012 12:05, Laurent Carlier a écrit : > > Le jeudi 22 novembre 2012 20:30:41 laurent bernabe a écrit : > >> Hello, > >> > >> I've noticed that the Gb.glu component is missing the two functions > >> project() and unproject(). > >> Will a very next version of Gambas implement it ? > >> > >> Otherwise I've found the implementation code (C++) so that I still can > >> create a new module with both functions : > >> http://www.opengl.org/wiki/GluProject_and_gluUnProject_code > >> > >> Regards. > > > > Glu.Project, Glu.UnProject and Glu.UnProject4 are now part of > > gb.opengl.glu > > component in rev #5355 > > > > http://gambas.svn.sourceforge.net/viewvc/gambas?view=revision&revisionS5 > > 5 > > > > Regards, > > ++ > > I think that the following code in 'GLUproject.c' is false: > > ... > for (i=0; i<16; i++) > view[i] = *((GLdouble *)GB.Array.Get(VARG(Model),i)); > for (i=0; i<16; i++) > view[i] = *((GLdouble *)GB.Array.Get(VARG(Proj),i)); > for (i=0; i<4; i++) > view[i] = *((GLint *)GB.Array.Get(VARG(View),i)); > ... > > Do you want me to add to the Gambas API helper functions to quickly > convert between a Gambas array and a C array?
Oups, bad copy a paste! will fix it soon. Such API helper will be useful. ++
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user