1 This directory contains Python bindings to Gallium3D. It looks like a state
2 tracker from the pipe driver perspective, and it looks like a pipe driver from
3 the python script perspective.
7 * Python (with development packages)
9 * SWIG, http://www.swig.org/download.html
10 * Python Imaging Library with TK support, http://www.pythonware.com/products/pil/,
13 On a debian-based distro you can simply do:
15 aptitude install python-dev scons swig python-imaging python-imaging-tk
17 On a Windows machine ensure the swig command is in your PATH.
19 Invoke scons on the top dir as
21 scons debug=yes statetrackers=python drivers=softpipe winsys=none
23 To use it set PYTHONPATH appropriately, e.g, in Linux do:
25 export PYTHONPATH=$PWD/build/linux-x86-debug/gallium/state_trackers/python
29 set PYTHONPATH=%CD%\build\windows-x86-debug\gallium\state_trackers\python
33 python progs/gallium/python/samples/tri.py
35 which should show a triangle.
38 This is still work in progress:
39 - errors are not handled properly and almost always result in crash
40 - state atoms with array members are awkward to set
43 Jose Fonseca <jfonseca@vmware.com>