summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/stenciltmp.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-03 16:41:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-03 16:41:30 +0000
commitc6262cd8c5e1ca8f702e9694c81749601287fb10 (patch)
tree9d1ee2c03f62859b5db78242b3d3e4c5ef071385 /src/mesa/drivers/dri/common/stenciltmp.h
parent3ba814ae0740fc9ceb79f05570bc889362cc288d (diff)
added SetStencil/DepthPointer functions
Diffstat (limited to 'src/mesa/drivers/dri/common/stenciltmp.h')
-rw-r--r--src/mesa/drivers/dri/common/stenciltmp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/stenciltmp.h b/src/mesa/drivers/dri/common/stenciltmp.h
index dccab0660d..e279b5b5c0 100644
--- a/src/mesa/drivers/dri/common/stenciltmp.h
+++ b/src/mesa/drivers/dri/common/stenciltmp.h
@@ -176,6 +176,21 @@ static void TAG(ReadStencilPixels)( GLcontext *ctx,
+/**
+ * Initialize the given renderbuffer's span routines to point to
+ * the stencil functions we generated above.
+ */
+static void TAG(InitStencilPointers)(struct gl_renderbuffer *rb)
+{
+ rb->GetRow = TAG(ReadStencilSpan);
+ rb->GetValues = TAG(ReadStencilPixels);
+ rb->PutRow = TAG(WriteStencilSpan);
+ rb->PutRowRGB = NULL;
+ rb->PutMonoRow = TAG(WriteMonoStencilSpan);
+ rb->PutValues = TAG(WriteStencilPixels);
+ rb->PutMonoValues = NULL;
+}
+
#undef WRITE_STENCIL
#undef READ_STENCIL