st/mesa: new st_DrawAtlasBitmaps() function for drawing bitmap text
authorBrian Paul <brianp@vmware.com>
Wed, 3 Feb 2016 16:40:08 +0000 (09:40 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 18 Feb 2016 02:57:48 +0000 (19:57 -0700)
commit06d3b0a006f35dc232d512d09f45a6cb4f13cfdf
treed41ae0df74552ccf9e77cc0b73cfc1164c116eb3
parentb26ddda12fe7dbb6a4e6af3b47c1e837cc7ebb03
st/mesa: new st_DrawAtlasBitmaps() function for drawing bitmap text

This basically saves the current pipeline state, sets up state for
rendering, constructs a set of textured quads, renders, then restores
the previous pipeline state.

It shouldn't be hard to implement a similar function for non-gallium
drives.  With some code refactoring, the vertex definition code could
probably be shared.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_context.h