A common simple rendering approach in OpenGL that is one level of complexity above glDrawPixels
is to draw pixels to a texture, apply the texture to a quad and render from the quad.
This presentation will walk you through the steps, and as a bonus will show you how to use CUDA/OpenGL interop, which will make your ray tracing animation run quicker, and should get you some brownie points at least on your university project.