source: trunk/src/opengl/mesa/pixel.h@ 3598

Last change on this file since 3598 was 3597, checked in by jeroen, 25 years ago

* empty log message *

File size: 4.1 KB
Line 
1/* $Id: pixel.h,v 1.2 2000-05-23 20:34:54 jeroen Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.3
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
43extern void
44_mesa_GetPixelMapfv( GLenum map, GLfloat *values );
45
46extern void
47_mesa_GetPixelMapuiv( GLenum map, GLuint *values );
48
49extern void
50_mesa_GetPixelMapusv( GLenum map, GLushort *values );
51
52extern void
53_mesa_PixelMapfv( GLenum map, GLint mapsize, const GLfloat *values );
54
55extern void
56_mesa_PixelMapuiv(GLenum map, GLint mapsize, const GLuint *values );
57
58extern void
59_mesa_PixelMapusv(GLenum map, GLint mapsize, const GLushort *values );
60
61extern void
62_mesa_PixelStoref( GLenum pname, GLfloat param );
63
64extern void
65_mesa_PixelStorei( GLenum pname, GLint param );
66
67extern void
68_mesa_PixelTransferf( GLenum pname, GLfloat param );
69
70extern void
71_mesa_PixelTransferi( GLenum pname, GLint param );
72
73extern void
74_mesa_PixelZoom( GLfloat xfactor, GLfloat yfactor );
75
76
77
78/*
79 * Pixel processing functions
80 */
81
82extern void gl_scale_and_bias_color( const GLcontext *ctx, GLuint n,
83 GLfloat red[], GLfloat green[],
84 GLfloat blue[], GLfloat alpha[] );
85
86
87extern void gl_scale_and_bias_rgba( const GLcontext *ctx, GLuint n,
88 GLubyte rgba[][4] );
89
90
91extern void gl_scale_and_bias_rgba_float( const GLcontext *ctx, GLuint n,
92 GLfloat rgba[][4] );
93
94
95extern void gl_map_rgba( const GLcontext *ctx, GLuint n, GLubyte rgba[][4] );
96
97
98extern void gl_map_rgba_float( const GLcontext *ctx, GLuint n,
99 GLfloat rgba[][4] );
100
101
102extern void gl_map_color( const GLcontext *ctx, GLuint n,
103 GLfloat red[], GLfloat green[],
104 GLfloat blue[], GLfloat alpha[] );
105
106
107extern void gl_shift_and_offset_ci( const GLcontext *ctx, GLuint n,
108 GLuint indexes[] );
109
110
111extern void gl_map_ci( const GLcontext *ctx, GLuint n, GLuint index[] );
112
113
114extern void gl_map_ci_to_rgba( const GLcontext *ctx,
115 GLuint n, const GLuint index[],
116 GLubyte rgba[][4] );
117
118
119extern void gl_map_ci_to_rgba_float( const GLcontext *ctx,
120 GLuint n, const GLuint index[],
121 GLfloat rgba[][4] );
122
123
124extern void gl_map_ci8_to_rgba( const GLcontext *ctx,
125 GLuint n, const GLubyte index[],
126 GLubyte rgba[][4] );
127
128
129extern void gl_map_ci_to_color( const GLcontext *ctx,
130 GLuint n, const GLuint index[],
131 GLfloat r[], GLfloat g[],
132 GLfloat b[], GLfloat a[] );
133
134
135extern void gl_shift_and_offset_stencil( const GLcontext *ctx, GLuint n,
136 GLstencil indexes[] );
137
138
139extern void gl_map_stencil( const GLcontext *ctx, GLuint n, GLstencil index[] );
140
141
142#endif
Note: See TracBrowser for help on using the repository browser.