I'm working on a software renderer, and I need a way to draw the resulting bitmap to an X11 window. On Windows I'm drawing the bitmap directly to a window using StretchDIBits
. Is there any similar way to do it using XLib?
I'm aware of this answer, but I'm wondering how to go about updating the pixmap every frame? Deleting it and creating a new one each frame seems like it would be slow.