2 * Mesa 3-D graphics library
4 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
5 * Copyright (C) 2009 VMware, Inc. All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
37 extern void GLAPIENTRY
38 _mesa_ShadeModel( GLenum mode
);
40 extern void GLAPIENTRY
41 _mesa_ProvokingVertex(GLenum mode
);
44 extern void GLAPIENTRY
45 _mesa_ColorMaterial( GLenum face
, GLenum mode
);
47 extern void GLAPIENTRY
48 _mesa_Lightf( GLenum light
, GLenum pname
, GLfloat param
);
50 extern void GLAPIENTRY
51 _mesa_Lightfv( GLenum light
, GLenum pname
, const GLfloat
*params
);
53 extern void GLAPIENTRY
54 _mesa_Lightiv( GLenum light
, GLenum pname
, const GLint
*params
);
56 extern void GLAPIENTRY
57 _mesa_Lighti( GLenum light
, GLenum pname
, GLint param
);
59 extern void GLAPIENTRY
60 _mesa_LightModelf( GLenum pname
, GLfloat param
);
62 extern void GLAPIENTRY
63 _mesa_LightModelfv( GLenum pname
, const GLfloat
*params
);
65 extern void GLAPIENTRY
66 _mesa_LightModeli( GLenum pname
, GLint param
);
68 extern void GLAPIENTRY
69 _mesa_LightModeliv( GLenum pname
, const GLint
*params
);
71 extern void GLAPIENTRY
72 _mesa_GetLightfv( GLenum light
, GLenum pname
, GLfloat
*params
);
74 extern void GLAPIENTRY
75 _mesa_GetLightiv( GLenum light
, GLenum pname
, GLint
*params
);
77 extern void GLAPIENTRY
78 _mesa_GetMaterialfv( GLenum face
, GLenum pname
, GLfloat
*params
);
80 extern void GLAPIENTRY
81 _mesa_GetMaterialiv( GLenum face
, GLenum pname
, GLint
*params
);
85 _mesa_light(struct gl_context
*ctx
, GLuint lnum
, GLenum pname
, const GLfloat
*params
);
88 extern GLuint
_mesa_material_bitmask( struct gl_context
*ctx
,
89 GLenum face
, GLenum pname
,
93 extern void _mesa_update_lighting( struct gl_context
*ctx
);
95 extern void _mesa_update_tnl_spaces( struct gl_context
*ctx
, GLuint new_state
);
97 extern void _mesa_update_material( struct gl_context
*ctx
,
100 extern void _mesa_update_color_material( struct gl_context
*ctx
,
101 const GLfloat rgba
[4] );
103 extern void _mesa_init_lighting( struct gl_context
*ctx
);
105 extern void _mesa_allow_light_in_model( struct gl_context
*ctx
, GLboolean flag
);