drawing to memory instead of a window


i’m using glfw, and i want to know
if there is a way i can draw to a
buffer in memory only, without even
opening a window…


Hi !

I have no idea about glfw, but you can create a context attached to a bitmap instead of a window if yoy want to, check the options for wglCreateContext, I think you can do the same on X.

Some video hardware also support this, pbuffer for example, but then you have to make sure that the hardware support it.