1 /* $Id: pixel.h,v 1.2 1999/10/30 08:20:57 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.
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_scale_and_bias_rgba_float( const GLcontext
*ctx
, GLuint n
,
77 extern void gl_map_rgba( const GLcontext
*ctx
, GLuint n
, GLubyte rgba
[][4] );
80 extern void gl_map_rgba_float( const GLcontext
*ctx
, GLuint n
,
84 extern void gl_map_color( const GLcontext
*ctx
, GLuint n
,
85 GLfloat red
[], GLfloat green
[],
86 GLfloat blue
[], GLfloat alpha
[] );
89 extern void gl_shift_and_offset_ci( const GLcontext
*ctx
, GLuint n
,
93 extern void gl_map_ci( const GLcontext
*ctx
, GLuint n
, GLuint index
[] );
96 extern void gl_map_ci_to_rgba( const GLcontext
*ctx
,
97 GLuint n
, const GLuint index
[],
101 extern void gl_map_ci_to_rgba_float( const GLcontext
*ctx
,
102 GLuint n
, const GLuint index
[],
106 extern void gl_map_ci8_to_rgba( const GLcontext
*ctx
,
107 GLuint n
, const GLubyte index
[],
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
[] );
117 extern void gl_shift_and_offset_stencil( const GLcontext
*ctx
, GLuint n
,
118 GLstencil indexes
[] );
121 extern void gl_map_stencil( const GLcontext
*ctx
, GLuint n
, GLstencil index
[] );