Interrogate Raknet

Return to Compiling or Editing the Panda Source

Interrogate Raknet

Postby croxis » Sat Apr 23, 2011 3:36 pm

I'm trying to develop python bindings for raknet 4.0. I've tried using swig which ended in sadness for me, so I am going to try and use interrogate. Couple of questions I can't seem to find an answer for though:

What samples should I look at for adding this to the makepanda system?

How do I set up interrogate/makepanda to place the python wrappers under something like import panda3d.raknet?
David - Proud to be saving the world sense 1984
croxis
 
Posts: 408
Joined: Thu Feb 12, 2009 4:13 pm
Location: Portland, OR

Postby drwr » Sun Apr 24, 2011 11:43 am

If SWIG failed for you, my confidence level in your likely success with interrogate is not high. SWIG is designed to be user-friendly and to work with a wide variety of code. Interrogate, on the other hand, is primarily designed to work only with the code within Panda itself. It has occasionally been used with limited success to directly expose third-party libraries (TinyXML), but usually it is used to expose Panda wrappers around third-party libraries (ODE).

Searching for 'interrogate' within the makepanda source should give you plenty of examples.

David
drwr
 
Posts: 11253
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Postby rdb » Wed Apr 27, 2011 1:50 am

Actually, SWIG's parser is pretty bad compared to Interrogate's. You might have more luck with Interrogate, but it'll take some time to get it working, and an understanding of how Interrogate works.
rdb
 
Posts: 8575
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests