glapi: ARB_blend_func_extended support + regen. (v2)
[mesa.git] / src / mesa / main / histogram.h
index 3cff4d0db5eb4df9450b28c55953266a476daa80..d97e74abbadcd4a793b527c8bcee7e9668b1adc7 100644 (file)
@@ -1,10 +1,18 @@
-/* $Id: histogram.h,v 1.4 2002/10/24 23:57:21 brianp Exp $ */
+/**
+ * \file histogram.h
+ * Histogram.
+ * 
+ * \if subset
+ * (No-op)
+ *
+ * \endif
+ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  4.1
+ * Version:  5.1
  *
- * Copyright (C) 1999-2002  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 "glheader.h"
-#include "mtypes.h"
-
-
-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);
+#include "compiler.h"
+#include "mfeatures.h"
 
-extern void _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params);
+struct _glapi_table;
 
-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 */