glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, *array)

The last one is the pointer to array, previous - the data type in the array
The position is defined by the glRasterPos() function