summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-02-16 10:22:32 -0700
committerBrian Paul <[email protected]>2016-02-16 10:22:32 -0700
commitd7d4fe90c42d85ecbbedeca8b77043b750e18212 (patch)
tree3963ec33b31f0295c7caca01ab9e1382c9cf23a3 /src/mesa/state_tracker/st_draw.h
parentb63fe0552b5f983bc19ab45231687dc684c5a267 (diff)
st/mesa: consolidate quad drawing code
The glClear, glBitmap and glDrawPixels code now use a new st_draw_quad() helper function. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_draw.h')
-rw-r--r--src/mesa/state_tracker/st_draw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.h b/src/mesa/state_tracker/st_draw.h
index a973c8a4a5d..d85c3b7facd 100644
--- a/src/mesa/state_tracker/st_draw.h
+++ b/src/mesa/state_tracker/st_draw.h
@@ -85,4 +85,11 @@ pointer_to_offset(const void *ptr)
}
+bool
+st_draw_quad(struct st_context *st,
+ float x0, float y0, float x1, float y1, float z,
+ float s0, float t0, float s1, float t1,
+ const float *color,
+ unsigned num_instances);
+
#endif