Jump to content
  • Advertisement
Sign in to follow this  

Turning Textured Quad into Texture2D

This topic is 2381 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

Hi All,

I have an idea floating around in my head which will greatly simplify coding of my little project.

I am wondering if it is possible to do the following in XNA. I am getting stuck at step 4 below...

1) Load Texture2D from external file
2) Create Textured quad using this Texture2D as texture.
3) Stretch, skew, rotate, whatever the Textured quad by moving its corners
4) Save transformed Textured Quad as new Texture2D

All of these needs to happen offscreen.

I'm thinking something might work if I can create a Color array from the textured quad and Texture2D.SetData from it. I have done this before when copying a section of a Texture2D into a smaller Texture2D, but this did not involve quads...

Hope someone can help :)


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!