Skip to main content
gamedev.net
๐Ÿ”’ Locked

Extracting texture data

Started by u235 Jan 20, 2008 at 5:31 PM 1 replies 550+ views
Original Post
u235
u235
If I load a texture using D3DXLoadTextureFromFile into a LPDIRECT3DTEXTURE9 followed by a LockRect on a certain portion of the texture, how I do I copy the contents of the locked data to a new texture. I looked on MSDN for a function that does what I am looking for, but was unable to find anything. Maybe I didn't look hard enough, but I would be very appreciative if someone could at least point me in the right direction. Thanks.
V/R,-AJThere are 10 kinds of people in the world: Those who understand binary and those who don't...
SiCrane
SiCrane
Did you try D3DXLoadSurfaceFromSurface()?
u235
u235
That appears to be just what I was looking for. Thanks.
V/R,-AJThere are 10 kinds of people in the world: Those who understand binary and those who don't...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.