Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Mesa 3-D graphics library
  3.  * Version:  6.3
  4.  *
  5.  * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
  6.  *
  7.  * Permission is hereby granted, free of charge, to any person obtaining a
  8.  * copy of this software and associated documentation files (the "Software"),
  9.  * to deal in the Software without restriction, including without limitation
  10.  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11.  * and/or sell copies of the Software, and to permit persons to whom the
  12.  * Software is furnished to do so, subject to the following conditions:
  13.  *
  14.  * The above copyright notice and this permission notice shall be included
  15.  * in all copies or substantial portions of the Software.
  16.  *
  17.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18.  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  20.  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21.  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22.  * CONNECTION WITH THE SOFTWARE OR THE USE OR 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. #if FEATURE_histogram
  35.  
  36. /**********************************************************************
  37.  * API functions
  38.  */
  39.  
  40.  
  41. /* this is defined below */
  42. static void GLAPIENTRY _mesa_ResetMinmax(GLenum target);
  43.  
  44.  
  45. static void GLAPIENTRY
  46. _mesa_GetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
  47. {
  48.    GET_CURRENT_CONTEXT(ctx);
  49.  
  50.    _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmax");
  51. }
  52.  
  53.  
  54. static void GLAPIENTRY
  55. _mesa_GetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
  56. {
  57.    GET_CURRENT_CONTEXT(ctx);
  58.  
  59.    _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogram");
  60. }
  61.  
  62.  
  63. static void GLAPIENTRY
  64. _mesa_GetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params)
  65. {
  66.    GET_CURRENT_CONTEXT(ctx);
  67.  
  68.    _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameterfv");
  69. }
  70.  
  71.  
  72. static void GLAPIENTRY
  73. _mesa_GetHistogramParameteriv(GLenum target, GLenum pname, GLint *params)
  74. {
  75.    GET_CURRENT_CONTEXT(ctx);
  76.  
  77.    _mesa_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameteriv");
  78. }
  79.  
  80.  
  81. static void GLAPIENTRY
  82. _mesa_GetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params)
  83. {
  84.    GET_CURRENT_CONTEXT(ctx);
  85.  
  86.       _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameterfv");
  87. }
  88.  
  89.  
  90. static void GLAPIENTRY
  91. _mesa_GetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params)
  92. {
  93.    GET_CURRENT_CONTEXT(ctx);
  94.  
  95.    _mesa_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameteriv");
  96. }
  97.  
  98.  
  99. static void GLAPIENTRY
  100. _mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean sink)
  101. {
  102.    GET_CURRENT_CONTEXT(ctx);
  103.  
  104.    _mesa_error(ctx, GL_INVALID_OPERATION, "glHistogram");
  105. }
  106.  
  107.  
  108. static void GLAPIENTRY
  109. _mesa_Minmax(GLenum target, GLenum internalFormat, GLboolean sink)
  110. {
  111.    GET_CURRENT_CONTEXT(ctx);
  112.  
  113.    _mesa_error(ctx, GL_INVALID_OPERATION, "glMinmax");
  114. }
  115.  
  116.  
  117. static void GLAPIENTRY
  118. _mesa_ResetHistogram(GLenum target)
  119. {
  120.    GET_CURRENT_CONTEXT(ctx);
  121.  
  122.    _mesa_error(ctx, GL_INVALID_OPERATION, "glResetHistogram");
  123. }
  124.  
  125.  
  126. static void GLAPIENTRY
  127. _mesa_ResetMinmax(GLenum target)
  128. {
  129.    GET_CURRENT_CONTEXT(ctx);
  130.  
  131.    _mesa_error(ctx, GL_INVALID_OPERATION, "glResetMinmax");
  132. }
  133.  
  134.  
  135. void
  136. _mesa_init_histogram_dispatch(struct _glapi_table *disp)
  137. {
  138.    SET_GetHistogram(disp, _mesa_GetHistogram);
  139.    SET_GetHistogramParameterfv(disp, _mesa_GetHistogramParameterfv);
  140.    SET_GetHistogramParameteriv(disp, _mesa_GetHistogramParameteriv);
  141.    SET_GetMinmax(disp, _mesa_GetMinmax);
  142.    SET_GetMinmaxParameterfv(disp, _mesa_GetMinmaxParameterfv);
  143.    SET_GetMinmaxParameteriv(disp, _mesa_GetMinmaxParameteriv);
  144.    SET_Histogram(disp, _mesa_Histogram);
  145.    SET_Minmax(disp, _mesa_Minmax);
  146.    SET_ResetHistogram(disp, _mesa_ResetHistogram);
  147.    SET_ResetMinmax(disp, _mesa_ResetMinmax);
  148. }
  149.  
  150. #endif /* FEATURE_histogram */
  151.