with-translation ( loc quot -- )
Factor handbook > UI framework > Implementing new gadgets > Customizing gadget appearance > Implementing custom drawing logic > OpenGL utility words

Prev:do-matrix ( quot -- )
Next:make-dlist ( type quot -- id )


Inputs and outputs
loca pair of integers
quota quotation

Word description
Calls the quotation with a translation by loc pixels applied to the current GL_MODELVIEW matrix, restoring the matrix when the quotation is done.