Jump to content
  • Advertisement
Sign in to follow this  
teh_programerer

Turning On/Off a Single Light?

This topic is 4384 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having problems with implementing a flashlight on my demo, I can't find a way to turn it on and off. I've got a D3DLIGHT 9 called FlashLight and one called RoomLight (you can probably guess what they are for) I have looked through the SDK documentation and could not find much. The only thing I could get working is setting LightEnable to (0, false) but that obviously turns off both sets of lights. Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement
LightEnable enables/disables the light set at the given index. Use different indices for different lights. The only restriction is that the number of active lights is less than or equal to the maximum indicated by D3DCAPS9::MaxActiveLights.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!