From mick at cs.wisc.edu Wed Jun 4 17:25:22 2014 From: mick at cs.wisc.edu (Mick Charles Beaver) Date: Wed, 4 Jun 2014 12:25:22 -0500 Subject: [Cl-opengl-devel] trouble running on ms windows Message-ID: Hi, I was poking around with the arcsynthesis GL tutorials and wanted to try coding them up in Lisp with SDL2. I was able to get the first tutorial running on Linux, but when I try to run it on Windows, I get an error when calling gl:create-shader. Specifically, SLIME breaks into: NIL is not of type (OR SYMBOL FUNCTION), and can't be FUNCALLed or APPLYed [Condition of type TYPE-ERROR] Is there something special that needs to be done for loading extensions on Windows? The shader-vao sample runs for me, but I can't determine if GLUT is doing something special or not. I can't wholly rule out that I've done something silly, so I've attached the source. -Mick -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gltut01.lisp Type: application/octet-stream Size: 2878 bytes Desc: not available URL: From luismbo at gmail.com Thu Jun 5 21:18:21 2014 From: luismbo at gmail.com (=?UTF-8?Q?Lu=C3=ADs_Oliveira?=) Date: Thu, 5 Jun 2014 22:18:21 +0100 Subject: [Cl-opengl-devel] trouble running on ms windows In-Reply-To: References: Message-ID: On Wed, Jun 4, 2014 at 6:25 PM, Mick Charles Beaver wrote: > Is there something special that needs to be done for loading extensions on > Windows? The shader-vao sample runs for me, but I can't determine if GLUT is > doing something special or not. This is the special bit that GLUT does: ;; (setq %gl:*gl-get-proc-address* 'get-proc-address) SDL should have something similar to glutGetProcAddress(). HTH, -- Lu?s Oliveira http://kerno.org/~luis/