'Can I use pyglet.gl drawing on pyglet's canvas without pyglet's window?

Is it possible that only using opengl and pyglet's canvas without pyglet's window?

I only need to get image array from pyglet.image.get_buffer_manager

Left window (My Image) is what I get image array and show by cv2.imshow
Right window (train.py) is pyglet's window
shown as below:

enter image description here

Any alternative ways that I can draw with opengl but without pyglet's window? Is it possible drawing on pyglet.canvas ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source