1 /* $Id: pixel.h,v 1.3 1999/11/11 01:22:27 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
41 _mesa_GetPixelMapfv( GLenum map
, GLfloat
*values
);
44 _mesa_GetPixelMapuiv( GLenum map
, GLuint
*values
);
47 _mesa_GetPixelMapusv( GLenum map
, GLushort
*values
);
50 _mesa_PixelMapfv( GLenum map
, GLint mapsize
, const GLfloat
*values
);
53 _mesa_PixelMapuiv(GLenum map
, GLint mapsize
, const GLuint
*values
);
56 _mesa_PixelMapusv(GLenum map
, GLint mapsize
, const GLushort
*values
);
59 _mesa_PixelStoref( GLenum pname
, GLfloat param
);
62 _mesa_PixelStorei( GLenum pname
, GLint param
);
65 _mesa_PixelTransferf( GLenum pname
, GLfloat param
);
68 _mesa_PixelTransferi( GLenum pname
, GLint param
);
71 _mesa_PixelZoom( GLfloat xfactor
, GLfloat yfactor
);
76 * Pixel processing functions
79 extern void gl_scale_and_bias_color( const GLcontext
*ctx
, GLuint n
,
80 GLfloat red
[], GLfloat green
[],
81 GLfloat blue
[], GLfloat alpha
[] );
84 extern void gl_scale_and_bias_rgba( const GLcontext
*ctx
, GLuint n
,
88 extern void gl_scale_and_bias_rgba_float( const GLcontext
*ctx
, GLuint n
,
92 extern void gl_map_rgba( const GLcontext
*ctx
, GLuint n
, GLubyte rgba
[][4] );
95 extern void gl_map_rgba_float( const GLcontext
*ctx
, GLuint n
,
99 extern void gl_map_color( const GLcontext
*ctx
, GLuint n
,
100 GLfloat red
[], GLfloat green
[],
101 GLfloat blue
[], GLfloat alpha
[] );
104 extern void gl_shift_and_offset_ci( const GLcontext
*ctx
, GLuint n
,
108 extern void gl_map_ci( const GLcontext
*ctx
, GLuint n
, GLuint index
[] );
111 extern void gl_map_ci_to_rgba( const GLcontext
*ctx
,
112 GLuint n
, const GLuint index
[],
116 extern void gl_map_ci_to_rgba_float( const GLcontext
*ctx
,
117 GLuint n
, const GLuint index
[],
121 extern void gl_map_ci8_to_rgba( const GLcontext
*ctx
,
122 GLuint n
, const GLubyte index
[],
126 extern void gl_map_ci_to_color( const GLcontext
*ctx
,
127 GLuint n
, const GLuint index
[],
128 GLfloat r
[], GLfloat g
[],
129 GLfloat b
[], GLfloat a
[] );
132 extern void gl_shift_and_offset_stencil( const GLcontext
*ctx
, GLuint n
,
133 GLstencil indexes
[] );
136 extern void gl_map_stencil( const GLcontext
*ctx
, GLuint n
, GLstencil index
[] );