Lines Matching defs:pLight

2348 static HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD Index, CONST WINED3DLIGHT* pLight) {
2355 TRACE("(%p) : Idx(%d), pLight(%p). Hash index is %d\n", This, Index, pLight, Hi);
2360 if(!pLight) {
2365 switch(pLight->Type) {
2373 if (pLight->Attenuation0 < 0.0f || pLight->Attenuation1 < 0.0f || pLight->Attenuation2 < 0.0f)
2409 TRACE("Light %d setting to type %d, Diffuse(%f,%f,%f,%f), Specular(%f,%f,%f,%f), Ambient(%f,%f,%f,%f)\n", Index, pLight->Type,
2410 pLight->Diffuse.r, pLight->Diffuse.g, pLight->Diffuse.b, pLight->Diffuse.a,
2411 pLight->Specular.r, pLight->Specular.g, pLight->Specular.b, pLight->Specular.a,
2412 pLight->Ambient.r, pLight->Ambient.g, pLight->Ambient.b, pLight->Ambient.a);
2413 TRACE("... Pos(%f,%f,%f), Dirn(%f,%f,%f)\n", pLight->Position.x, pLight->Position.y, pLight->Position.z,
2414 pLight->Direction.x, pLight->Direction.y, pLight->Direction.z);
2415 TRACE("... Range(%f), Falloff(%f), Theta(%f), Phi(%f)\n", pLight->Range, pLight->Falloff, pLight->Theta, pLight->Phi);
2418 object->OriginalParms = *pLight;
2420 switch (pLight->Type) {
2423 object->lightPosn[0] = pLight->Position.x;
2424 object->lightPosn[1] = pLight->Position.y;
2425 object->lightPosn[2] = pLight->Position.z;
2433 object->lightPosn[0] = -pLight->Direction.x;
2434 object->lightPosn[1] = -pLight->Direction.y;
2435 object->lightPosn[2] = -pLight->Direction.z;
2443 object->lightPosn[0] = pLight->Position.x;
2444 object->lightPosn[1] = pLight->Position.y;
2445 object->lightPosn[2] = pLight->Position.z;
2449 object->lightDirn[0] = pLight->Direction.x;
2450 object->lightDirn[1] = pLight->Direction.y;
2451 object->lightDirn[2] = pLight->Direction.z;
2461 if (pLight->Falloff == 0) {
2469 rho = pLight->Theta + (pLight->Phi - pLight->Theta)/(2*pLight->Falloff);
2477 object->cutoff = pLight->Phi*90/M_PI;
2483 FIXME("Unrecognized light type %d\n", pLight->Type);
2493 static HRESULT WINAPI IWineD3DDeviceImpl_GetLight(IWineD3DDevice *iface, DWORD Index, WINED3DLIGHT *pLight)
2499 TRACE("(%p) : Idx(%d), pLight(%p)\n", This, Index, pLight);
2513 *pLight = lightInfo->OriginalParms;