ReactOS 0.4.15-dev-7693-gd0e2924
light.h
Go to the documentation of this file.
1/* $Id: light.h,v 1.4 1997/04/01 04:09:16 brianp Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 2.3
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
24/*
25 * $Log: light.h,v $
26 * Revision 1.4 1997/04/01 04:09:16 brianp
27 * removed shading functions
28 *
29 * Revision 1.3 1996/12/18 20:03:01 brianp
30 * gl_set_material() now takes a bitmask instead of face and pname
31 * added gl_material_bitmask()
32 *
33 * Revision 1.2 1996/12/07 10:21:58 brianp
34 * added gl_set_material()
35 *
36 * Revision 1.1 1996/09/13 01:38:16 brianp
37 * Initial revision
38 *
39 */
40
41
42#ifndef LIGHT_H
43#define LIGHT_H
44
45
46#include "types.h"
47
48
49extern void gl_ShadeModel( GLcontext *ctx, GLenum mode );
50
52
53extern void gl_Lightfv( GLcontext *ctx,
55 GLint nparams );
56
57extern void gl_LightModelfv( GLcontext *ctx,
58 GLenum pname, const GLfloat *params );
59
60
62
63extern void gl_set_material( GLcontext *ctx, GLuint bitmask,
64 const GLfloat *params);
65
66extern void gl_Materialfv( GLcontext *ctx,
68
69
70
71extern void gl_GetLightfv( GLcontext *ctx,
73
74extern void gl_GetLightiv( GLcontext *ctx,
76
77
78extern void gl_GetMaterialfv( GLcontext *ctx,
80
81extern void gl_GetMaterialiv( GLcontext *ctx,
83
84
85extern void gl_compute_spot_exp_table( struct gl_light *l );
86
87extern void gl_compute_material_shine_table( struct gl_material *m );
88
89extern void gl_update_lighting( GLcontext *ctx );
90
91
92#endif
93
r l[0]
Definition: byte_order.h:168
float GLfloat
Definition: gl.h:161
unsigned int GLenum
Definition: gl.h:150
unsigned int GLuint
Definition: gl.h:159
int GLint
Definition: gl.h:156
GLenum pname
Definition: glext.h:5645
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
GLenum mode
Definition: glext.h:6217
GLenum const GLfloat * params
Definition: glext.h:5645
const GLfloat * m
Definition: glext.h:10848
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum light
Definition: glfuncs.h:170
void gl_GetMaterialfv(GLcontext *ctx, GLenum face, GLenum pname, GLfloat *params)
Definition: light.c:563
void gl_GetLightiv(GLcontext *ctx, GLenum light, GLenum pname, GLint *params)
Definition: light.c:260
GLuint gl_material_bitmask(GLenum face, GLenum pname)
Definition: light.c:362
void gl_Lightfv(GLcontext *ctx, GLenum light, GLenum pname, const GLfloat *params, GLint nparams)
Definition: light.c:114
void gl_GetLightfv(GLcontext *ctx, GLenum light, GLenum pname, GLfloat *params)
Definition: light.c:211
void gl_compute_spot_exp_table(struct gl_light *l)
Definition: light.c:710
void gl_set_material(GLcontext *ctx, GLuint bitmask, const GLfloat *params)
Definition: light.c:413
void gl_ColorMaterial(GLcontext *ctx, GLenum face, GLenum mode)
Definition: light.c:485
void gl_update_lighting(GLcontext *ctx)
Definition: light.c:770
void gl_ShadeModel(GLcontext *ctx, GLenum mode)
Definition: light.c:92
void gl_compute_material_shine_table(struct gl_material *m)
Definition: light.c:741
void gl_Materialfv(GLcontext *ctx, GLenum face, GLenum pname, const GLfloat *params)
Definition: light.c:523
void gl_GetMaterialiv(GLcontext *ctx, GLenum face, GLenum pname, GLint *params)
Definition: light.c:610
void gl_LightModelfv(GLcontext *ctx, GLenum pname, const GLfloat *params)
Definition: light.c:327