More control

Hi

I am new to openGL programming, i am trying to work out if there is a method of drawing in the openGL window without having to assign a display function and running the main loop, i need to edit pixels based on the results of a simulation i am running after each time step,

Any suggestions or advice would be most helpful