mesa: document sRGBDecode field
[mesa.git] / src / mesa / main / histogram.h
index 99683d1244bc04a8888d437ffd99e470010cdf6d..577324222ca20f4fde000d8b3c31e695fbf6737d 100644 (file)
@@ -1,10 +1,18 @@
-/* $Id: histogram.h,v 1.1 2000/11/10 18:06:14 brianp Exp $ */
+/**
+ * \file histogram.h
+ * Histogram.
+ * 
+ * \if subset
+ * (No-op)
+ *
+ * \endif
+ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  3.5
+ * Version:  5.1
  *
- * Copyright (C) 1999-2000  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2003  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
 #ifndef HISTOGRAM_H
 #define HISTOGRAM_H
 
+#include "compiler.h"
+#include "mfeatures.h"
 
-#ifdef PC_HEADER
-#include "all.h"
-#else
-#include "glheader.h"
-#include "types.h"
-#endif
-
-
-
-extern void _mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values);
-
-extern void _mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-
-extern void _mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params);
-
-extern void _mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params);
+struct _glapi_table;
 
-extern void _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params);
-
-extern void _mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params);
-
-extern void _mesa_Histogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-
-extern void _mesa_Minmax(GLenum target, GLenum internalformat, GLboolean sink);
-
-extern void _mesa_ResetHistogram(GLenum target);
-
-extern void _mesa_ResetMinmax(GLenum target);
+#if FEATURE_histogram
 
 extern void
-_mesa_update_minmax(GLcontext *ctx, GLuint n, const GLfloat rgba[][4]);
+_mesa_init_histogram_dispatch(struct _glapi_table *disp);
 
-extern void
-_mesa_update_histogram(GLcontext *ctx, GLuint n, const GLfloat rgba[][4]);
+#else /* FEATURE_histogram */
+
+static INLINE void
+_mesa_init_histogram_dispatch(struct _glapi_table *disp)
+{
+}
 
+#endif /* FEATURE_histogram */
 
-#endif
+#endif /* HISTOGRAM_H */