Platform SDK: DirectX |
Direct3DDevice7.SetLight メソッドは、デバイスにライティング パラメータを割り当てる。
object.SetLight( _ LightIndex As Long, _ Light As D3DLIGHT7)
メソッドが失敗するとエラーが発生し、Err.Number に次のいずれかのエラー コードが設定される。
DDERR_INVALIDPARAMS |
DDERR_OUTOFMEMORY |
Direct3DDevice7.GetLight、Direct3DDevice7.GetLightEnable、Direct3DDevice7.LightEnable、ライティングとマテリアル