Newbie
Newbie

Reputation: 1613

OpenGL: How to update only a portion of a texture?

I dont want to update the whole texture every time i change a small part of it, what is the command for this?

And when i have mipmapping on, set with GL_GENERATE_MIPMAP, how optimized is that internally? will it calculate whole image again, or just the part i updated?

Upvotes: 1

Views: 346

Answers (1)

Dr. Snoopy
Dr. Snoopy

Reputation: 56357

glTexSubImage2D.

Mipmap generation process is implementation dependant, it probably will update the whole mipmap chain.

Upvotes: 5

Related Questions