diff options
author | Brian Paul <[email protected]> | 2016-02-03 09:40:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-02-17 19:57:48 -0700 |
commit | 06d3b0a006f35dc232d512d09f45a6cb4f13cfdf (patch) | |
tree | d41ae0df74552ccf9e77cc0b73cfc1164c116eb3 /src/mesa/state_tracker/st_context.h | |
parent | b26ddda12fe7dbb6a4e6af3b47c1e837cc7ebb03 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 93da0e5d1d1..1701c618ebf 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -205,6 +205,7 @@ struct st_context struct { struct pipe_rasterizer_state rasterizer; struct pipe_sampler_state sampler; + struct pipe_sampler_state atlas_sampler; enum pipe_format tex_format; void *vs; struct bitmap_cache *cache; |