Custom drawing code has access to the full OpenGL API in the opengl vocabulary.
Gadgets which need to allocate and deallocate OpenGL resources such as textures, display lists, and so on, should perform the allocation in the graft* method, and the deallocation in the ungraft* method. Since those words are not necessarily called with the gadget's OpenGL context active, a utility word can be used to find and make the correct OpenGL context current: