home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / src / pixel.h < prev    next >
C/C++ Source or Header  |  2000-01-07  |  4KB  |  125 lines

  1. /* $Id: pixel.h,v 1.2 1999/10/30 08:20:57 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.1
  6.  * 
  7.  * Copyright (C) 1999  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.  
  29.  
  30.  
  31. #ifndef PIXEL_H
  32. #define PIXEL_H
  33.  
  34.  
  35. #include "types.h"
  36.  
  37.  
  38. /*
  39.  * API functions
  40.  */
  41.  
  42.  
  43. extern void gl_GetPixelMapfv( GLcontext *ctx, GLenum map, GLfloat *values );
  44.  
  45. extern void gl_GetPixelMapuiv( GLcontext *ctx, GLenum map, GLuint *values );
  46.  
  47. extern void gl_GetPixelMapusv( GLcontext *ctx, GLenum map, GLushort *values );
  48.  
  49.  
  50. extern void gl_PixelMapfv( GLcontext *ctx,
  51.                            GLenum map, GLint mapsize, const GLfloat *values );
  52.  
  53. extern void gl_PixelStorei( GLcontext *ctx, GLenum pname, GLint param );
  54.  
  55. extern void gl_PixelTransferf( GLcontext *ctx, GLenum pname, GLfloat param );
  56.  
  57. extern void gl_PixelZoom( GLcontext *ctx, GLfloat xfactor, GLfloat yfactor );
  58.  
  59.  
  60. /*
  61.  * Pixel processing functions
  62.  */
  63.  
  64. extern void gl_scale_and_bias_color( const GLcontext *ctx, GLuint n,
  65.                                      GLfloat red[], GLfloat green[],
  66.                                      GLfloat blue[], GLfloat alpha[] );
  67.  
  68.  
  69. extern void gl_scale_and_bias_rgba( const GLcontext *ctx, GLuint n,
  70.                                     GLubyte rgba[][4] );
  71.  
  72.  
  73. extern void gl_scale_and_bias_rgba_float( const GLcontext *ctx, GLuint n,
  74.                                           GLfloat rgba[][4] );
  75.  
  76.  
  77. extern void gl_map_rgba( const GLcontext *ctx, GLuint n, GLubyte rgba[][4] );
  78.  
  79.  
  80. extern void gl_map_rgba_float( const GLcontext *ctx, GLuint n,
  81.                                GLfloat rgba[][4] );
  82.  
  83.  
  84. extern void gl_map_color( const GLcontext *ctx, GLuint n,
  85.                           GLfloat red[], GLfloat green[],
  86.                           GLfloat blue[], GLfloat alpha[] );
  87.  
  88.  
  89. extern void gl_shift_and_offset_ci( const GLcontext *ctx, GLuint n,
  90.                                     GLuint indexes[] );
  91.  
  92.  
  93. extern void gl_map_ci( const GLcontext *ctx, GLuint n, GLuint index[] );
  94.  
  95.  
  96. extern void gl_map_ci_to_rgba( const GLcontext *ctx,
  97.                                GLuint n, const GLuint index[],
  98.                                GLubyte rgba[][4] );
  99.  
  100.  
  101. extern void gl_map_ci_to_rgba_float( const GLcontext *ctx,
  102.                                      GLuint n, const GLuint index[],
  103.                                      GLfloat rgba[][4] );
  104.  
  105.  
  106. extern void gl_map_ci8_to_rgba( const GLcontext *ctx,
  107.                                 GLuint n, const GLubyte index[],
  108.                                 GLubyte rgba[][4] );
  109.  
  110.  
  111. extern void gl_map_ci_to_color( const GLcontext *ctx,
  112.                                 GLuint n, const GLuint index[],
  113.                                 GLfloat r[], GLfloat g[],
  114.                                 GLfloat b[], GLfloat a[] );
  115.  
  116.  
  117. extern void gl_shift_and_offset_stencil( const GLcontext *ctx, GLuint n,
  118.                                          GLstencil indexes[] );
  119.  
  120.  
  121. extern void gl_map_stencil( const GLcontext *ctx, GLuint n, GLstencil index[] );
  122.  
  123.  
  124. #endif
  125.