Merge commit 'origin/gallium-master-merge'
[mesa.git] / src / gallium / state_trackers / python / README
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.
4
5
6 To build you'll need:
7 * Python (with development packages)
8 * SCons
9 * SWIG
10 * Python Imaging Library with TK support (for the samples)
11
12 Invoke scons on the top dir as
13
14 scons statetrackers=python
15
16 To use do
17
18 export PYTHONPATH=build/XXXX-XXXX-XXXX/gallium/state_trackers/python
19
20 and then try running
21
22 python src/gallium/state_trackers/python/samples/tri.py
23
24 which should show a triangle.
25
26
27 This is still work in progress:
28 - errors are not handled properly and almost always result in crash
29 - state atoms with array members are awkward to set
30 - there no efficient way to view images
31
32 --
33 Jose Fonseca <jrfonseca@tungstengraphics.com>