Advertisement

Two programs interface with one another

Started by July 29, 2005 08:19 PM
2 comments, last by subflood 19 years, 3 months ago
Hello, I want to program a particle editor for Linux but I have come across a problem. The GUI of the editor is going to be written using GTK while the actual rendering of particles will be done with SDL using OpenGL for hardware acceleration. I cannot use another GUI for SDL so that is not an option therefore I need to somehow make the GUI talk to the particle system. The thing is I have no idea how to make something like this work. Help!
I don't know too much about this, but I am going to hazard a guess regardless [smile].

Should one be able to have a GTK window and an SDL window operate from the same program?
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
Advertisement
You could either make your opengl program work in a GTK window with something like gtkglext or come up with a simple communication protocol and use pipes or sockets to send messages between the two processes.
I went with the pipes because I couldn't get gtkglext to work and I didn't feel like learning about sockets. I'm very satisified with using pipes as it was surprisingly easy to implement and works great. thanks.

This topic is closed to new replies.

Advertisement