Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Lights and arrays

This topic is 5424 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 wondering how the arrays work with lights? For example to use the array do i set all the diffuse light etc and then call: g_pd3dDevice->SetLight( 0, &light ); To set the array. And then to turn the lights on and off i use this?: g_pd3dDevice->LightEnable( 0, TRUE );

Share this post

Link to post
Share on other sites

I am not sure what you mean by arrays? If you look at the SetLight function, it takes a light number and a pointer to an already set up light structure. You can have multiple lights set up and you can turn on and off any combinations of them.

LightEnable allows you to turn specific lights on and off.

If you have any more questions, email me! Good luck!

[edited by - KershAtWork on August 14, 2003 1:30:13 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!