added memory macros
[mesa.git] / src / mesa / main / pixel.h
1 /* $Id: pixel.h,v 1.1 1999/08/19 00:55:41 jtg 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_map_rgba( const GLcontext *ctx, GLuint n, GLubyte rgba[][4] );
74
75
76 extern void gl_map_color( const GLcontext *ctx, GLuint n,
77 GLfloat red[], GLfloat green[],
78 GLfloat blue[], GLfloat alpha[] );
79
80
81 extern void gl_shift_and_offset_ci( const GLcontext *ctx, GLuint n,
82 GLuint indexes[] );
83
84
85 extern void gl_map_ci( const GLcontext *ctx, GLuint n, GLuint index[] );
86
87
88 extern void gl_map_ci_to_rgba( const GLcontext *ctx,
89 GLuint n, const GLuint index[],
90 GLubyte rgba[][4] );
91
92
93 extern void gl_map_ci8_to_rgba( const GLcontext *ctx,
94 GLuint n, const GLubyte index[],
95 GLubyte rgba[][4] );
96
97
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[] );
102
103
104 extern void gl_shift_and_offset_stencil( const GLcontext *ctx, GLuint n,
105 GLstencil indexes[] );
106
107
108 extern void gl_map_stencil( const GLcontext *ctx, GLuint n, GLstencil index[] );
109
110
111 #endif