17117f1b4Smrg/* 27117f1b4Smrg * Mesa 3-D graphics library 37117f1b4Smrg * 47117f1b4Smrg * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. 57117f1b4Smrg * 67117f1b4Smrg * Permission is hereby granted, free of charge, to any person obtaining a 77117f1b4Smrg * copy of this software and associated documentation files (the "Software"), 87117f1b4Smrg * to deal in the Software without restriction, including without limitation 97117f1b4Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 107117f1b4Smrg * and/or sell copies of the Software, and to permit persons to whom the 117117f1b4Smrg * Software is furnished to do so, subject to the following conditions: 127117f1b4Smrg * 137117f1b4Smrg * The above copyright notice and this permission notice shall be included 147117f1b4Smrg * in all copies or substantial portions of the Software. 157117f1b4Smrg * 167117f1b4Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 177117f1b4Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 187117f1b4Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 237117f1b4Smrg */ 247117f1b4Smrg 257117f1b4Smrg 267117f1b4Smrg#include "glheader.h" 2701e04c3fSmrg#include "context.h" 287117f1b4Smrg#include "histogram.h" 297117f1b4Smrg 307117f1b4Smrg 317117f1b4Smrg/********************************************************************** 327117f1b4Smrg * API functions 337117f1b4Smrg */ 347117f1b4Smrg 357117f1b4Smrg 36af69d88dSmrgvoid GLAPIENTRY 373464ebd5Sriastradh_mesa_GetnMinmaxARB(GLenum target, GLboolean reset, GLenum format, 383464ebd5Sriastradh GLenum type, GLsizei bufSize, GLvoid *values) 397117f1b4Smrg{ 407117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 417117f1b4Smrg 423464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmax"); 433464ebd5Sriastradh} 447117f1b4Smrg 457117f1b4Smrg 46af69d88dSmrgvoid GLAPIENTRY 473464ebd5Sriastradh_mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, 483464ebd5Sriastradh GLvoid *values) 493464ebd5Sriastradh{ 503464ebd5Sriastradh _mesa_GetnMinmaxARB(target, reset, format, type, INT_MAX, values); 517117f1b4Smrg} 527117f1b4Smrg 537117f1b4Smrg 54af69d88dSmrgvoid GLAPIENTRY 553464ebd5Sriastradh_mesa_GetnHistogramARB(GLenum target, GLboolean reset, GLenum format, 563464ebd5Sriastradh GLenum type, GLsizei bufSize, GLvoid *values) 577117f1b4Smrg{ 587117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 597117f1b4Smrg 603464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogram"); 613464ebd5Sriastradh} 627117f1b4Smrg 637117f1b4Smrg 64af69d88dSmrgvoid GLAPIENTRY 653464ebd5Sriastradh_mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, 663464ebd5Sriastradh GLvoid *values) 673464ebd5Sriastradh{ 683464ebd5Sriastradh _mesa_GetnHistogramARB(target, reset, format, type, INT_MAX, values); 697117f1b4Smrg} 707117f1b4Smrg 717117f1b4Smrg 72af69d88dSmrgvoid GLAPIENTRY 737117f1b4Smrg_mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params) 747117f1b4Smrg{ 757117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 767117f1b4Smrg 773464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameterfv"); 787117f1b4Smrg} 797117f1b4Smrg 807117f1b4Smrg 81af69d88dSmrgvoid GLAPIENTRY 827117f1b4Smrg_mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params) 837117f1b4Smrg{ 847117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 857117f1b4Smrg 863464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameteriv"); 877117f1b4Smrg} 887117f1b4Smrg 897117f1b4Smrg 90af69d88dSmrgvoid GLAPIENTRY 917117f1b4Smrg_mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params) 927117f1b4Smrg{ 937117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 947117f1b4Smrg 957117f1b4Smrg _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameterfv"); 967117f1b4Smrg} 977117f1b4Smrg 987117f1b4Smrg 99af69d88dSmrgvoid GLAPIENTRY 1007117f1b4Smrg_mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params) 1017117f1b4Smrg{ 1027117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 1037117f1b4Smrg 1043464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameteriv"); 1057117f1b4Smrg} 1067117f1b4Smrg 1077117f1b4Smrg 108af69d88dSmrgvoid GLAPIENTRY 1097117f1b4Smrg_mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink) 1107117f1b4Smrg{ 1117117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 1127117f1b4Smrg 1133464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glHistogram"); 1147117f1b4Smrg} 1157117f1b4Smrg 1167117f1b4Smrg 117af69d88dSmrgvoid GLAPIENTRY 1187117f1b4Smrg_mesa_Minmax(GLenum target, GLenum internalFormat, GLboolean sink) 1197117f1b4Smrg{ 1207117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 1217117f1b4Smrg 1223464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glMinmax"); 1237117f1b4Smrg} 1247117f1b4Smrg 1257117f1b4Smrg 126af69d88dSmrgvoid GLAPIENTRY 1277117f1b4Smrg_mesa_ResetHistogram(GLenum target) 1287117f1b4Smrg{ 1297117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 1307117f1b4Smrg 1313464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glResetHistogram"); 1327117f1b4Smrg} 1337117f1b4Smrg 1347117f1b4Smrg 135af69d88dSmrgvoid GLAPIENTRY 1367117f1b4Smrg_mesa_ResetMinmax(GLenum target) 1377117f1b4Smrg{ 1387117f1b4Smrg GET_CURRENT_CONTEXT(ctx); 1397117f1b4Smrg 1403464ebd5Sriastradh _mesa_error(ctx, GL_INVALID_OPERATION, "glResetMinmax"); 1417117f1b4Smrg} 142