PDA

View Full Version : Update Texture content



pkuloop
07-28-2003, 02:50 PM
In my program, I need to frequently update the content of Texture.
can I just use
glTexImagenD()?
do I need also use glDeleteTextures
and bind again?

mako
07-28-2003, 06:06 PM
glTexSubImage might be more efficient, if the texture has always the same size. Memory allocation for the texture is not necessary in that case and you do not need to delete the texture. If you use data from the framebuffer, glCopyTexSubImage is the fastest method (except you are able to use PBuffers).