find-gl-context ( gadget -- )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic

Prev:draw-gadget* ( gadget -- )
Next:The UI coordinate system


Vocabulary
ui.gadgets.worlds

Inputs
gadgeta gadget


Outputs
None

Word description
Makes the OpenGL context of the gadget's containing native window the current OpenGL context.

Notes
This word should be called from graft* and ungraft* methods which need to allocate and deallocate OpenGL resources, such as textures, display lists, and so on.

Definition