XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Clone Texture Revisited

Last post 1/7/2009 1:25 PM by Majikat. 1 replies.
  • 1/7/2009 1:20 PM

    Clone Texture Revisited

    Hi,

    I'm fairly new to XNA and have been searching this forum for a soloution to my problem. I'm afraid my problem is similar to those of other posts, but I can't figure this out.

    Basically, I have a set of textures for that I use with and object. The object must have a reference to it's own texture2D.

    I've loaded in my image as a texture2D and that's fine. When I create one of these objects and assign it a texture this is fine and works as it should. However, when I create 2 objects, the old object flips to the texture of the new object. This is because I am referencing the same texture which are in a collection.

    So what I'd like to be able to do is clone a texture.

    I've tried to use a render target, but this doesn't solve my problem.

    Anyone got a suggestion?

    M.
  • 1/7/2009 1:25 PM In reply to

    Re: Clone Texture Revisited

    Okay scratch that. I was me being a pudding. Was drawing the old sprite twice instead of the new one :-S.

    M.
Page 1 of 1 (2 items) Previous Next