Debian Codegraph @

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

raw
1 /* $Id: light.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.1
6 * Copyright (C) 1995-1996 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 LIGHT_H
24 #define LIGHT_H
25
26
27 #include "types.h"
28
29
30 extern void gl_ShadeModel( GLcontext *ctx, GLenum mode );
31
32 extern void gl_ColorMaterial( GLcontext *ctx, GLenum face, GLenum mode );
33
34 extern void gl_Lightfv( GLcontext *ctx,
35 GLenum light, GLenum pname, const GLfloat *params,
36 GLint nparams );
37
38 extern void gl_LightModelfv( GLcontext *ctx,
39 GLenum pname, const GLfloat *params );
40
41
42 extern GLuint gl_material_bitmask( GLenum face, GLenum pname );
43
44 extern void gl_set_material( GLcontext *ctx, GLuint bitmask,
45 const GLfloat *params);
46
47 extern void gl_Materialfv( GLcontext *ctx,
48 GLenum face, GLenum pname, const GLfloat *params );
49
50
51
52 extern void gl_GetLightfv( GLcontext *ctx,
53 GLenum light, GLenum pname, GLfloat *params );
54
55 extern void gl_GetLightiv( GLcontext *ctx,
56 GLenum light, GLenum pname, GLint *params );
57
58
59 extern void gl_GetMaterialfv( GLcontext *ctx,
60 GLenum face, GLenum pname, GLfloat *params );
61
62 extern void gl_GetMaterialiv( GLcontext *ctx,
63 GLenum face, GLenum pname, GLint *params );
64
65
66 extern void gl_compute_spot_exp_table( struct gl_light *l );
67
68 extern void gl_compute_material_shine_table( struct gl_material *m );
69
70 extern void gl_update_lighting( GLcontext *ctx );
71
72
73
74 extern void gl_color_shade_vertices( GLcontext *ctx,
75 GLuint n,
76 GLfloat vertex[][4],
77 GLfloat normal[][3],
78 GLuint twoside,
79 GLfixed frontcolor[][4],
80 GLfixed backcolor[][4] );
81
82
83 extern void gl_color_shade_vertices_fast( GLcontext *ctx,
84 GLuint n,
85 GLfloat vertex[][4],
86 GLfloat normal[][3],
87 GLuint twoside,
88 GLfixed frontcolor[][4],
89 GLfixed backcolor[][4] );
90
91
92 extern void gl_index_shade_vertices( GLcontext *ctx,
93 GLuint n,
94 GLfloat vertex[][4],
95 GLfloat normal[][3],
96 GLuint twoside,
97 GLuint frontindex[],
98 GLuint backindex[] );
99
100 #endif
101