Files
third_party_mesa3d/src/gallium/state_trackers/python
..
2009-03-25 21:03:10 +00:00
2009-03-25 21:03:10 +00:00
2009-03-17 10:33:25 +01:00
2009-03-25 21:03:15 +00:00
2009-03-04 11:58:48 +01:00
2008-08-14 11:01:42 +01:00

This directory contains Python bindings to Gallium3D. It looks like a state
tracker from the pipe driver perspective, and it looks like a pipe driver from
the python script perspective.


To build you'll need:
* Python (with development packages)
* SCons
* SWIG
* Python Imaging Library with TK support (for the samples)

On a debian-based distro you can simply do:

  aptitude install python-dev scons swig python-imaging python-imaging-tk

Invoke scons on the top dir as
 
  scons debug=yes statetrackers=python driver=softpipe,trace

To use do

  export PYTHONPATH=$PWD/build/XXXX-XXXX-XXXX/gallium/state_trackers/python

and then try running

  python src/gallium/state_trackers/python/samples/tri.py

which should show a triangle.


This is still work in progress:
- errors are not handled properly and almost always result in crash
- state atoms with array members are awkward to set
- there no efficient way to view images

--
Jose Fonseca <jrfonseca@tungstengraphics.com>