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

Last change on this file since 2938 was 2938, checked in by sandervl, 25 years ago

created

File size: 3.9 KB
Line 
1/* $Id: pixel.h,v 1.1 2000-02-29 00:48:35 sandervl 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
43extern void gl_GetPixelMapfv( GLcontext *ctx, GLenum map, GLfloat *values );
44
45extern void gl_GetPixelMapuiv( GLcontext *ctx, GLenum map, GLuint *values );
46
47extern void gl_GetPixelMapusv( GLcontext *ctx, GLenum map, GLushort *values );
48
49
50extern void gl_PixelMapfv( GLcontext *ctx,
51 GLenum map, GLint mapsize, const GLfloat *values );
52
53extern void gl_PixelStorei( GLcontext *ctx, GLenum pname, GLint param );
54
55extern void gl_PixelTransferf( GLcontext *ctx, GLenum pname, GLfloat param );
56
57extern void gl_PixelZoom( GLcontext *ctx, GLfloat xfactor, GLfloat yfactor );
58
59
60/*
61 * Pixel processing functions
62 */
63
64extern void gl_scale_and_bias_color( const GLcontext *ctx, GLuint n,
65 GLfloat red[], GLfloat green[],
66 GLfloat blue[], GLfloat alpha[] );
67
68
69extern void gl_scale_and_bias_rgba( const GLcontext *ctx, GLuint n,
70 GLubyte rgba[][4] );
71
72
73extern void gl_scale_and_bias_rgba_float( const GLcontext *ctx, GLuint n,
74 GLfloat rgba[][4] );
75
76
77extern void gl_map_rgba( const GLcontext *ctx, GLuint n, GLubyte rgba[][4] );
78
79
80extern void gl_map_rgba_float( const GLcontext *ctx, GLuint n,
81 GLfloat rgba[][4] );
82
83
84extern void gl_map_color( const GLcontext *ctx, GLuint n,
85 GLfloat red[], GLfloat green[],
86 GLfloat blue[], GLfloat alpha[] );
87
88
89extern void gl_shift_and_offset_ci( const GLcontext *ctx, GLuint n,
90 GLuint indexes[] );
91
92
93extern void gl_map_ci( const GLcontext *ctx, GLuint n, GLuint index[] );
94
95
96extern void gl_map_ci_to_rgba( const GLcontext *ctx,
97 GLuint n, const GLuint index[],
98 GLubyte rgba[][4] );
99
100
101extern void gl_map_ci_to_rgba_float( const GLcontext *ctx,
102 GLuint n, const GLuint index[],
103 GLfloat rgba[][4] );
104
105
106extern void gl_map_ci8_to_rgba( const GLcontext *ctx,
107 GLuint n, const GLubyte index[],
108 GLubyte rgba[][4] );
109
110
111extern 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[] );
115
116
117extern void gl_shift_and_offset_stencil( const GLcontext *ctx, GLuint n,
118 GLstencil indexes[] );
119
120
121extern void gl_map_stencil( const GLcontext *ctx, GLuint n, GLstencil index[] );
122
123
124#endif
Note: See TracBrowser for help on using the repository browser.