Jump to content
  • Advertisement

Archived

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

Briskon

What is glLightModel...........

This topic is 5453 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

1. How do glLightModel and glLight relate to each other? 2. Do you need to use glDeleteTextures at the end of a program to delete textures. Some examples I've seen do this, while others don't. So which is it? I asked this question before and I got a few answers all along the lines of "You can if want". I'm looking for the correct answer, I don't want to be leaking memory unnecessarily. Thanks [edited by - Briskon on August 13, 2003 5:48:35 PM]

Share this post


Link to post
Share on other sites
Advertisement
glLightModel is used to set parameters which are not specific to a given light, e.g. enabling 2 sided lighting, setting global ambient level.
glLight sets parameters for a given light.

Share this post


Link to post
Share on other sites
quote:
Original post by Briskon
2. Do you need to use glDeleteTextures at the end of a program to delete textures. Some examples I''ve seen do this, while others don''t. So which is it?
Yes, you should delete them when you''re done.

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.

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!