Python inside

I have come across a very nice open-source molecular modelling program
(pymol) that is written in Python. I’d like to be able to invoke and
control this within my SDL/OpenGL application. Is this a feasible
project?

There is a Python API. My first thoughts are that I’d need to tell the
API about my SDL surface, then let pymol do the rendering, up until
swapbuffers.

Any thoughts from the gang?

Gib

Do you know about pygame?
http://pygame.org/