Re: FLI type error
"David McClain (as dbm at refined-audiometrics dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
> Both of these get a runtime error > "aPos" (and "triangleColor") cannot be converted to foreign type > (:POINTER OPENGL:GLCHAR). > Offhand… did the OpenGL API change since 10 years ago? Perhaps now expects an array of char, or a string pointer? > On Mar 7, 2026, at 09:59, Paul Werkowski (as pw at snoopy dot qozzy dot com) <[email protected]> wrote: > > I'm looking at some code from 5-10 years ago, experimenting with OPENGL, that uses the LW example code to setup the interface. The icosahedron example works fine so no issue there. > > Here are two fragments from my code. > > (let ((pos-attr (gl-get-attrib-location shader-pgm "aPos")) > > (let((unicolor (gl-get-uniform-location > shader-pgm "triangleColor"))) > > Both of these get a runtime error > "aPos" (and "triangleColor") cannot be converted to foreign type > (:POINTER OPENGL:GLCHAR). > > GLCHAR is defined in opengl/types.lisp as > > (fli:define-c-typedef (glchar (:foreign-name "GLchar")) > :char) > > Same issue with both LWW 8.1.2 64 bit and 7.1.2 32 bit. > > This all used to work. What could be wrong??? > > Puzzled again, > Paul > > > > _______________________________________________ > Lisp Hug - the mailing list for LispWorks users > [email protected] > http://www.lispworks.com/support/lisp-hug.html _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html