Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/texture.h

raw
1 /* $Id: texture.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.2
6 * Copyright (C) 1995-1997 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef TEXTURE_H
24 #define TEXTURE_H
25
26
27 #include "types.h"
28
29
30 /*** Called from API ***/
31
32 extern void gl_GetTexEnvfv( GLcontext *ctx,
33 GLenum target, GLenum pname, GLfloat *params );
34
35 extern void gl_GetTexEnviv( GLcontext *ctx,
36 GLenum target, GLenum pname, GLint *params );
37
38 extern void gl_GetTexGendv( GLcontext *ctx,
39 GLenum coord, GLenum pname, GLdouble *params );
40
41 extern void gl_GetTexGenfv( GLcontext *ctx,
42 GLenum coord, GLenum pname, GLfloat *params );
43
44 extern void gl_GetTexGeniv( GLcontext *ctx,
45 GLenum coord, GLenum pname, GLint *params );
46
47 extern void gl_GetTexLevelParameterfv( GLcontext *ctx,
48 GLenum target, GLint level,
49 GLenum pname, GLfloat *params );
50
51 extern void gl_GetTexLevelParameteriv( GLcontext *ctx,
52 GLenum target, GLint level,
53 GLenum pname, GLint *params );
54
55 extern void gl_GetTexParameterfv( GLcontext *ctx, GLenum target,
56 GLenum pname, GLfloat *params );
57
58 extern void gl_GetTexParameteriv( GLcontext *ctx,
59 GLenum target, GLenum pname, GLint *params );
60
61
62 extern void gl_TexEnvfv( GLcontext *ctx,
63 GLenum target, GLenum pname, const GLfloat *param );
64
65
66 extern void gl_TexParameterfv( GLcontext *ctx, GLenum target, GLenum pname,
67 const GLfloat *params );
68
69
70 extern void gl_TexGenfv( GLcontext *ctx,
71 GLenum coord, GLenum pname, const GLfloat *params );
72
73
74
75 /*** Internal functions ***/
76
77
78 extern void gl_texgen( GLcontext *ctx, GLint n,
79 GLfloat obj[][4], GLfloat eye[][4],
80 GLfloat normal[][3], GLfloat texcoord[][4] );
81
82
83 extern void gl_texture_pixels_1d( GLcontext *ctx,
84 GLuint n,
85 GLfloat s[], GLfloat lambda[],
86 GLubyte red[], GLubyte green[],
87 GLubyte blue[], GLubyte alpha[] );
88
89
90 extern void gl_texture_pixels_2d( GLcontext *ctx,
91 GLuint n,
92 GLfloat s[], GLfloat t[], GLfloat lambda[],
93 GLubyte red[], GLubyte green[],
94 GLubyte blue[], GLubyte alpha[] );
95
96
97 extern void gl_texture_pixels_3d( GLcontext *ctx,
98 GLuint n,
99 GLfloat s[], GLfloat t[],
100 GLfloat r[], GLfloat lambda[],
101 GLubyte red[], GLubyte green[],
102 GLubyte blue[], GLubyte alpha[] );
103
104
105 extern void gl_update_texture_state( GLcontext *ctx );
106
107
108 extern GLboolean gl_texturing_enabled( GLcontext *ctx );
109
110
111 #endif
112