• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..18-Mar-2003-

Makefile.amH A D13-Jun-200198 117

Makefile.inH A D18-Mar-20034.4 KiB182130

READMEH A D18-Jun-20012 KiB5042

gle.iH A D17-May-200115.5 KiB470314

gle.pyH A D17-May-20014.6 KiB177141

gle_wrap.cH A D17-May-200161.3 KiB2,1961,855

README

1
2There are two (different) sets of Python wrappers for GLE.  One
3set is included in this directory.  Another set comes by default
4with the OpenGL Python wrappers at http://pyopengl.sourceforge.net/
5Neither set should be considered more 'official' or 'standard'
6than the other: use the one that is most convenient for you.
7
8
9
10Python and SWIG
11---------------
12The Simple Wrapper Generator (SWIG) can be used to create python
13bindings for gle functions.  Normally, a small definition file,
14run through swig, is enough.
15
16This directory contains the definition and autogenerated code
17for a special, non-generally available version of SWIG.  It
18should work; however, it is unmaintainable.  If you are willing to
19maintain this code, let me (linas@linas.org) know.
20
21See email below:
22
23> From: "Michel Sanner" <sanner@scripps.edu>
24> To: linas@linas.org
25> Subject: resending -- Re: Gle wrapper source]
26>
27> Hi Linas,
28>
29> In fact I used a "special" version of SWIG (1.2a1) which David Baisley gave me
30> a few yars ago when I was working on typemaps for Numeric arrays. This version
31> provides pre-processing capabilities which are necessary for the typemaps I
32> used in gle.i. Unfortunately, these capabilities never made it into SWIG (at
33> least not up to now) and therefore noone out there would have a SWIG capable of
34> generating the wrapper code from that interface.
35>
36> The pre-processing capabilities are used to generate dimension arguments from
37> the shape of numeric arrays. Using this, a function with 2 arguments (int
38> nbPts, float *coords) can be called from Python by passing only a numeric
39> array. the nbPts arguments will be generated automatically from the the numeric
40> array's shape.
41>
42> The interface could be made to work for the publicly available version of SWIG
43> by replacing these typemaps by simple ones (i.e. not generating arguments) in
44> which case the function mentioned aboved would have to be called with 2
45> arguments in Python ( foo( my_array.shape[0], my_array) ).
46>
47>
48> -Michel
49>
50