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