diff options
author | Emeric Grange <[email protected]> | 2011-09-12 23:39:26 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-09-14 15:49:15 +0200 |
commit | 42fddacabafebd4c9f1ba2f8f94192f8f4f76fce (patch) | |
tree | fd377a492297d54ff2f8c751e3d5770f75e268cb /src | |
parent | 02e191cb6aa13286fff956a7929959d7cee7241d (diff) |
g3dvl: Add get_clear_color capability
Signed-off-by: Emeric Grange <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.c | 12 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.h | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index eac101f3aa7..ebe6d7ae45c 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -563,6 +563,18 @@ vl_compositor_set_clear_color(struct vl_compositor *c, float color[4]) } void +vl_compositor_get_clear_color(struct vl_compositor *c, float color[4]) +{ + unsigned i; + + assert(c); + assert(color); + + for (i = 0; i < 4; ++i) + color[i] = c->clear_color[i]; +} + +void vl_compositor_clear_layers(struct vl_compositor *c) { unsigned i, j; diff --git a/src/gallium/auxiliary/vl/vl_compositor.h b/src/gallium/auxiliary/vl/vl_compositor.h index 73d38c96ba8..0b9b9939a8c 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.h +++ b/src/gallium/auxiliary/vl/vl_compositor.h @@ -113,6 +113,12 @@ void vl_compositor_set_clear_color(struct vl_compositor *compositor, float color[4]); /** + * get the clear color + */ +void +vl_compositor_get_clear_color(struct vl_compositor *compositor, float color[4]); + +/** * set overlay samplers */ /*@{*/ |