1 /* $Id: pixel.h,v 1.1 1999/08/19 00:55:41 jtg 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.
43 extern void gl_GetPixelMapfv( GLcontext
*ctx
, GLenum map
, GLfloat
*values
);
45 extern void gl_GetPixelMapuiv( GLcontext
*ctx
, GLenum map
, GLuint
*values
);
47 extern void gl_GetPixelMapusv( GLcontext
*ctx
, GLenum map
, GLushort
*values
);
50 extern void gl_PixelMapfv( GLcontext
*ctx
,
51 GLenum map
, GLint mapsize
, const GLfloat
*values
);
53 extern void gl_PixelStorei( GLcontext
*ctx
, GLenum pname
, GLint param
);
55 extern void gl_PixelTransferf( GLcontext
*ctx
, GLenum pname
, GLfloat param
);
57 extern void gl_PixelZoom( GLcontext
*ctx
, GLfloat xfactor
, GLfloat yfactor
);
61 * Pixel processing functions
64 extern void gl_scale_and_bias_color( const GLcontext
*ctx
, GLuint n
,
65 GLfloat red
[], GLfloat green
[],
66 GLfloat blue
[], GLfloat alpha
[] );
69 extern void gl_scale_and_bias_rgba( const GLcontext
*ctx
, GLuint n
,
73 extern void gl_map_rgba( const GLcontext
*ctx
, GLuint n
, GLubyte rgba
[][4] );
76 extern void gl_map_color( const GLcontext
*ctx
, GLuint n
,
77 GLfloat red
[], GLfloat green
[],
78 GLfloat blue
[], GLfloat alpha
[] );
81 extern void gl_shift_and_offset_ci( const GLcontext
*ctx
, GLuint n
,
85 extern void gl_map_ci( const GLcontext
*ctx
, GLuint n
, GLuint index
[] );
88 extern void gl_map_ci_to_rgba( const GLcontext
*ctx
,
89 GLuint n
, const GLuint index
[],
93 extern void gl_map_ci8_to_rgba( const GLcontext
*ctx
,
94 GLuint n
, const GLubyte index
[],
98 extern void gl_map_ci_to_color( const GLcontext
*ctx
,
99 GLuint n
, const GLuint index
[],
100 GLfloat r
[], GLfloat g
[],
101 GLfloat b
[], GLfloat a
[] );
104 extern void gl_shift_and_offset_stencil( const GLcontext
*ctx
, GLuint n
,
105 GLstencil indexes
[] );
108 extern void gl_map_stencil( const GLcontext
*ctx
, GLuint n
, GLstencil index
[] );