| 1 | /* $Id: imaging.c,v 1.1 2000-05-23 20:40:38 jeroen Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Mesa 3-D graphics library | 
|---|
| 5 | * Version:  3.3 | 
|---|
| 6 | * | 
|---|
| 7 | * Copyright (C) 1999-2000  Brian Paul   All Rights Reserved. | 
|---|
| 8 | * | 
|---|
| 9 | * Permission is hereby granted, free of charge, to any person obtaining a | 
|---|
| 10 | * copy of this software and associated documentation files (the "Software"), | 
|---|
| 11 | * to deal in the Software without restriction, including without limitation | 
|---|
| 12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 
|---|
| 13 | * and/or sell copies of the Software, and to permit persons to whom the | 
|---|
| 14 | * Software is furnished to do so, subject to the following conditions: | 
|---|
| 15 | * | 
|---|
| 16 | * The above copyright notice and this permission notice shall be included | 
|---|
| 17 | * in all copies or substantial portions of the Software. | 
|---|
| 18 | * | 
|---|
| 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | 
|---|
| 20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 
|---|
| 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL | 
|---|
| 22 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | 
|---|
| 23 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | 
|---|
| 24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 
|---|
| 25 | */ | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 | /* Stub functions for GL_ARB_imaging subset */ | 
|---|
| 29 |  | 
|---|
| 30 |  | 
|---|
| 31 | #ifdef PC_HEADER | 
|---|
| 32 | #include "all.h" | 
|---|
| 33 | #else | 
|---|
| 34 | #include "glheader.h" | 
|---|
| 35 | #include "imaging.h" | 
|---|
| 36 | #endif | 
|---|
| 37 |  | 
|---|
| 38 |  | 
|---|
| 39 |  | 
|---|
| 40 | #define WARNING(MSG)  fprintf(stderr,"Mesa warning: GL_ARB_imaging functions not implemented\n") | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 |  | 
|---|
| 44 | #if 0 | 
|---|
| 45 | void _mesa_BlendColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a) | 
|---|
| 46 | { | 
|---|
| 47 | (void) r; | 
|---|
| 48 | (void) g; | 
|---|
| 49 | (void) b; | 
|---|
| 50 | (void) a; | 
|---|
| 51 | WARNING("glBlendColor"); | 
|---|
| 52 | } | 
|---|
| 53 |  | 
|---|
| 54 | void _mesa_BlendEquation(GLenum eq) | 
|---|
| 55 | { | 
|---|
| 56 | (void) eq; | 
|---|
| 57 | WARNING("glBlendEquation"); | 
|---|
| 58 | } | 
|---|
| 59 |  | 
|---|
| 60 | void _mesa_ColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data) | 
|---|
| 61 | { | 
|---|
| 62 | (void) target; | 
|---|
| 63 | (void) start; | 
|---|
| 64 | (void) count; | 
|---|
| 65 | (void) format; | 
|---|
| 66 | (void) type; | 
|---|
| 67 | (void) data; | 
|---|
| 68 | WARNING("glColorSubTable"); | 
|---|
| 69 | } | 
|---|
| 70 |  | 
|---|
| 71 | void _mesa_ColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table) | 
|---|
| 72 | { | 
|---|
| 73 | (void) target; | 
|---|
| 74 | (void) internalformat; | 
|---|
| 75 | (void) width; | 
|---|
| 76 | (void) format; | 
|---|
| 77 | (void) type; | 
|---|
| 78 | (void) table; | 
|---|
| 79 | WARNING("glColorTable"); | 
|---|
| 80 | } | 
|---|
| 81 | #endif | 
|---|
| 82 |  | 
|---|
| 83 | void _mesa_ColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params) | 
|---|
| 84 | { | 
|---|
| 85 | (void) target; | 
|---|
| 86 | (void) pname; | 
|---|
| 87 | (void) params; | 
|---|
| 88 | WARNING("glColorTableParameterfv"); | 
|---|
| 89 | } | 
|---|
| 90 |  | 
|---|
| 91 | void _mesa_ColorTableParameteriv(GLenum target, GLenum pname, const GLint *params) | 
|---|
| 92 | { | 
|---|
| 93 | (void) target; | 
|---|
| 94 | (void) pname; | 
|---|
| 95 | (void) params; | 
|---|
| 96 | WARNING("glColorTableParameteriv"); | 
|---|
| 97 | } | 
|---|
| 98 |  | 
|---|
| 99 |  | 
|---|
| 100 | void _mesa_ConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image) | 
|---|
| 101 | { | 
|---|
| 102 | (void) target; | 
|---|
| 103 | (void) internalformat; | 
|---|
| 104 | (void) width; | 
|---|
| 105 | (void) format; | 
|---|
| 106 | (void) type; | 
|---|
| 107 | (void) image; | 
|---|
| 108 | WARNING("glConvolutionFilter1D"); | 
|---|
| 109 | } | 
|---|
| 110 |  | 
|---|
| 111 | void _mesa_ConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image) | 
|---|
| 112 | { | 
|---|
| 113 | (void) target; | 
|---|
| 114 | (void) internalformat; | 
|---|
| 115 | (void) width; | 
|---|
| 116 | (void) height; | 
|---|
| 117 | (void) format; | 
|---|
| 118 | (void) type; | 
|---|
| 119 | (void) image; | 
|---|
| 120 | WARNING("glConvolutionFilter2D"); | 
|---|
| 121 | } | 
|---|
| 122 |  | 
|---|
| 123 | void _mesa_ConvolutionParameterf(GLenum target, GLenum pname, GLfloat params) | 
|---|
| 124 | { | 
|---|
| 125 | (void) target; | 
|---|
| 126 | (void) pname; | 
|---|
| 127 | (void) params; | 
|---|
| 128 | WARNING("glConvolutionParameterf"); | 
|---|
| 129 | } | 
|---|
| 130 |  | 
|---|
| 131 | void _mesa_ConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params) | 
|---|
| 132 | { | 
|---|
| 133 | (void) target; | 
|---|
| 134 | (void) pname; | 
|---|
| 135 | (void) params; | 
|---|
| 136 | WARNING("glConvolutionParameterfv"); | 
|---|
| 137 | } | 
|---|
| 138 |  | 
|---|
| 139 | void _mesa_ConvolutionParameteri(GLenum target, GLenum pname, GLint params) | 
|---|
| 140 | { | 
|---|
| 141 | (void) target; | 
|---|
| 142 | (void) pname; | 
|---|
| 143 | (void) params; | 
|---|
| 144 | WARNING("glConvolutionParameteri"); | 
|---|
| 145 | } | 
|---|
| 146 |  | 
|---|
| 147 | void _mesa_ConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params) | 
|---|
| 148 | { | 
|---|
| 149 | (void) target; | 
|---|
| 150 | (void) pname; | 
|---|
| 151 | (void) params; | 
|---|
| 152 | WARNING("glConvolutionParameteriv"); | 
|---|
| 153 | } | 
|---|
| 154 |  | 
|---|
| 155 | void _mesa_CopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width) | 
|---|
| 156 | { | 
|---|
| 157 | (void) target; | 
|---|
| 158 | (void) start; | 
|---|
| 159 | (void) x; | 
|---|
| 160 | (void) y; | 
|---|
| 161 | (void) width; | 
|---|
| 162 | WARNING("glCopyColorSubTable"); | 
|---|
| 163 | } | 
|---|
| 164 |  | 
|---|
| 165 | void _mesa_CopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) | 
|---|
| 166 | { | 
|---|
| 167 | (void) target; | 
|---|
| 168 | (void) internalformat; | 
|---|
| 169 | (void) x; | 
|---|
| 170 | (void) y; | 
|---|
| 171 | (void) width; | 
|---|
| 172 | WARNING("glCopyColorTable"); | 
|---|
| 173 | } | 
|---|
| 174 |  | 
|---|
| 175 | void _mesa_CopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) | 
|---|
| 176 | { | 
|---|
| 177 | (void) target; | 
|---|
| 178 | (void) internalformat; | 
|---|
| 179 | (void) x; | 
|---|
| 180 | (void) y; | 
|---|
| 181 | (void) width; | 
|---|
| 182 | WARNING("glCopyConvolutionFilter1D"); | 
|---|
| 183 | } | 
|---|
| 184 |  | 
|---|
| 185 | void _mesa_CopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height) | 
|---|
| 186 | { | 
|---|
| 187 | (void) target; | 
|---|
| 188 | (void) internalformat; | 
|---|
| 189 | (void) x; | 
|---|
| 190 | (void) y; | 
|---|
| 191 | (void) width; | 
|---|
| 192 | (void) height; | 
|---|
| 193 | WARNING("glCopyConvolutionFilter2D"); | 
|---|
| 194 | } | 
|---|
| 195 |  | 
|---|
| 196 | #if 0 | 
|---|
| 197 | void _mesa_GetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table) | 
|---|
| 198 | { | 
|---|
| 199 | (void) target; | 
|---|
| 200 | (void) format; | 
|---|
| 201 | (void) type; | 
|---|
| 202 | (void) table; | 
|---|
| 203 | WARNING("glGetColorTable"); | 
|---|
| 204 | } | 
|---|
| 205 |  | 
|---|
| 206 | void _mesa_GetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params) | 
|---|
| 207 | { | 
|---|
| 208 | (void) target; | 
|---|
| 209 | (void) pname; | 
|---|
| 210 | (void) params; | 
|---|
| 211 | WARNING("glGetColorTableParameterfv"); | 
|---|
| 212 | } | 
|---|
| 213 |  | 
|---|
| 214 | void _mesa_GetColorTableParameteriv(GLenum target, GLenum pname, GLint *params) | 
|---|
| 215 | { | 
|---|
| 216 | (void) target; | 
|---|
| 217 | (void) pname; | 
|---|
| 218 | (void) params; | 
|---|
| 219 | WARNING("glGetColorTableParameteriv"); | 
|---|
| 220 | } | 
|---|
| 221 | #endif | 
|---|
| 222 |  | 
|---|
| 223 | void _mesa_GetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image) | 
|---|
| 224 | { | 
|---|
| 225 | (void) target; | 
|---|
| 226 | (void) format; | 
|---|
| 227 | (void) type; | 
|---|
| 228 | (void) image; | 
|---|
| 229 | WARNING("glGetConvolutionFilter"); | 
|---|
| 230 | } | 
|---|
| 231 |  | 
|---|
| 232 | void _mesa_GetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params) | 
|---|
| 233 | { | 
|---|
| 234 | (void) target; | 
|---|
| 235 | (void) pname; | 
|---|
| 236 | (void) params; | 
|---|
| 237 | WARNING("glGetConvolutionParameterfv"); | 
|---|
| 238 | } | 
|---|
| 239 |  | 
|---|
| 240 | void _mesa_GetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params) | 
|---|
| 241 | { | 
|---|
| 242 | (void) target; | 
|---|
| 243 | (void) pname; | 
|---|
| 244 | (void) params; | 
|---|
| 245 | WARNING("glGetConvolutionParameteriv"); | 
|---|
| 246 | } | 
|---|
| 247 |  | 
|---|
| 248 | void _mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values) | 
|---|
| 249 | { | 
|---|
| 250 | (void) target; | 
|---|
| 251 | (void) reset; | 
|---|
| 252 | (void) format; | 
|---|
| 253 | (void) types; | 
|---|
| 254 | (void) values; | 
|---|
| 255 | WARNING("glGetMinmax"); | 
|---|
| 256 | } | 
|---|
| 257 |  | 
|---|
| 258 | void _mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values) | 
|---|
| 259 | { | 
|---|
| 260 | (void) target; | 
|---|
| 261 | (void) reset; | 
|---|
| 262 | (void) format; | 
|---|
| 263 | (void) type; | 
|---|
| 264 | (void) values; | 
|---|
| 265 | WARNING("glGetHistogram"); | 
|---|
| 266 | } | 
|---|
| 267 |  | 
|---|
| 268 | void _mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params) | 
|---|
| 269 | { | 
|---|
| 270 | (void) target; | 
|---|
| 271 | (void) pname; | 
|---|
| 272 | (void) params; | 
|---|
| 273 | WARNING("glGetHistogramParameterfv"); | 
|---|
| 274 | } | 
|---|
| 275 |  | 
|---|
| 276 | void _mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params) | 
|---|
| 277 | { | 
|---|
| 278 | (void) target; | 
|---|
| 279 | (void) pname; | 
|---|
| 280 | (void) params; | 
|---|
| 281 | WARNING("glGetHistogramParameteriv"); | 
|---|
| 282 | } | 
|---|
| 283 |  | 
|---|
| 284 | void _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params) | 
|---|
| 285 | { | 
|---|
| 286 | (void) target; | 
|---|
| 287 | (void) pname; | 
|---|
| 288 | (void) params; | 
|---|
| 289 | WARNING("glGetMinmaxParameterfv"); | 
|---|
| 290 | } | 
|---|
| 291 |  | 
|---|
| 292 | void _mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params) | 
|---|
| 293 | { | 
|---|
| 294 | (void) target; | 
|---|
| 295 | (void) pname; | 
|---|
| 296 | (void) params; | 
|---|
| 297 | WARNING("glGetMinmaxParameteriv"); | 
|---|
| 298 | } | 
|---|
| 299 |  | 
|---|
| 300 | void _mesa_GetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span) | 
|---|
| 301 | { | 
|---|
| 302 | (void) target; | 
|---|
| 303 | (void) format; | 
|---|
| 304 | (void) type; | 
|---|
| 305 | (void) row; | 
|---|
| 306 | (void) column; | 
|---|
| 307 | (void) span; | 
|---|
| 308 | WARNING("glGetSeperableFilter"); | 
|---|
| 309 | } | 
|---|
| 310 |  | 
|---|
| 311 | void _mesa_Histogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink) | 
|---|
| 312 | { | 
|---|
| 313 | (void) target; | 
|---|
| 314 | (void) width; | 
|---|
| 315 | (void) internalformat; | 
|---|
| 316 | (void) sink; | 
|---|
| 317 | WARNING("glHistogram"); | 
|---|
| 318 | } | 
|---|
| 319 |  | 
|---|
| 320 | void _mesa_Minmax(GLenum target, GLenum internalformat, GLboolean sink) | 
|---|
| 321 | { | 
|---|
| 322 | (void) target; | 
|---|
| 323 | (void) internalformat; | 
|---|
| 324 | (void) sink; | 
|---|
| 325 | WARNING("glMinmax"); | 
|---|
| 326 | } | 
|---|
| 327 |  | 
|---|
| 328 | void _mesa_ResetHistogram(GLenum target) | 
|---|
| 329 | { | 
|---|
| 330 | (void) target; | 
|---|
| 331 | WARNING("glResetHistogram"); | 
|---|
| 332 | } | 
|---|
| 333 |  | 
|---|
| 334 | void _mesa_ResetMinmax(GLenum target) | 
|---|
| 335 | { | 
|---|
| 336 | (void) target; | 
|---|
| 337 | WARNING("glResetMinmax"); | 
|---|
| 338 | } | 
|---|
| 339 |  | 
|---|
| 340 | void _mesa_SeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column) | 
|---|
| 341 | { | 
|---|
| 342 | (void) target; | 
|---|
| 343 | (void) internalformat; | 
|---|
| 344 | (void) width; | 
|---|
| 345 | (void) height; | 
|---|
| 346 | (void) format; | 
|---|
| 347 | (void) type; | 
|---|
| 348 | (void) row; | 
|---|
| 349 | (void) column; | 
|---|
| 350 | WARNING("glSeparableFilter2D"); | 
|---|
| 351 | } | 
|---|