Lines Matching refs:lightInfo

4715     const struct wined3d_light_info *lightInfo = stateblock->activeLights[Index];
4717 if(!lightInfo) {
4730 colRGBA[0] = lightInfo->OriginalParms.Diffuse.r;
4731 colRGBA[1] = lightInfo->OriginalParms.Diffuse.g;
4732 colRGBA[2] = lightInfo->OriginalParms.Diffuse.b;
4733 colRGBA[3] = lightInfo->OriginalParms.Diffuse.a;
4738 colRGBA[0] = lightInfo->OriginalParms.Specular.r;
4739 colRGBA[1] = lightInfo->OriginalParms.Specular.g;
4740 colRGBA[2] = lightInfo->OriginalParms.Specular.b;
4741 colRGBA[3] = lightInfo->OriginalParms.Specular.a;
4746 colRGBA[0] = lightInfo->OriginalParms.Ambient.r;
4747 colRGBA[1] = lightInfo->OriginalParms.Ambient.g;
4748 colRGBA[2] = lightInfo->OriginalParms.Ambient.b;
4749 colRGBA[3] = lightInfo->OriginalParms.Ambient.a;
4753 if ((lightInfo->OriginalParms.Range *lightInfo->OriginalParms.Range) >= FLT_MIN) {
4754 quad_att = 1.4f/(lightInfo->OriginalParms.Range *lightInfo->OriginalParms.Range);
4764 switch (lightInfo->OriginalParms.Type) {
4767 glLightfv(GL_LIGHT0 + Index, GL_POSITION, &lightInfo->lightPosn[0]);
4769 glLightf(GL_LIGHT0 + Index, GL_SPOT_CUTOFF, lightInfo->cutoff);
4772 glLightf(GL_LIGHT0 + Index, GL_CONSTANT_ATTENUATION, lightInfo->OriginalParms.Attenuation0);
4774 glLightf(GL_LIGHT0 + Index, GL_LINEAR_ATTENUATION, lightInfo->OriginalParms.Attenuation1);
4776 if (quad_att < lightInfo->OriginalParms.Attenuation2) quad_att = lightInfo->OriginalParms.Attenuation2;
4784 glLightfv(GL_LIGHT0 + Index, GL_POSITION, &lightInfo->lightPosn[0]);
4787 glLightfv(GL_LIGHT0 + Index, GL_SPOT_DIRECTION, &lightInfo->lightDirn[0]);
4789 glLightf(GL_LIGHT0 + Index, GL_SPOT_EXPONENT, lightInfo->exponent);
4791 glLightf(GL_LIGHT0 + Index, GL_SPOT_CUTOFF, lightInfo->cutoff);
4794 glLightf(GL_LIGHT0 + Index, GL_CONSTANT_ATTENUATION, lightInfo->OriginalParms.Attenuation0);
4796 glLightf(GL_LIGHT0 + Index, GL_LINEAR_ATTENUATION, lightInfo->OriginalParms.Attenuation1);
4798 if (quad_att < lightInfo->OriginalParms.Attenuation2) quad_att = lightInfo->OriginalParms.Attenuation2;
4806 glLightfv(GL_LIGHT0 + Index, GL_POSITION, &lightInfo->lightPosn[0]); /* Note gl uses w position of 0 for direction! */
4808 glLightf(GL_LIGHT0 + Index, GL_SPOT_CUTOFF, lightInfo->cutoff);
4815 FIXME("Unrecognized light type %d\n", lightInfo->OriginalParms.Type);