SDL and GTK2



I'm attempting to learn SDL and would like to use GTK2 as the GUI framework under Centos 5.8. I've looked at some sample code, but so far I've not able to get any to compile.

For example, I tried this sdl-gtk-demo but it appears to require an older version of GTK?

What is required for an SDL application to draw onto a GTK2 widget or window? My set up is the following:

1-Centos 5.8
2-GTK2
3-The standard GCC that comes with Centos 5.8

Because this is targeted for an embedded system, I don't have the liberty to use a newer Centos distribution.

Perhaps a solution may be to write a standalone SDL application that uses OpenGL to do my image animation and write to the X11 window ID of a GTK2 widget. Does this seem like a reasonable approach? And if so, can anybody point me to some code samples?

Thank you,
Jim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]