summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-04-07 00:19:41 +0000
committerBrian Paul <[email protected]>2000-04-07 00:19:41 +0000
commit0771d159d59a856135e375ba89f6af2a057d4f5b (patch)
tree5801ae2a121b7d89fa7358e8edb97034242c49d7 /src/mesa/main/context.c
parent3eae261da989f44c4920b1bfe247c2e1be8724ad (diff)
initial histogram and min/max work
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index ca95e430c0b..db3a14ba984 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.53 2000/04/04 15:14:10 brianp Exp $ */
+/* $Id: context.c,v 1.54 2000/04/07 00:19:41 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -993,6 +993,32 @@ static void init_attrib_groups( GLcontext *ctx )
ctx->Hint.AllowDrawMem = GL_TRUE;
ctx->Hint.StrictLighting = GL_TRUE;
+ /* Histogram group */
+ ctx->Histogram.Width = 0;
+ ctx->Histogram.Format = GL_RGBA;
+ ctx->Histogram.Sink = GL_FALSE;
+ ctx->Histogram.RedSize = 0xffffffff;
+ ctx->Histogram.GreenSize = 0xffffffff;
+ ctx->Histogram.BlueSize = 0xffffffff;
+ ctx->Histogram.AlphaSize = 0xffffffff;
+ ctx->Histogram.LuminanceSize = 0xffffffff;
+ for (i = 0; i < HISTOGRAM_TABLE_SIZE; i++) {
+ ctx->Histogram.Count[i][0] = 0;
+ ctx->Histogram.Count[i][1] = 0;
+ ctx->Histogram.Count[i][2] = 0;
+ ctx->Histogram.Count[i][3] = 0;
+ }
+
+ /* Min/Max group */
+ ctx->MinMax.Format = GL_RGBA;
+ ctx->MinMax.Sink = GL_FALSE;
+ ctx->MinMax.Min[RCOMP] = 1000; ctx->MinMax.Max[RCOMP] = -1000;
+ ctx->MinMax.Min[GCOMP] = 1000; ctx->MinMax.Max[GCOMP] = -1000;
+ ctx->MinMax.Min[BCOMP] = 1000; ctx->MinMax.Max[BCOMP] = -1000;
+ ctx->MinMax.Min[ACOMP] = 1000; ctx->MinMax.Max[ACOMP] = -1000;
+
+
+
/* Pipeline */
gl_pipeline_init( ctx );
gl_cva_init( ctx );