• Advertisement

Archived

This topic is now archived and is closed to further replies.

CreateTextureFromSurface()

This topic is 6630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Yes, the texture's just a pointer to the surface with some extra information for Direct3D thrown in. You need a separate surface for every separate texture. This makes more sense with the DirectX 7 API since they dumped the texture interface altogether and now just use surfaces.

Share this post


Link to post
Share on other sites
Advertisement
I create a texture with a call to the
function CreateTextureFromSurface(). Then
I blit to the surface and make a new call
to the CreateTextureFromSurface() function,
but with a new texture as argument. Now the
texture I first created is changed! Very bad!

My question is: Is the surface connect to the texture in this case?

------------------
Gandalf the White

Share this post


Link to post
Share on other sites

  • Advertisement