开发者

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

开发者 https://www.devze.com 2023-01-03 05:34 出处:网络
I dont want to update the whole texture every time i change a small p开发者_开发知识库art of it, what is the command for this?

I dont want to update the whole texture every time i change a small p开发者_开发知识库art 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?


glTexSubImage2D.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消