setting texture parameters

Started by
1 comment, last by c-mos 14 years, 1 month ago
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
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.
thanks for your reply,
i will keep that in my mind.

regards,
c-mos

This topic is closed to new replies.

Advertisement