27d200825e83b3656ac17feb7a6ec85037686502
1 /* $Id: pixel.h,v 1.5 2000/04/12 18:54:48 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2000 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
80 _mesa_scale_and_bias_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4]);
84 _mesa_map_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4]);
88 _mesa_transform_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4]);
92 _mesa_lookup_rgba(const struct gl_color_table
*table
,
93 GLuint n
, GLfloat rgba
[][4]);
97 _mesa_shift_and_offset_ci(const GLcontext
*ctx
, GLuint n
,
102 _mesa_map_ci(const GLcontext
*ctx
, GLuint n
, GLuint index
[]);
106 _mesa_map_ci_to_rgba_ubyte(const GLcontext
*ctx
,
107 GLuint n
, const GLuint index
[],
112 _mesa_map_ci_to_rgba(const GLcontext
*ctx
,
113 GLuint n
, const GLuint index
[], GLfloat rgba
[][4]);
117 _mesa_map_ci8_to_rgba(const GLcontext
*ctx
,
118 GLuint n
, const GLubyte index
[],
123 _mesa_shift_and_offset_stencil(const GLcontext
*ctx
, GLuint n
,
124 GLstencil indexes
[]);
128 _mesa_map_stencil(const GLcontext
*ctx
, GLuint n
, GLstencil index
[]);