#lisp - Fri 23 Mar 2007 between 00:01 and 01:21

NY Lost Funds



luisHmm, /nickserv info rydis says Last Seen: 1 week 6 days (2h 24m 8s) ago
alastair37question: opengl provides functions glMultMatrixd and glMultMatrixf, for double and single floats respectively. however, cl-opengl only has gl:mult-matrix, which complains when I pass it an array containing a single float. is there a way to get at glMultMatrixd, or failing that to convert a double float to a single-float?
luisalastair37: hmm, gl:mult-matrix should be converting I think
alastair37would it be a problem if the array i pass it were heterogeneous, with singles and doubles?
luisyou can convert with (float double 1.0)
alastair37: shouldn't be, hang on
alastair37(float double 1.0) errors. the prototype shown by slime is (float number &optional other)
nevermind, sorry.
luis:)
alastair37used it wrong
luisok, I see what's going on
alastair37what?
luiswrong type
let me just do a quick test
alastair37ok
luisalastair37: just pushed a patch which should fix your problem
alastair37in cl-opengl?
luiscl-opengl-thomas
alastair37-thomas
k
luisright
alastair37getting
works!
what did you change?
Dr^NickHas anyone implemented a general lisp-cocoa interface?
basically, I just want to write standard cocoa apps in lisp :P
I'd like to not be tied to OpenMCL
nyefHeh. I was just about to suggest OpenMCL.
I think there were a couple of SBCL-based projects for some sort of carbon or cocoa bridge, but I don't know how far they got.
Dr^Nick:\
I have stuff to call carbon
but I just came across : http://rubycocoa.org/mastering-cocoa-with-ruby
and its amazingly easy and just what I want for lisp :D
luisalastair37: use darcs diff -u --last=1 :)
alastair37ok
luisalastair37: unlike :float, %gl:float does conversion
alastair37: I'm not sure if there's a good reason why :float doesn't convert though.
alastair37hm.
nyefAhh... So that's why it's breaking. No binding stack pointer!
alastair37i reloaded the function, and now it complains that the values returned from cos and sin are not of type real.

Page: 2 9 16 23 

IrcArchive

NY Lost Funds