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