OpenGL

Hi, I have a problem with OpenGL in LispWorks. It's functional, cause the icosahedron example is functional. But I don't know, how I can draw... I explain it: I'd like to programming in OpenGL by Lisp. I make CAPI INTERFACE and OpenGL pane in. When I evaluate (capi:display (make-instance 'my-interface)) the window shows up. I make triangle:
(defun triangle()
(opengl:gl-begin opengl:*gl-polygon*)
(opengl:gl-vertex4-i 1 0 0 1)
(opengl:gl-vertex4-i 0 1 0 1)
(opengl:gl-vertex4-i 0 0 1 1)
(opengl:gl-end))
and now I'd like to drawing it on OpenGL canvas in my-interface. How can I do it?
(sorry for my explanation... I hope u get on :) ).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Off-topic

This is off-topic for LtU. See the FAQ.