mesa: remove outdated version lines in comments
[mesa.git] / src / mesa / main / histogram.c
1 /*
2 * Mesa 3-D graphics library
3 *
4 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25
26 #include "glheader.h"
27 #include "bufferobj.h"
28 #include "colormac.h"
29 #include "histogram.h"
30 #include "macros.h"
31 #include "main/dispatch.h"
32
33
34 /**********************************************************************
35 * API functions
36 */
37
38
39 void GLAPIENTRY
40 _mesa_GetnMinmaxARB(GLenum target, GLboolean reset, GLenum format,
41 GLenum type, GLsizei bufSize, GLvoid *values)
42 {
43 GET_CURRENT_CONTEXT(ctx);
44
45 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmax");
46 }
47
48
49 void GLAPIENTRY
50 _mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type,
51 GLvoid *values)
52 {
53 _mesa_GetnMinmaxARB(target, reset, format, type, INT_MAX, values);
54 }
55
56
57 void GLAPIENTRY
58 _mesa_GetnHistogramARB(GLenum target, GLboolean reset, GLenum format,
59 GLenum type, GLsizei bufSize, GLvoid *values)
60 {
61 GET_CURRENT_CONTEXT(ctx);
62
63 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogram");
64 }
65
66
67 void GLAPIENTRY
68 _mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type,
69 GLvoid *values)
70 {
71 _mesa_GetnHistogramARB(target, reset, format, type, INT_MAX, values);
72 }
73
74
75 void GLAPIENTRY
76 _mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params)
77 {
78 GET_CURRENT_CONTEXT(ctx);
79
80 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameterfv");
81 }
82
83
84 void GLAPIENTRY
85 _mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params)
86 {
87 GET_CURRENT_CONTEXT(ctx);
88
89 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameteriv");
90 }
91
92
93 void GLAPIENTRY
94 _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params)
95 {
96 GET_CURRENT_CONTEXT(ctx);
97
98 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameterfv");
99 }
100
101
102 void GLAPIENTRY
103 _mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params)
104 {
105 GET_CURRENT_CONTEXT(ctx);
106
107 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameteriv");
108 }
109
110
111 void GLAPIENTRY
112 _mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
113 {
114 GET_CURRENT_CONTEXT(ctx);
115
116 _mesa_error(ctx, GL_INVALID_OPERATION, "glHistogram");
117 }
118
119
120 void GLAPIENTRY
121 _mesa_Minmax(GLenum target, GLenum internalFormat, GLboolean sink)
122 {
123 GET_CURRENT_CONTEXT(ctx);
124
125 _mesa_error(ctx, GL_INVALID_OPERATION, "glMinmax");
126 }
127
128
129 void GLAPIENTRY
130 _mesa_ResetHistogram(GLenum target)
131 {
132 GET_CURRENT_CONTEXT(ctx);
133
134 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetHistogram");
135 }
136
137
138 void GLAPIENTRY
139 _mesa_ResetMinmax(GLenum target)
140 {
141 GET_CURRENT_CONTEXT(ctx);
142
143 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetMinmax");
144 }