Skip to main content
gamedev.net
🔒 Locked

3d surface question

Started by CProgrammer 0 replies 250+ views
Original Post
CProgrammer
CProgrammer
Can I convert an d3d image surface(LPDIRECT3DSURFACE8) to a texture (LPDIRECT3DTEXTURE8)? If so how?
jasonsa
jasonsa
You''ll want to use IDirect3DTexture9::GetSurfaceLevel() to get a surface on the texture, and then use D3DXLoadSurfaceFromSurface() to copy the surfaces.

Jason,
DirectX SDK developer

Topic Locked

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

Sign in to reply to this topic.