histogram.c revision af69d88d
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 39void 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 49void 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 57void 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 67void 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 75void 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 84void 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 93void 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 102void 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 111void 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 120void 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 129void GLAPIENTRY 130_mesa_ResetHistogram(GLenum target) 131{ 132 GET_CURRENT_CONTEXT(ctx); 133 134 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetHistogram"); 135} 136 137 138void GLAPIENTRY 139_mesa_ResetMinmax(GLenum target) 140{ 141 GET_CURRENT_CONTEXT(ctx); 142 143 _mesa_error(ctx, GL_INVALID_OPERATION, "glResetMinmax"); 144} 145