Original Post
🔒 Locked
IDirect3DTexture8
Advertisement
Normally, you''re textures point to actual data. IDirect3DTexture* points to a memory location. If you wanted to copy a texture, you could just set them equal to each other because then they will both point to the same data. Microsoft thought that through so that you could do that.
If you actually want to create a new texture, first release the old one. Then create the new one the same sizes and attributes as the copied texture by getting the values using GetLevelDesc. after doing that, use lock, unlock, and copyrects to copy the data.
If you actually want to create a new texture, first release the old one. Then create the new one the same sizes and attributes as the copied texture by getting the values using GetLevelDesc. after doing that, use lock, unlock, and copyrects to copy the data.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement