CAPI with opengl programmable pipeline
Hi,
I looked at the opengl example in the lispworks examples directory. It uses the fixed programmable pipeline. I have used that as a source and wrote 2-3 opengl based prototype apps. Works fine.
However, I want to move to the opengl programmable pipeline. If anyone has done that, and could share example code/experience in doing so, would be great as a starting point.
Btw, while coding up a few opengl examples, I wrote a small utility so that animations can be synced with the vsync. I have attached the file. Just pass the start-animation-with-vsync a function that does stuff you want and (re)displays the canvas containing the opengl pane. Ensure that you load this display.lisp after loading the opengl system.
The other patch is for anti aliasing. Replace cocoa.lisp with cocoa.lisp in the opengl code in LW distribution. Please take a backup of your cocoa.lisp! Kindly note that the vsycn and anti aliasing patches are tested only on LW for Mac. Hopefully the patches are useful.
Thanks,