Jump to content
  • Advertisement
Sign in to follow this  
c-mos

OpenGL setting texture parameters

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

Hello, i have a question according to setting opengl texture parameters. Usually we create a texture with glGenTextures then bind this texture and set the parameters and upload the date with glTexImagenD. Is it possilbe or is it allowed to set texture parameters like pack alignment or min/mag filters after creation ? Of course changes of width, height, and depth need a re-creation. regards, c-mos

Share this post


Link to post
Share on other sites
Advertisement
Yes, changing filters is allowed after creating.
Changing the pack/unpack alignment after creation is useless, since is only used to unpack pixels when you call glTexImage*D.

To change width/height/format, you don't need to create another texture, just call glTexImage*D again with the new parameters, and of course, the texture data will be reset.

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!