interrogate2swig.py

status updat

Managed to get this far:


F:\dev\pandacvspymake>python
Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import framework
prc_dir_envvars PANDA_PRC_DIR
prc_dir_envvar_list[i] PANDA_PRC_DIR
prc_dir
>>> import sys
>>> a = framework.PandaFramework()
>>> a.open_framework( len(sys.argv), sys.argv )
>>> a.set_window_title("blah")
>>> window = a.open_window()
Known pipe types:
  wglGraphicsPipe
(3 aux display modules not yet loaded.)

However, at this point, Panda crashes. Not really sure why, or where to go from here. The arguments should be being passed in ok, since I’ve checked in a test piece of code.

Methodology update

  • Created a framework.i file, to save having to understand what Direct does.
  • added in typemaps for the types we are using above
  • typemaps basically map between for example string & and a python type. We’ve got: string &, int &, and char **&.

Hugh