summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-09-17 14:24:11 -0600
committerBrian <[email protected]>2007-09-17 14:24:11 -0600
commitb4bacd1fca336f043d1ee3c3a346fbd42a3b02eb (patch)
tree81ff3b367c175ae693daed8a07f395fc0635cff7 /src/mesa/state_tracker/st_context.h
parent2a40c71fed9461a6ecd17788b17b35655262aec6 (diff)
Plug in selection/feedback code.
Not quite finished yet. Selection/feedback are done with a private instance of the 'draw' module in the state tracker. Not quite all the draw context's state is set yet, namely vertex format info. Hold off on that for a bit...
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 98b78af7c5b..56cae7d9734 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -37,6 +37,9 @@ struct st_region;
struct st_texture_object;
struct st_texture_image;
struct st_fragment_program;
+struct draw_context;
+struct draw_stage;
+
#define ST_NEW_MESA 0x1 /* Mesa state has changed */
#define ST_NEW_FRAGMENT_PROGRAM 0x2
@@ -62,6 +65,10 @@ struct st_context
struct pipe_context *pipe;
+ struct draw_context *draw; /**< For selection/feedback */
+ struct draw_stage *feedback_stage; /**< For FL_FEEDBACK rendermode */
+ struct draw_stage *selection_stage; /**< For GL_SELECT rendermode */
+
/* Eventually will use a cache to feed the pipe with
* create/bind/delete calls to constant state objects. Not yet
* though, we just shove random objects across the interface.