The first thing that comes to mind is to apply a few calls to glViewport() . You must display each vertical bar in turn, and then adjust the viewport to the next vertical bar and repeat. I do this to split the screen in half and visualize the scene from two different points of view, but there is no reason why you will have to display the same scene in the second or nth viewport.
So my {edited} code looks something like this:
glEnable(GL_SCISSOR_TEST); ...
source share