Sign in to follow this  
3dcgmodeling

texture and gdi

Recommended Posts

You can get the top surface level for the texture (IDirect3DTexture9::GetSurfaceLevel()), then use IDirect3DSurface9::GetDC() to get a HDC for that surface which you can draw to. Then release the DC (IDirect3DSurface9::ReleaseDC()) and release the surface.

Although, why do you want to do this? There's probably a more efficient way to do things...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this