Jump to content
  • Advertisement
Sign in to follow this  

Two programs interface with one another

This topic is 4677 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!