great! I'll give it a try.

BTW: Is there a binding for cgGL? Before you told me this, I've already moved on by wrapping my OpenGL calls in C functions and call them in Common Lisp via CFFI. It worked for both SBCL and CCL until I added cg support. After that CCL compaint "invalid profile type" and the image is exactly the one without the cg shader. So it would be very helpful if there is a well-written cg binding for cl-opengl.

- Rujia



On Fri, Oct 4, 2013 at 7:38 PM, Bart Botta <00003b@gmail.com> wrote:
Sounds like https://github.com/3b/cl-opengl/issues/42 which is fixed
in the git repo at https://github.com/3b/cl-opengl and should be in
next quicklisp update.

On Fri, Oct 4, 2013 at 4:39 AM, Rujia Liu <rujia.liu@gmail.com> wrote:
> I've tested on 3 other machines. 2 with OpenGL 2.1 and 2 with OpenGL 4.3
>
> It seems that OpenGL 2.1 machines can run SBCL executable while OpenGL 4.3
> cannot. But on all machines ccl executable cannot run.
>
> I don't think glClearColor has changed between OpenGL 2.1 and OpenGL 4.3,
> from the latest reference:
>
> http://www.opengl.org/sdk/docs/man/xhtml/glClearColor.xml
>
> So I'm confused. Any help would be appreciated. Thanks!!!
>
> - Rujia
>
>
> On Fri, Oct 4, 2013 at 5:26 PM, Rujia Liu <rujia.liu@gmail.com> wrote:
>>
>> Hi!
>>
>> I'm new to cl-opengl and was reading this tutorial:
>>
>>
>> http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/
>>
>> I've downloaded tut02.lisp, but have trouble running it.
>>
>> On my machine, ccl 1.6 (windows XP, 32 bit, OpenGL 1.5) gives:
>>
>> ; Warning: Don't know how to setup a hook before saving cores on this
>> Lisp.
>> ; While executing: #<Anonymous Function #xCE06D0E>, in process
>> listener(1).
>> > Error: Couldn't find function glClearColor
>> > While executing: CL-OPENGL-BINDINGS::GENERATE-GL-FUNCTION, in process
>> > listener
>> (1).
>> > Type :GO to continue, :POP to abort, :R for a list of available
>> > restarts.
>> > If continued: Skip loading "tut02.lisp"
>> > Type :? for other options.
>>
>> But SBCL 1.1.4 (win32-thread fork) runs perfectly.
>>
>> On another machine (windows 7, 64 bit, OpenGL 4.3), both ccl 1.6 and SBCL
>> (both 32-bit) gave the error message before.
>>
>> Could anyone give me some suggestions? Thanks in advance
>>
>> - Rujia
>>
>>
>>
>>
>>
>