From luismbo at gmail.com Fri Apr 2 21:15:48 2010 From: luismbo at gmail.com (=?ISO-8859-1?Q?Lu=EDs_Oliveira?=) Date: Fri, 2 Apr 2010 22:15:48 +0100 Subject: [cl-opengl-devel] OpenGL 3.3/4.0 bindings In-Reply-To: <77cb99c01003141244u6974d68dy289293451dbbdb4a@mail.gmail.com> References: <77cb99c01003131421g5b73b7ffs9bd05972cc873b46@mail.gmail.com> <391f79581003131628q6d006c45h2efea5bbd069ba4e@mail.gmail.com> <77cb99c01003141244u6974d68dy289293451dbbdb4a@mail.gmail.com> Message-ID: On Sun, Mar 14, 2010 at 7:44 PM, Bart Botta <00003b at gmail.com> wrote: > OK with me, though if people actually started using the issue tracker > very much, I'd probably want to move it somewhere better. Done. now points to a bunch of github locations which makes your tree the official one, I suppose. You should get a c-l.net account. :-) -- Lu?s Oliveira http://r42.eu/~luis/ From dabukun at gmail.com Wed Apr 7 23:18:14 2010 From: dabukun at gmail.com (David Davis) Date: Wed, 7 Apr 2010 23:18:14 +0000 Subject: [cl-opengl-devel] gluProject and gluUnProject Message-ID: I want to use gluUnProject in order to do things on-screen when the user clicks with the mouse. I'm using Ubuntu, and it seems that the opengl libraries that come with it do not come with the glu(Un)Project methods defined. However, after poking around a bit in the source, it looks pretty straight-forward to create the lisp methods from the c methods, so I added the following to my glu.lisp file: (def-foreign-routine ("gluProject" project) void (obj-x gl:double) (obj-y gl:double) (obj-z gl:double) (modelview (* gl:double) (projection (* gl:double) (viewport (* gl:int)) (win-x (* gl:double) (win-y (* gl:double) (win-z (* gl:double))))))) (def-foreign-routine ("gluUnProject" unproject) void (win-x gl:double) (win-y gl:double) (win-z gl:double) (modelview (* gl:double) (projection (* gl:double) (viewport (* gl:int)) (obj-x (* gl:double) (obj-y (* gl:double) (obj-z (* gl:double))))))) These are purely based off of looking around at how the other glu methods were defined. Are these definitions correct? I'm unable to really try them out because I don't understand how to pass double pointers to these methods. I'm just getting started with CL, and loving it so far, but the application I'm currently working on has definitely hit a roadblock. Can somone point me in the right direction as far as whether how I'm defining these methods is correct, and if so, how I pass pointer-style vars to the method calls to get the results? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From luismbo at gmail.com Fri Apr 9 07:38:47 2010 From: luismbo at gmail.com (=?ISO-8859-1?Q?Lu=EDs_Oliveira?=) Date: Fri, 9 Apr 2010 08:38:47 +0100 Subject: [cl-opengl-devel] gluProject and gluUnProject In-Reply-To: References: Message-ID: On Thu, Apr 8, 2010 at 12:18 AM, David Davis wrote: > I want to use gluUnProject in order to do things on-screen when the user > clicks with the mouse.? I'm using Ubuntu, and it seems that the opengl > libraries that come with it do not come with the glu(Un)Project methods > defined. They're defined in the CL-GLU system, which you need to load. HTH, -- Lu?s Oliveira http://r42.eu/~luis/ From dabukun at gmail.com Fri Apr 9 12:56:16 2010 From: dabukun at gmail.com (David Davis) Date: Fri, 09 Apr 2010 08:56:16 -0400 Subject: [cl-opengl-devel] gluProject and gluUnProject In-Reply-To: References: Message-ID: <4BBF23F0.2030306@gmail.com> Lu?s Oliveira wrote: > On Thu, Apr 8, 2010 at 12:18 AM, David Davis wrote: > >> I want to use gluUnProject in order to do things on-screen when the user >> clicks with the mouse. I'm using Ubuntu, and it seems that the opengl >> libraries that come with it do not come with the glu(Un)Project methods >> defined. >> > > They're defined in the CL-GLU system, which you need to load. > > HTH, > > Hi Lu?s, A 'egrep "[pP]roject" /usr/share/common-lisp/source/opengl/opengl/glu.lisp' returns nothing for me. Maybe the CL opengl code in Ubuntu 9.10 is way out of date? -Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From dabukun at gmail.com Fri Apr 9 13:43:09 2010 From: dabukun at gmail.com (David Davis) Date: Fri, 09 Apr 2010 09:43:09 -0400 Subject: [cl-opengl-devel] gluProject and gluUnProject In-Reply-To: References: <4BBF23F0.2030306@gmail.com> Message-ID: <4BBF2EED.9020604@gmail.com> Charlie McMackin wrote: > DEF-FOREIGN-ROUTINE is not something the cl-opengl library uses. A > cursory google lookup suggests it's something that's used in CL-SDL's > opengl bindings however. I might be wrong but if it's for SDL you're > looking, lispbuilder-sdl seems to have the greater 'mindshare' at the > moment.. Though cl-opengl's project site is > http://common-lisp.net/project/cl-opengl/ :) > HTH > > Yeah, the example I was basing my code off of may have been from cl-sdl, since it used both SDL and OpenGL. In the past, I've used SDL and OpenGL in conjunction, but I can probably get away with just using http://github.com/3b/cl-opengl without SDL as it looks like it implements gluProject and gluUnProject and I don't need SDL. Thanks! -Dave From malcolm.reynolds at gmail.com Fri Apr 9 13:24:15 2010 From: malcolm.reynolds at gmail.com (Malcolm Reynolds) Date: Fri, 9 Apr 2010 14:24:15 +0100 Subject: [cl-opengl-devel] gluProject and gluUnProject In-Reply-To: <4BBF23F0.2030306@gmail.com> References: <4BBF23F0.2030306@gmail.com> Message-ID: > A 'egrep "[pP]roject" /usr/share/common-lisp/source/opengl/opengl/glu.lisp' > returns nothing for me.? Maybe the CL opengl code in Ubuntu 9.10 is way out > of date? > Most likely. I'd recommend grabbing this code: http://github.com/3b/cl-opengl - it's much more up to date. Malcolm