Handbook
Glossary
do-attribs ( bits quot -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Customizing gadget appearance
»
Implementing custom drawing logic
»
OpenGL utility words
Prev:
do-enabled ( what quot -- )
Next:
do-matrix ( quot -- )
Vocabulary
opengl
Inputs
bits
an
integer
quot
a
quotation
Outputs
None
Word description
Wraps a quotation in
glPushAttrib
/
glPopAttrib
calls.
Definition
USING:
kernel
opengl.gl
;
IN:
opengl
:
do-attribs
( bits quot -- )
swap
glPushAttrib
call
glPopAttrib
;
inline