After creating a headless context with
ctx = create_context(standalone=True)
ctx.viewport = (0, 0, 500, 500)
and creating a vertex array, I wish to get the image data of vao.render()
. Is there any way to do this?
Edit: Actually, I'm not sure how to even get the image data for a normal context without just screenshotting it. Is there a way to implement either version of the problem?