Jump to content

  • Log In with Google      Sign In   
  • Create Account

CreateTextureFromSurface()


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Gandalf   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 November 1999 - 04:20 AM

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


Sponsor:

#2 Shinkage   Members   -  Reputation: 595

Like
Likes
Like

Posted 26 November 1999 - 04:20 AM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS