Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
-/* Perform a straight copy between materials.
- */
-void
-_mesa_copy_materials( struct gl_material *dst,
- const struct gl_material *src,
- GLuint bitmask )
-{
- int i;
-
- for (i = 0 ; i < MAT_ATTRIB_MAX ; i++)
- if (bitmask & (1<<i))
- COPY_4FV( dst->Attrib[i], src->Attrib[i] );
-}
-
-
-
/* Update derived values following a change in ctx->Light.Material
*/
void
extern void _mesa_update_material( struct gl_context *ctx,
GLuint bitmask );
-extern void _mesa_copy_materials( struct gl_material *dst,
- const struct gl_material *src,
- GLuint bitmask );
-
extern void _mesa_update_color_material( struct gl_context *ctx,
const GLfloat rgba[4] );