pleopard
01-20-2004, 12:49 PM
Is there any way I can divide up a texture that has already been uploaded and my data deleted? What I mean is that if I have the integer texture name of a texture I want to divide up and I no longer have access to the image data (or pointer to the image data), is there a way that I can select portions of the texture in a manner similar to glTexSubImage2D?
The problem I have is that I have a texture manager that loads just about any type of image file but discards the image data once the texture is uploaded. I cannot get the pointer to the image data needed by glTexSubImage2D but I need to divy up an existing texture in the same manner.
Any thoughts?
The problem I have is that I have a texture manager that loads just about any type of image file but discards the image data once the texture is uploaded. I cannot get the pointer to the image data needed by glTexSubImage2D but I need to divy up an existing texture in the same manner.
Any thoughts?