python: Surface clears.

This commit is contained in:
José Fonseca
2008-07-14 11:44:21 +09:00
parent 3679f69023
commit f07ad529af
2 changed files with 3 additions and 1 deletions

View File

@@ -367,7 +367,7 @@ error1:
$self->pipe->surface_fill($self->pipe, dst, x, y, width, height, value);
}
void clear(struct pipe_surface *surface, unsigned value) {
void surface_clear(struct pipe_surface *surface, unsigned value = 0) {
$self->pipe->clear($self->pipe, surface, value);
}

View File

@@ -142,6 +142,8 @@ def test(dev):
#fs.dump()
ctx.set_fragment_shader(fs)
ctx.surface_clear(surface, 0x00ff0000)
if 0:
nverts = 4
nattrs = 1