AlloSphere-Research-Group / AlloSystem

AlloSystem is a cross-platform suite of C++ components for building interactive multimedia tools and applications.
http://mat.ucsb.edu/allosphere/software.php
BSD 3-Clause "New" or "Revised" License
65 stars 22 forks source link

Texture: No way to update existing texels #27

Open LancePutnam opened 10 years ago

LancePutnam commented 10 years ago

Texture is currently lacking a method to update a region of existing texels. This is normally done using glTexSubImage.

On a related note, Texture::submit always calls glTexImage. The recommended practice is to configure the texels once with glTexImage and then call glTexSubImage to update them. See http://www.opengl.org/wiki/Common_Mistakes#Updating_a_texture.