do-matrix ( quot -- )
Factor documentation > Factor handbook > UI framework > Implementing new gadgets > Customizing gadget appearance > Implementing custom drawing logic > OpenGL utility words
Prev:do-attribs ( bits quot -- )
Next:with-translation ( loc quot -- )


Vocabulary
opengl

Inputs and outputs
quota quotation


Word description
Saves and restores the current matrix before and after calling the quotation.

Definition
USING: kernel opengl.gl ;

IN: opengl

: do-matrix ( quot -- ) glPushMatrix call glPopMatrix ; inline