mesa: Import libtxc_dxtn sources
[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 "context.h"
28 #include "histogram.h"
29 #include "main/dispatch.h"
30
31
32 /**********************************************************************
33 * API functions
34 */
35
36
37 void GLAPIENTRY
38 _mesa_GetnMinmaxARB(GLenum target, GLboolean reset, GLenum format,
39 GLenum type, GLsizei bufSize, GLvoid *values)
40 {
41 GET_CURRENT_CONTEXT(ctx);
42
43 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmax");
44 }
45
46
47 void GLAPIENTRY
48 _mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type,
49 GLvoid *values)
50 {
51 _mesa_GetnMinmaxARB(target, reset, format, type, INT_MAX, values);
52 }
53
54
55 void GLAPIENTRY
56 _mesa_GetnHistogramARB(GLenum target, GLboolean reset, GLenum format,
57 GLenum type, GLsizei bufSize, GLvoid *values)
58 {
59 GET_CURRENT_CONTEXT(ctx);
60
61 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogram");
62 }
63
64
65 void GLAPIENTRY
66 _mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type,
67 GLvoid *values)
68 {
69 _mesa_GetnHistogramARB(target, reset, format, type, INT_MAX, values);
70 }
71
72
73 void GLAPIENTRY
74 _mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params)
75 {
76 GET_CURRENT_CONTEXT(ctx);
77
78 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameterfv");
79 }
80
81
82 void GLAPIENTRY
83 _mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params)
84 {
85 GET_CURRENT_CONTEXT(ctx);
86
87 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameteriv");
88 }
89
90
91 void GLAPIENTRY
92 _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params)
93 {
94 GET_CURRENT_CONTEXT(ctx);
95
96 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameterfv");
97 }
98
99
100 void GLAPIENTRY
101 _mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params)
102 {
103 GET_CURRENT_CONTEXT(ctx);
104
105 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameteriv");
106 }
107
108
109 void GLAPIENTRY
110 _mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
111 {
112 GET_CURRENT_CONTEXT(ctx);
113
114 _mesa_error(ctx, GL_INVALID_OPERATION, "glHistogram");
115 }
116
117
118 void GLAPIENTRY
119 _mesa_Minmax(GLenum target, GLenum internalFormat, GLboolean sink)
120 {
121 GET_CURRENT_CONTEXT(ctx);
122
123 _mesa_error(ctx, GL_INVALID_OPERATION, "glMinmax");
124 }
125
126
127 void GLAPIENTRY
128 _mesa_ResetHistogram(GLenum target)
129 {
130 GET_CURRENT_CONTEXT(ctx);
131
132 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetHistogram");
133 }
134
135
136 void GLAPIENTRY
137 _mesa_ResetMinmax(GLenum target)
138 {
139 GET_CURRENT_CONTEXT(ctx);
140
141 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetMinmax");
142 }