Home | History | Annotate | Download | only in main

Lines Matching refs:Light

42 #include "light.h"
81 GLboolean Light[MAX_LIGHTS];
268 attr->ColorMaterial = ctx->Light.ColorMaterialEnabled;
275 attr->Light[i] = ctx->Light.Light[i].Enabled;
277 attr->Lighting = ctx->Light.Enabled;
358 memcpy( attr, &ctx->Light, sizeof(struct gl_light_attrib) );
519 TEST_AND_UPDATE(ctx->Light.ColorMaterialEnabled, enable->ColorMaterial,
527 TEST_AND_UPDATE(ctx->Light.Enabled, enable->Lighting, GL_LIGHTING);
1055 const struct gl_light_attrib *light;
1056 light = (const struct gl_light_attrib *) attr->data;
1058 _mesa_set_enable(ctx, GL_LIGHTING, light->Enabled);
1059 /* per-light state */
1064 const struct gl_light *l = &light->Light[i];
1097 /* light model */
1099 light->Model.Ambient);
1101 (GLfloat) light->Model.LocalViewer);
1103 (GLfloat) light->Model.TwoSide);
1105 (GLfloat) light->Model.ColorControl);
1107 _mesa_ShadeModel(light->ShadeModel);
1109 _mesa_ColorMaterial(light->ColorMaterialFace,
1110 light->ColorMaterialMode);
1112 light->ColorMaterialEnabled);
1114 memcpy(&ctx->Light.Material, &light->Material,
1116 _mesa_ClampColorARB(GL_CLAMP_VERTEX_COLOR_ARB, light->ClampVertexColor);