summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/gallium.i
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-14 22:26:40 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-14 22:26:40 +0900
commit3aea28b9b1e9100be6836d4f88444e3cdfe5c4be (patch)
tree5f1a6117eedfbc0ae5e1cfc2c33002828d60e201 /src/gallium/state_trackers/python/gallium.i
parent00cd96b68f21cb281aa30199f520aae8b2f93083 (diff)
python: Raw tile access to surface.
Diffstat (limited to 'src/gallium/state_trackers/python/gallium.i')
-rw-r--r--src/gallium/state_trackers/python/gallium.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/gallium.i b/src/gallium/state_trackers/python/gallium.i
index f616037ec2..60f8e50300 100644
--- a/src/gallium/state_trackers/python/gallium.i
+++ b/src/gallium/state_trackers/python/gallium.i
@@ -55,6 +55,7 @@
%}
%include "carrays.i"
+%array_class(unsigned char, ByteArray);
%array_class(int, IntArray);
%array_class(float, FloatArray);
@@ -406,6 +407,16 @@ error1:
void unmap( void );
void
+ get_tile_raw(unsigned x, unsigned y, unsigned w, unsigned h, unsigned char *p, unsigned stride) {
+ pipe_get_tile_raw($self, x, y, w, h, p, stride);
+ }
+
+ void
+ put_tile_raw(unsigned x, unsigned y, unsigned w, unsigned h, const unsigned char *p, unsigned stride) {
+ pipe_put_tile_raw($self, x, y, w, h, p, stride);
+ }
+
+ void
get_tile_rgba(unsigned x, unsigned y, unsigned w, unsigned h, float *p) {
pipe_get_tile_rgba($self, x, y, w, h, p);
}