Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

slanning (5049)

  (email not shown publicly)

Scott Lanning is currently working in Amsterdam at a hotel-booking company. The following interviews and commentaries are for entertainment only. The views and opinions expressed therein do not necessarily represent the views of his employer or even himself.

Journal of slanning (5049)

Sunday September 16, 2007
03:10 PM

Ogre in gtk2-perl and wxPerl (almost)

[ #34466 ]

In the release of Ogre that I just uploaded, there's new support for embedding Ogre in gtk2-perl and wxPerl. I don't have enough minutes to go into it now, but here's a picture: robot dancing.

Basically, Ogre is focused on graphics, so it requires other libraries to do things like user input. I wrapped OIS for that, but for making better GUI apps it's cool to be able to integrate with Gtk or wxWidgets. I want to look at SDL also. Further down the line, maybe OgreODE as a physics engine.

UPDATE: I meant to add that the wxPerl support isn't quite working, or at least the example isn't. Also, I'm not sure if gtk_widget_get_parent_window(widget) is correct to call; I just copied it from what I found online, but it seems to get the wrong "parent" window. I need to work on the examples more. I'd like to get something like the GtkOgre widget working for gtk (it's pretty complicated to work out how to convert from C to Perl, though...). The wx example is (intended to be) a direct port of this WxOgre tutorial, but isn't working right yet.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.