summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-06-15 09:51:53 -0600
committerBrian <[email protected]>2007-06-15 09:51:53 -0600
commit8f6b6eed35832733674372dea7bd5ce69a965c4e (patch)
treea84f76001c2706ec56f05017bc56c404ae62b2ae /src/mesa/pipe/p_state.h
parentfe1f94f26c5cb43934513a38f60bf00aa542e64c (diff)
initial framebuffer state
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 7264f253d94..dba1e11715e 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -149,7 +149,9 @@ struct pipe_stencil_state {
/* This will change for hardware pipes...
*/
-struct pipe_surface {
+struct pipe_surface
+{
+ GLuint width, height;
GLubyte *ptr;
GLint stride;
GLuint cpp;
@@ -157,6 +159,17 @@ struct pipe_surface {
};
+struct pipe_framebuffer_state
+{
+ GLuint num_cbufs; /**< Number of color bufs to draw to */
+ struct pipe_surface *cbufs[4]; /**< OpenGL can write to as many as
+ 4 color buffers at once */
+ struct pipe_surface *zbuf; /**< Z buffer */
+ struct pipe_surface *sbuf; /**< Stencil buffer */
+ struct pipe_surface *abuf; /**< Accum buffer */
+};
+
+
/**
* Texture sampler state.
*/