Hej cl-opengl developers,
I'm trying to use push-attrib, but unfortunately it doesn't work.
(gl:push-attrib :current-bit)
-+ Errors (1) `-- (in macroexpansion of (CL-OPENGL:PUSH-ATTRIB :CURRENT-BIT)) (hint: For more precise location, try *BREAK-ON-SIGNALS*.) Unknown CFFI type: CL-OPENGL::SERVER-ATTRIBUTES.
;; external (defun push-attrib (&rest attributes) (declare (dynamic-extent attributes)) (%gl:push-attrib (make-bitfield 'server-attributes attributes)))
(define-compiler-macro push-attrib (&whole form &rest attributes) (if (every #'keywordp attributes) `(%gl:push-attrib ,(make-bitfield 'server-attributes attributes)) form))
There's no enum called server-attributes anywhere in the current HEAD. Another problem is that pop-attrib is exported, but is never defined (only the defcfun function (%pop-attrib), no high-level/wrapper method).
Any hints?
Thanks.
kind regards, Bastian
Hello,
First off, sorry for the late reply.
On Fri, May 16, 2008 at 2:07 PM, Bastian Müller turbo24prg@web.de wrote:
I'm trying to use push-attrib, but unfortunately it doesn't work.
[...]
Another problem is that pop-attrib is exported, but is never defined
Thanks for the report. I believe I have pushed fixes for these issues, but I haven't tested them properly. Let me know if they work for you.
cl-opengl-devel@common-lisp.net